...

View Full Version : Preload 30% of movie then play



esjjventura
01-27-2009, 09:01 PM
I am trying to edit this actionscript so that my movie will load after 30% of the total movie is loaded. Does anyone have any ideas?



if(_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay(3);
}
else {
gotoAndPlay(1);
}

gnomeontherun
01-28-2009, 10:34 AM
This should do it, just by multiplying the total bytes by .3.



if(_root.getBytesLoaded() >= (_root.getBytesTotal() * 0.3)) {
gotoAndPlay(3);
}
else {
gotoAndPlay(1);
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum