Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
MovieClip _currentframe==0 ???

MovieClip _currentframe==0 ???

2004-03-11       - By Jim Kremens

 Back
Reply:     1     2  

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.