# I Used Kirupa's percentPreloader...BUT

**URL:** <https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352>\
**Category:** Uncategorized\
**Created:** [August 27, 2004, 2:38am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352 "2004-08-27T02:38:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThaShizzit](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@ThaShizzit](https://forum.kirupa.com/u/ThaShizzit)\
**Post date:** [August 27, 2004, 2:38am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/1 "2004-08-27T02:38:05Z")

</div>

when it reaches 70 percent…the flash movie turns white blank, all i did was copy and pasted his frames/layers to mine, i didn’t alter anything… check out [www.thashizzit.net](http://www.thashizzit.net) to see what i’m talking about. wha happened? is it a bandwidth/server problem ? This probably is an old question but i’m a newbie to this stuff so please help, i’d appreciate it.

---

<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:** [August 27, 2004, 2:52am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/2 "2004-08-27T02:52:08Z")

</div>

please post the fla, if you can’t post the whole fla with the first 4 or 5 frames!

---

<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:** [August 27, 2004, 3:01am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/3 "2004-08-27T03:01:11Z")

</div>

## Frame 1: actions layer

bytes\_loaded = Math.round(\_root.getBytesLoaded());  
bytes\_total = Math.round(\_root.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
\_root.loadBar.\_width = getPercent_100;  
\_root.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
\_root.gotoAndStop(3);  
}

## Frame 2: actions layer

gotoAndPlay(1);

## Frame 3: actions layer

stop();

border, loadBar, loadText, and Layer 1 are the other layers. Layer 1 is the layer with the actual movie frames to play.

---

<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:** [August 27, 2004, 3:03am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/4 "2004-08-27T03:03:30Z")

</div>

oh and the whole swf is 167 kb with 120 frames total.

---

<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:** [August 27, 2004, 3:44am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/5 "2004-08-27T03:44:30Z")

</div>

please replace any “\_root” with “this”!

i guess you did edit the script 😉

---

<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:** [August 27, 2004, 4:07am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/6 "2004-08-27T04:07:34Z")

</div>

darn it ! ☹ i did what u said, but it loaded up to about 70 percent…and it turned white blank again … check out [www.thashizzit.net](http://www.thashizzit.net) … to see, any other problems u see?

---

<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:** [August 27, 2004, 4:08am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/7 "2004-08-27T04:08:41Z")

</div>

oh wait nevermind…i forgot there were two more “\_roots” to replace…DOH…ur prolly laughing at me right now haha…brb

---

<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:** [August 27, 2004, 4:22am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/8 "2004-08-27T04:22:56Z")

</div>

PROBLEM WORSENED…after i replaced all the “\_roots” with “this” … the flash movie doesn’t show AT ALL, its just white blank all throughout…look at the website to see !  
this is what i put…

## Frame 1: actions layer

bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndStop(3);  
}

---

<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:** [August 27, 2004, 4:35am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/9 "2004-08-27T04:35:53Z")

</div>

OMG I’M SUCH A DOOFUS…after altering, i forgot to EXPORT the updated fla ! again i apologize and it now WORKS ! ! ! thx mansour…ok no more whining

---

<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:** [August 27, 2004, 4:37am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/10 "2004-08-27T04:37:50Z")

</div>

it’s funny but I have found myself being my worst enemy in learning flash :-/

---

<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:** [August 27, 2004, 4:39am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/11 "2004-08-27T04:39:00Z")

</div>

the code is good, weird 😕  
do u have a “stop();” on frame 3, if you then why?

---

<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:** [August 27, 2004, 4:40am UTC](https://forum.kirupa.com/t/i-used-kirupas-percentpreloader-but/62352/12 "2004-08-27T04:40:16Z")

</div>

> [@aknatn](#):
>
> it’s funny but I have found myself being my worst enemy in learning flash :-/

lol 😃
