PDA

View Full Version : Help: Loading movie


Flash FROG
05-21-2003, 12:11 AM
Hello, I created this site but once I click on view image button, the image loads but the percentage loader doesn't work.
http://www.angelfire.com/comics/goats
Page not completed yet.
Any ideas?
This is my actionscript right now.
if (comic == 1) {loadMovie("1.jpg", "picback");}
if (comic == 2) {loadMovie("2.jpg", "picback");}
if (comic == 3) {loadMovie("3.jpg", "picback");}
if (comic == 4) {loadMovie("4.jpg", "picback");}
setProperty("bar2", _xscale, getBytesLoaded()/getBytesTotal()*100);
stop();

fraggle two
05-23-2003, 07:54 AM
hi,

try this...

use 3 frames

in the first frame set the length of the bar to 0: bar2._xscale = 0

then in the next frame get the percentage value: percent = getBytesLoaded()/getBytesTotal()*100) and use this value for your _xscale amount: bar2._xscale = percent

in the last frame u look if the percentage value is 100 or not:

if (percent != 100){
gotoandplay(2);
}else{
gotoandplay(where u want to go next)
}

hope this is correct and helps

mike

CGTalk Moderation
01-15-2006, 04:03 AM
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.