Quote:
Originally Posted by glosrfc
Typically, that kind of code has an instruction on frame 2 to go back to frame 1; that's how it manages to update the variables. So I doubt that you can break out to frame 2...try using another frame instead.
|
I think this is working. The only thing is it hangs on frame 2 for a second before it goes to frame 3. Not sure if there is a fix for this or not. But this helps a ton. Let me know if you have an idea why it might hang on frame 2.
Frame 1
//here we are getting the total bytes and the number of
//bytes that have been loaded so far, of the movie, and
//dividing it by 1000 in order to come up with killobytes.
//we set two variables to be equal to these two statements
//like so
totalK=getBytesTotal()/1000;
loadedK=getBytesLoaded()/1000;
//remaining K is just the first variable, minus the second.
remainingK=totalK-loadedK;
//percentage of K loaded is just the second variable divided
//by the first, and then mutliplied by 100.
percentageK=(loadedK/totalK)*100;
//here is our break out.. if the amount of K loaded is greater
//than the total K of the movie, AND (that's what && means..
//both conditions have to be true) the total K is NOT equal to
//0, then goto thesecond frame.
if (loadedK >= (totalK / 8)) {
gotoAndPlay(3);
}
Frame 2
gotoAndPlay(1);
Frame 3
The movie
Are you really in Antartica? If so... that is awesome!
