But, Arul, what is the advantage of putting it in an onLoad function
instead of the constructor?
Just to be on the safer side, thats all :)

Try this:

add a trace each in the constructor and the onLoad. And test your movie.
You'll see that the constructor gets called even before onLoad.

Now, if your movie clip had a V2 component instance in it, and you added
code in the constructor to addEventListener to the component,it wont work.
Because the component wouldnt have initialize by the time of the call to the
constructor.
Placing that code instead in the onLoad method makes sure that it will work.

~Arul Prasad.



On 8/11/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:

All the solutions worked perfectly, thanks everyone.  But, Arul, what is
the advantage of putting it in an onLoad function instead of the
constructor?



_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to