Ver Mensaje Individual
  #6 (permalink)  
Antiguo 23/03/2007, 16:51
Isillion
 
Fecha de Ingreso: julio-2006
Mensajes: 20
Antigüedad: 17 años, 9 meses
Puntos: 0
Re: Por fa, ayudenme a instertar un fla dentro de otro

Hola....

El código es éste:

Para el botón de subir texto:
on(release)
Cita:
{
_root.moviendo=false
if(_root.texto.scroll>1)
//tope del cuadro del scroll
{
_root.texto.scroll--
dif=_root.barra._height-_root.barra.arrastra._height
_root.barra.arrastra._y=(_root.texto.scroll*dif)/_root.texto.maxscroll
}
if(_root.texto.scroll==1)
_root.barra.arrastra._y=0
}
Para bajar en el cuadro de texto:
Cita:
on(release)
{
_root.moviendo=false
if(_root.texto.scroll<_root.texto.maxscroll)
//tope del cuadro del scroll
{
_root.texto.scroll++
dif=_root.barra._height-_root.barra.arrastra._height
_root.barra.arrastra._y=(_root.texto.scroll*dif)/_root.texto.maxscroll
}
}
Y el de la barra de desplazamiento:
on(press)
Cita:
{//area de arrastre para delimitar area del boton con respecto a la barra
_root.barra.arrastra.startDrag(true,0,0,0,_root.ba rra._height-_root.barra.arrastra._height)
_root.moviendo=true
}

on(release,releaseOutSide)
{
_root.barra.arrastra.stopDrag()
_root.moviendo=false
}
Mi duda, Bandit, ya que eres el que amablemente me está ayudando, es porqué en un .fla nuevo, me funciona perfectamente, pero al programarlo en el .fla bajo la máscara, los botones no funcionan, es algo que tenga que ver con el código?