RE: [Flashcoders] Run init function of MCL loaded Clip

2006-11-17 Thread Holth, Daniel C.
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steven Sacks | BLITZ Sent: Thursday, November 16, 2006 3:59 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Run init function of MCL loaded Clip Movieclips need one frame to initialize methods. Propertie

RE: [Flashcoders] Run init function of MCL loaded Clip

2006-11-16 Thread Steven Sacks | BLITZ
Movieclips need one frame to initialize methods. Properties are available right away but methods are not. I suggest you put the init() function on the first frame of your loaded clip's timeline and let it handle its own init(). The properties you set on the clip will be set prior to the init() f

[Flashcoders] Run init function of MCL loaded Clip

2006-11-16 Thread Holth, Daniel C.
I have an object that uses a movieclip loader to load a swf into a holder movieclip on the stage. The mcl code in the loading object looks like this: __mclListener = new Object(); __mcl = new MovieClipLoader(); var r = this; __mclListener.onLoadStart = function(target_mc:MovieClip) {