Código ActionScript :
import flash.events.MouseEvent;
import flash.events.Event;
import flash.display.*;
//este array almacena las urls
var urlArray:Array = new Array("../index.html","../presupuesto/index.php","../contacto/index.php","../about/index.php");
var objArray:Array = new Array();// y este otro los botones
for(var i:int = 0 ; i < urlArray.length; i++)
{
objArray.push(getChildByName("boton" + i));
objArray[i].url = urlArray[i];
objArray[i].addEventListener(MouseEvent.CLICK, clickWeb);
}
function clickWeb(e:MouseEvent):void
{
var req:URLRequest = new URLRequest(e.target.url);
navigateToURL(req);
}
y me da un error de que no se puede haceder a una propiedad nula url.
Espero me podais ayudar
Saludos y gracias
