  | |  | MovieClip _currentframe==0 ??? | MovieClip _currentframe==0 ??? 2004-03-11 - By Jim Kremens
Back For sequencing loads, try Bokel's loaderClass.
http://www.helpqlodhelp.com/blog/
Jim Kremens jimkremens@(protected)
-- -- Original Message -- -- From: "Matthew Donadio" <mattd@(protected)> To: <flashcoders@(protected)> Sent: Thursday, March 11, 2004 1:59 PM Subject: [Flashcoders] MovieClip _currentframe==0 ???
Hi all,
I am seeing something truly weird, and I was curious if anyone has seen this before.
I am using the trick posted to the list a while ago to get an onLoad() callback to fire after a loadMovie():
http://chattyfig.figleaf.com/flashcoders-wiki/index.php?onLoad
I am still using Flash MX, so I don't have access to the MovieClipLoader class, and I need to sequence a bunch of loads.
This is working great, and my onLoad() callback is being called. However, _currentframe of the loaded movie is equal to zero (an actual 0, not undefined). I thought that this was impossible.
Example:
mc = createEmptyMovieClip("foo",1); mc.onLoad = function () { trace(this._currentframe); }; mc.loadMovie("foo.swf");
Will result in 0 being displayed in the output window. To get things to behave properly, I have to add
this.play();
to the handler.
Has anyone else seen this before?
Thanks.
-- Matthew Donadio Night Kitchen Media mattd@(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:106657 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- 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:106665 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |