Gran cambio de AS2 a AS3… Aquí un ejemplo de cómo darle propiedades a un botón y cómo abrir una página (antiguo getURL en AS2)
function pres_mnu1(e:Event) : void {
navigateToURL(new URLRequest("http://www.google.com"));
}
function pres_mnu2(e:Event) : void {
navigateToURL(new URLRequest("http://www.google2.com"));
}
function pres_mnu3(e:Event) : void {
navigateToURL(new URLRequest("http://www.google3.com"));
}
function pres_mnu4(e:Event) : void {
navigateToURL(new URLRequest("http://www.google4.com"));
}
function pres_mnu5(e:Event) : void {
navigateToURL(new URLRequest("http://www.google5.com"));
}
function pres_mnu6(e:Event) : void {
navigateToURL(new URLRequest("http://www.google6.com"));
}
this.boto1_btn.addEventListener(MouseEvent.CLICK, pres_mnu1);
this.boto2_btn.addEventListener(MouseEvent.CLICK, pres_mnu2);
this.boto3_btn.addEventListener(MouseEvent.CLICK, pres_mnu3);
this.boto4_btn.addEventListener(MouseEvent.CLICK, pres_mnu4);
this.boto5_btn.addEventListener(MouseEvent.CLICK, pres_mnu5);
this.boto6_btn.addEventListener(MouseEvent.CLICK, pres_mnu6);

