PDA

View Full Version : Linke between swf


aiborre
07-16-2009, 08:15 AM
Hej All I need some help
I am loading an external swf in to a flash movie, in the external swf I have button. I want to control the button with an event listener I the action script layer in the main flash movie, hove do I do that?

I have tried with loader.container.link.addEventListener(MouseEvent. CLICK,
Funk, false, 0, true);

Loader is the loader class
Container Is the name of the movieclip in the external swf that contains the link.

arun.salian
07-16-2009, 09:54 AM
Use an interface.

var module : MyInterface = MyInterface (loader.child);
var button : Button = module.getButton ();
I hope this will help.