Ok, I've recently started to learn AS3 and I'm found out very quickly that it's a completely new ball game.Arrrrrrrghhhhhh Understatement
Can anyone help advance my learning a little in regards to this problem?
I have a few buttons on my main.swf which i want to use to load external movies. The problem I am having is that in AS2 I could just attach the AS to the button, but it seems in AS3 this is not the case?
How can I reference the specific buttons and from the AS? Considering that I am using 1 piece of code slightly modified for each button.
Any help would be great as I'm at a complete loss on this. Thanks in AdvanceCode:var imageRequest:URLRequest = new URLRequest("movie2.swf"); car imageLoader:Loader = new Loader(); imageLoader.load(imageRequest); addChild(imageLoader); imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete); function onComplete(event:Event):void { event.target.content.slidingpages.x -= 100; }




Arrrrrrrghhhhhh Understatement
Reply With Quote