TypeError: Error #1006: value no es una función.
at Sint_fla::MainTimeline/onclick()
at Sint_fla::MainTimeline/onComplete()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
tengo el siguiente codigo en as3 ojala me puedan aydar, gracias.
Código ActionScript :
import flash.net.URLRequest; import flash.net.URLLoader; import flash.events.Event; var myloader:URLLoader=new URLLoader(); var myrequest:URLRequest= new URLRequest("gallery.xml"); var myxml:XML; myloader.addEventListener(Event.COMPLETE, onComplete); function onComplete(evt:Event){ myxml= new XML(evt.target.data); onclick(evt); } myloader.load(myrequest) nextbutton.addEventListener(MouseEvent.MOUSE_DOWN, onclick); var currentimages: Number=0; function onclick(evt:Event){if(currentimages>=myxml.children().length()){ currentimages=0;} this.title.text=myxml.image.attribute("title")(currentimages); var imageRequest=new URLRequest(myxml.image.attribute("filename") (currentimages)); myULoader.load(imageRequest); currentimages=currentimages+1; }