# Preloader with percentage

**URL:** <https://forum.kirupa.com/t/preloader-with-percentage/5433>\
**Category:** Uncategorized\
**Created:** [September 11, 2002, 11:23am UTC](https://forum.kirupa.com/t/preloader-with-percentage/5433 "2002-09-11T11:23:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepa](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@Deepa](https://forum.kirupa.com/u/Deepa)\
**Post date:** [September 11, 2002, 11:23am UTC](https://forum.kirupa.com/t/preloader-with-percentage/5433/1 "2002-09-11T11:23:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2002, 5:45am UTC](https://forum.kirupa.com/t/preloader-with-percentage/5433/2 "2002-09-12T05:45:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 12, 2002, 8:29am UTC](https://forum.kirupa.com/t/preloader-with-percentage/5433/3 "2002-09-12T08:29:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 15, 2002, 3:35pm UTC](https://forum.kirupa.com/t/preloader-with-percentage/5433/4 "2002-09-15T15:35:26Z")

</div>

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 [punbat@yahoo.com](mailto:punbat@yahoo.com)

Puneet Batra

:pirate:
