TypeError: Error #1010: Un término no está definido y no tiene propiedades.
at menuxml_fla::MainTimeline/myComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
no se como resolverlo si alguien me pudria ayudar.
Código ActionScript :
var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, myComplete); loader.load(new URLRequest("http://localhost/httpdocs/Sistema_flash/funciones_php/control_accsesos.xml")); function myComplete(e:Event):void { var myXML:XML = new XML(e.target.data); var menu:Sprite = new Sprite(); addChild(menu); for (var i:int = 0; i < myXML.boton.length(); i++) { var tmp:boton = new boton(); tmp.y =(tmp.height + 5) * i; //esta linea es donde al descomentarla me genere el error //tmp.menu_txt.text = "hola"; addChild(tmp); } }