You are on page 1of 3

{

UNIVERSIDAD ESTATAL DE MILAGRO


ANIMACION AVANZADAS
Ronal Pendolema
Eventos :
texto.addEventListener(MouseEvent.CLICK, funcion);
texto.addEventListener(MouseEvent.DOUBLE_CLICK, funcion);
texto.addEventListener(MouseEvent.MOUSE_DOWN, funcion);
texto.addEventListener(MouseEvent.MOUSE_MOVE, funcion);
texto.addEventListener(MouseEvent.MOUSE_OUT, funcion);
texto.addEventListener(MouseEvent.MOUSE_OVER, funcion);
texto.addEventListener(MouseEvent.MOUSE_UP, funcion);
texto.addEventListener(MouseEvent.MOUSE_WHEEL, funcion);
texto.addEventListener(MouseEvent.ROLL_OUT, funcion);
texto.addEventListener(MouseEvent.ROLL_OVER, funcion);

function funcion (e:MouseEvent):void { texto.text="\n"+e.type; }
Eventos
texto.addEventListener (KeyboardEvent.KEY_DOWN,
myKeyDownn);
funcin myKeyDownn (e: KeyboardEvent): void
{

if (e.keyCode == Keyboard.SPACE)
{
gotoAndPlay ("bienvenido");
}

}

You might also like