click a button from main movie on external swf
Hello:
I need to click on a button that is on an external swf loaded in the main movie with a loader.
I'm trying this but does not work:
// main movie
function openswf(queFoto:String)
{
imgLoader = new Loader();
imgLoader.load(new URLRequest("mySWF.swf"));
addChild(imgLoader);
}
I need something like this:
btfake.dispatchEvent(new MouseEvent(MouseEvent.CLICK,true));
that trigger my button on swf external.
// external movie
Manyt thanks.