all groups > flash actionscript > october 2005 >
You're in the

flash actionscript

group:

how to call function in the loaded movie?


Re: how to call function in the loaded movie? tralfaz
10/18/2005 7:09:59 PM
flash actionscript:
[quoted text, click to view]

Need to see your loading code. If you loaded into a movieclip, that
clip's instance name has to be used in the reference.
(not name.. instance name)
Also, you cannot call a function that hasn't loaded yet. Are you
waiting long enough?
tralfaz

how to call function in the loaded movie? sst
10/18/2005 9:29:54 PM
In my top.swf, I have a Loader named "loader" to load another movie
called inner.swf. In inner.swf, there is a function called setValue(). I
want to call this function in top movie, but
Re: how to call function in the loaded movie? Motion Maker
10/18/2005 10:08:33 PM
Generally this is a data communications timing problem The inner.swf frame
containing the function is not loaded when top.swf is calling it.

You will need a preloader to determine when the frame with setValue is
loaded.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
In my top.swf, I have a Loader named "loader" to load another movie
called inner.swf. In inner.swf, there is a function called setValue(). I
want to call this function in top movie, but
_root.loader.setValue("myValue") does not seem to work. What's wrong?

AddThis Social Bookmark Button