MovieClipLoader - onLoadInit() called before constructor of clip 2004-03-16 - By Collin Peters
Back This doesn't seem right to me. I have a SWF which contains a movieclip instance that is associated with a class. If I put a trace("Constructor") inside the class constructor, and a trace("init") in the onLoadInit() function of the MovieClipLoader that loads the SWF, then the init is called before the constructor.
The help for onLoadInit() states: "Listener; invoked when the actions on the first frame of the loaded clip have been executed. After this listener has been invoked, you can set properties, use methods, and otherwise interact with the loaded movie. "
If I can set properties, use methods, etc... why are they all undefined in this function. It does state that *after* it has been invoked that you can interact with it, but how am I supposed to know when that function has finished? It is the last thing that is called when the movie is loaded.
Regards, Collin
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107064 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|