How would you recommend I pass it the variable then? I'd prefer not to have to
hard code a path from the loaded swf to 'r' and would prefer not to have to
change all the loaded swfs to go find 'r' since many of them have been compiled.
Also, isn't the code
__mclListener.onLoadInit = function(target_mc:MovieClip) {
target_mc.gotoAndStop(1);
target_mc.init(r);
};
supposed to be executed once the loaded MC (target_mc) is initialized on its
first frame - and therefore should have its own init() fuinction ready to take
to be executed?
-----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. 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() function being called.
_______________________________________________
[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
This e-mail and its attachments are intended only for the use of the
addressee(s) and may contain privileged, confidential or proprietary
information. If you are not the intended recipient, or the employee or agent
responsible for delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution, displaying, copying, or
use of this information is strictly prohibited. If you have received this
communication in error, please inform the sender immediately and delete and
destroy any record of this message. Thank you.
_______________________________________________
[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