rudesgeiger
asked on
Who has the biggest brain?
let's see you has the big brains? What is wrong with my code. Why does the bytes come back undefined...
var movieArray = ["volume.swf", "yellowdogworks.swf", "main.swf", "pricing.swf", "gallery.swf"];
var i = 0;
while(i < 5){
loadMovie(movieArray[i], _root);
trace(i);
trace(movieArray[i]);
bytesLoaded = eval(_root.getBytesLoaded( ));
bytesTotal = eval(_root.getBytesTotal() );
trace(bytesLoaded);
trace(bytesTotal);
if (bytesTotal > 0 && bytesTotal == bytesLoaded){
movieArray[i].stop();
trace("stop");
i++;
}
getURL("index.htm");
}
var movieArray = ["volume.swf", "yellowdogworks.swf", "main.swf", "pricing.swf", "gallery.swf"];
var i = 0;
while(i < 5){
loadMovie(movieArray[i], _root);
trace(i);
trace(movieArray[i]);
bytesLoaded = eval(_root.getBytesLoaded(
bytesTotal = eval(_root.getBytesTotal()
trace(bytesLoaded);
trace(bytesTotal);
if (bytesTotal > 0 && bytesTotal == bytesLoaded){
movieArray[i].stop();
trace("stop");
i++;
}
getURL("index.htm");
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.