Preloader with percentage

hi guys!

i’ve been working on preloader with percentage…in flash 5.
but nothing seems to b working.
my flash movie has 3 scenes and a loading page…hence in all 4 scenes…
now i’ve simple loading text and if frame is loaded action.
i’ve searched for the tutorials on all the possible sites but invain…
i’m working on flash 5… the max. no. of frames r in scene 2.
can anybody help me with this.

regards,
deepa.

Sure… can you tell me what it is that is or is not occuring? You’re sentences are a little unclear.

hi david,

c i’ve this an intro movie…where i’ve 4 scenes viz… loading, scene 1, scene 2, scene 3.
i think the script that i tried is for the single scene movie. thats y may b its not working.
when v give “ifframeloaded” action v write the max frame no…right… my max no. of frames are in scene 2. i.e 110 frames.
c if u can help me.

regards,
deepa.

hi deepa…
well u have to create two key frames and label one of them as “prelaoder” another one as “begin” and a dynamic textfield named as “percentageOtput”

and use this scripting

loadedBytes = _root.getBytesLoaded();
totalBytes = _root.getBytesTotal();
if (loadedBytes < totalBytes){
percentageOutput = int((loadedBytes / totalBytes) * 100);
gotoAndPlay(“preload”);
}
else{
gotoAndStop(“begin”);
}

if u still have any problem mail me at [email protected]

Puneet Batra

:pirate: