View Full Version : preloader and onclipevent problem
snot_nose 06-29-2003, 11:05 AM my preloader scene seems to affect all the movie clips in my main scene that has the action :
onclipevent(load)
{gotoandplay(framenumber);}
applied to them.
it's like my main scene is totaly messed up with the preloader.
does any1 why is that happening?
|
|
if you are using onClipEvent(load) to check for when an external movie has loaded, it will not work.
there is a bug in flash that deletes the ClipEvent, so you have to use a work around. this is commonly known as really really bad beta testing :)
instead you need to compare getBytesLoaded() to getTotalBytes() to see if it has finished loading. bear in mind though that, typically, this is not even always totally accurate because it will not always register that its fully loaded so check to see if its loaded more than 98% of the movie and not 100%.
CGTalk Moderation
01-15-2006, 12:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.