Tema: Crear boton
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/10/2009, 10:47
cube_ltd
 
Fecha de Ingreso: junio-2009
Mensajes: 21
Antigüedad: 14 años, 10 meses
Puntos: 0
Pregunta Crear boton

Muy buenas a todos/as,

quiero crear un boton con as3 y flash cs4

El codigo que tengo es el siguiente pero me da un monton de errores y ya no se donde mas mirar. Alguien podria hecharme una mano y decirme que puede estar mal? Muchas gracias.

Ahi va el codigo:

import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.text.TextField;
import flash.text.TextFormat;
import fl.controls.Button;

var bt_down:Button = new Button();
bt_down.x = 25;
bt_down.y = 15;
bt_down.width = 120;
bt_down.height = 100;
addChild(bt_down);

this.bt_down.addEventListener(MouseEvent.CLICK, pulsar_down);

function pulsar_down(event:MouseEvent) {
if (this.y<346) {
var myTween:Tween=new Tween(this,"y",Regular.easeOut,200,346,1,true);
}
this.bt_presentacion.enabled=true;
this.bt_entrevistas.enabled=true;
this.bt_ceder.enabled=true;
this.bt_deloitte.enabled=true;
this.bt_lavinia.enabled=true;
this.bt_down.enabled=false;

mostrarbtDown("novisible");
}


Un saludo a todos/as