Hi,
why your module will need to call those outside functions? Is that a
"non other way option"?
If you really need that way, i'ld go for event dispatching and catching
them on the parent.
loader = new Loader();
loader.load(new URLRequest("some.swf"));
loader.addEventListener(CustomEvent.DATA_DISPATCH, dataDispatchHandler);
loader.addEventListener(CustomEvent.DATA_ERROR, dataErrorHandler);
...
________________________________
De: [email protected] [mailto:[EMAIL PROTECTED] Em
nome de dev.bits
Enviada em: quinta-feira, 19 de junho de 2008 21:53
Para: [email protected]
Assunto: [flexcoders] Calling outside functions from SWF loaded by
display.oader
Hi
I am including a file , Inner.swf into my main Viewer.swf (which is
loaded by the browser) using URLRequest and display.loader (etc.
etc.). If I define functions in Viewer.swf is there any way Inner.swf
can call them?
I want to design a set of functions that I want inner.swf to use but I
don't want to keep including them everytime I compile inner.swf. Can I
make inner.swf call those functions ? Cos at compile time inner.swf
doesn't know about these functions and where they are.
Regards
Devdatta
For e.g :
code in viewer.swf is :
loader=new Loader();
loader.load(new URLRequest("some.swf"));
addChild(loader);
how do I make same.swf use functions defined in viewer.swf ?