Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
Re: [Flashcoders] MovieClipLoader - onLoadInit() called before constructor
of

Re: [Flashcoders] MovieClipLoader - onLoadInit() called before constructor
of

2004-03-16       - By Collin Peters

 Back
Reply:     1     2     3  

Do you think it has do with the fact that there are some grids in the
clip being loaded that take awhile to populate?  I am populating two
grids via flash remoting which take, let's say a second, to grab the
data.  However, I am doing that in the onLoad() of the clip so I think
that should still happen after the onLoadInit() call.

Collin


Mike Pearce wrote:

> As far as I'm aware the way you are expecting it to work is the correct
> behaviour and all I have experienced.
> Are you loading any other clips from that instance of MovieClipLoader??
> If so, are you checking that the target is the clip you are expecting?
>
> Mike Pearce
> mike@(protected)
> http://www.nectarine.com.au
>
>
>
> -- -- Original Message -- --
> From: "Collin Peters" <collin@(protected)>
> To: <flashcoders@(protected)>
> Sent: Tuesday, March 16, 2004 5:21 PM
> Subject: [Flashcoders] MovieClipLoader - onLoadInit() called before
> constructor of clip it loads
>
>
>
>>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)
>>
>>
>
>
>
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> 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:107066
> =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
> To unsubscribe send a blank e-mail to:
> Normal Mode: flashcoders-unsubscribe@(protected)
> Digest Mode: flashcoders-digest-unsubscrive@(protected)


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
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:107126
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)