Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/12/2010, 10:56
aioras
 
Fecha de Ingreso: marzo-2010
Mensajes: 11
Antigüedad: 14 años, 1 mes
Puntos: 0
Scroll de AS2 a AS3

buenas tardes.

Estoy realizando un scroll de imagenes en horizontal, lo tengo con actionscript 2, pero como tengo otros componentes en AS3 tengo que actualizarlo y no consigo hacer que funcione.

utilizo Flash CS4

este el codigo en AS2.

var velocidad:Number = 5;

derecha_btn.onRollOver = function() {
_root.onEnterFrame = function() {
if(imagenes_mc._x > -705.1) {
imagenes_mc._x -= velocidad;
}
}
}

derecha_btn.onRollOut = function() {
delete _root.onEnterFrame;
}
izquierda_btn.onRollOver = function() {
_root.onEnterFrame = function() {
if(imagenes_mc._x < 31.9) {
imagenes_mc._x += velocidad;
}
}
}

izquierda_btn.onRollOut = function() {
delete _root.onEnterFrame;
}


¿podeis ayudarme? gracias.