Search  

CALL A FUNCTION ISIDE A LOADED SWF'S DOC. CLASS !!??

HomeForumsHelp Neededcall a function iside a loaded swf's doc. class !!??
50869 nokonoko
1 post
Bought between 1 and 9 items

anyone know how can access a function ( public of course) which is inside an externally loaded SWF ?

like.. myBut.addEventListener(MouseEvent.CLICK, goThere); { goThere(); }

where goThere i a function in the document class of another SWF .

help please!! :)

Posted 2 months ago
3113 geoken
570 posts
Author was featured Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

It’s just like calling a function in a movieclip. pathToSwf.function()

Also, the syntax in your example is wrong.

Posted 2 months ago
Default-profile asteenberge
1 post

I am having the same issue but cannot seem to reach a resolution.

//ADD THE EXTERAL SWF function addVideo() { var reelRequest:URLRequest = new URLRequest(“DesignReel.swf”;); var reelLoader:Loader = new Loader(); addVideo();

reelLoader.load(reelRequest);
    stage.addChild(reelLoader);
};

If I have a function named addButton() inside of the loaded movie, are you saying that in order to connect to that function I would use the path DesignReel/addButton(); ?

I know that I am misunderstanding and could definitely use the help! Thanks!!!

Posted about 1 month ago