"Loading... xx%"

  • 18 years ago

    I'm trying to make a loading thing for a large flash file i'm making... but the percentage won't go up. This is what i've done:


    1. I have put a whole seperate scene before the main one, with 2 keyframes, with actions like this:


    Keyframe one:
    Some Dynamic Text onstage with the variable "percent" associated with it, and the following actions:

    Code:
    percent = int(framesloaded / _totalframes * 100) + "%";
    if (
    framesloaded == _totalframes) {
       gotoAndPlay(3);
    }


    Keyframe two:

    Code:
    gotoAndPlay(1);


    The idea is that frame one will display the percentage of the frames that are loaded, then go to frame two, which'll send it back to frame one, effectively updating the percentage bar.


    but when i test movie with streaming turned on, it just stays on 0% (until the end where it randomly goes to 89% immediately before starting the movie) [ie playing the next main scene]


    argh any help would be wonderful

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” - Tom Cargill