# Question

**URL:** <https://forum.kirupa.com/t/question/27563>\
**Category:** Uncategorized\
**Created:** [August 4, 2003, 4:46am UTC](https://forum.kirupa.com/t/question/27563 "2003-08-04T04:46:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nxp\_design](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@nxp\_design](https://forum.kirupa.com/u/nxp_design)\
**Post date:** [August 4, 2003, 4:46am UTC](https://forum.kirupa.com/t/question/27563/1 "2003-08-04T04:46:28Z")

</div>

I’ve asked this before, but it wasn’t the way i wanted it to.

How do you create a preload bar, showing the percentage? Just the number without any % sign after the number.

I want the number to scroll simultaneously at the bottom with the bar.

[Jenniferlopez.com](http://Jenniferlopez.com) has this type of preload. Thanks.

---

<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 4, 2003, 5:11am UTC](https://forum.kirupa.com/t/question/27563/2 "2003-08-04T05:11:00Z")

</div>

Well there are a lot of tutorials on preloaders, but using this one:  
[http://www.kirupa.com/developer/mx/percentagepreloader.htm](http://www.kirupa.com/developer/mx/percentagepreloader.htm)

just change this line:

this.loadText = Math.round(getPercent\*100)+"%";

to:

this.loadText = Math.round(getPercent\*100)+"%

And that gives you just the number…

And to make it move with the bar, you can make the dynamic textbox into a movieclip, and link their x coordinates…

---

<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 4, 2003, 6:07am UTC](https://forum.kirupa.com/t/question/27563/3 "2003-08-04T06:07:07Z")

</div>

Hey thanks a lot, but I dont’ know how to link the text. I can’t do any actionscript. could you help me out?

---

<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 4, 2003, 7:52am UTC](https://forum.kirupa.com/t/question/27563/4 "2003-08-04T07:52:22Z")

</div>

hmm, i’ll havta think about that since i’m not too sure. But try this:

[AS]  
this.onEnterFrame = function() {  
this.\_x += this.loadBar.\_width  
}  
[/AS]

It might work, most likely not since nothing ever does until i actually try it :P, and i can’t really be stuffed to try it at the moment, so just post the fla after you’ve tried it and i’ll work from there 🙂

oh yea, in the last post, i just noticed both the lines i gave you were the same. You’re suppose to change the line to:

[AS]  
this.loadText = Math.round(getPercent\*100)  
[/AS]

---

<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 4, 2003, 7:57am UTC](https://forum.kirupa.com/t/question/27563/5 "2003-08-04T07:57:01Z")

</div>

Hmm ok thinking about the first code i gave you again, its definately not going to work :-\

EDIT:  
maybe try:

this.\_x += getpercent\*100

that might work but maybe not either :-\

---

<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 4, 2003, 8:00am UTC](https://forum.kirupa.com/t/question/27563/6 "2003-08-04T08:00:02Z")

</div>

Try this instead:

[AS]this.onEnterFrame = function() {  
this.\_x = this.loadBar.\_x + widthofloadbar;  
}  
[/AS]

This should work if the registration point is on the left. If it’s in the middle, add “/2” at the end of widthofloadbar and if the registration point is at the right, delete “+ widthofloadbar”.

Untested though …

---

<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 4, 2003, 8:02am UTC](https://forum.kirupa.com/t/question/27563/7 "2003-08-04T08:02:30Z")

</div>

oh yeah, yea i think that would work 😛

---

<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 4, 2003, 2:48pm UTC](https://forum.kirupa.com/t/question/27563/8 "2003-08-04T14:48:58Z")

</div>

Am I suppose to make the dynamic text into a movie clip?

Then apply this action to the first perload frame, but to the same layer as the loadText?

---

<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 4, 2003, 3:07pm UTC](https://forum.kirupa.com/t/question/27563/9 "2003-08-04T15:07:16Z")

</div>

Yes to all your questions 🙂 doesn’t havta be on same layer though, better to put all your actions on a layer called “AS” or “Code” or somethin…

---

<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 4, 2003, 3:21pm UTC](https://forum.kirupa.com/t/question/27563/10 "2003-08-04T15:21:31Z")

</div>

That doesn’t work, it blanks out my preload bar.

---

<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 4, 2003, 3:22pm UTC](https://forum.kirupa.com/t/question/27563/11 "2003-08-04T15:22:31Z")

</div>

can i see yor fla

---

<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 4, 2003, 3:29pm UTC](https://forum.kirupa.com/t/question/27563/12 "2003-08-04T15:29:11Z")

</div>

You got Icq or MSN? Or any IM?

---

<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 4, 2003, 3:32pm UTC](https://forum.kirupa.com/t/question/27563/13 "2003-08-04T15:32:36Z")

</div>

Doesn’t it work on here? tried zippin 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 4, 2003, 3:34pm UTC](https://forum.kirupa.com/t/question/27563/14 "2003-08-04T15:34:17Z")

</div>

Don’t want to give it out, that’s all.

---

<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 4, 2003, 3:35pm UTC](https://forum.kirupa.com/t/question/27563/15 "2003-08-04T15:35:44Z")

</div>

Cut out some stuff and resave it, i just can’t be bothered to start everythin from scratch to test the code 😛

---

<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 4, 2003, 3:40pm UTC](https://forum.kirupa.com/t/question/27563/16 "2003-08-04T15:40:53Z")

</div>

Actually, here you go… never mind.

---

<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 4, 2003, 3:47pm UTC](https://forum.kirupa.com/t/question/27563/17 "2003-08-04T15:47:07Z")

</div>

.rar?? how do i open this type of file?!

---

<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 4, 2003, 3:50pm UTC](https://forum.kirupa.com/t/question/27563/18 "2003-08-04T15:50:30Z")

</div>

Okay… still old school I 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 4, 2003, 4:04pm UTC](https://forum.kirupa.com/t/question/27563/19 "2003-08-04T16:04:38Z")

</div>

eh? old school? i guess :-\

Heres your thing, very nice begining part (but looks a bit like the old 2Advanced :-)…

---

<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 4, 2003, 4:10pm UTC](https://forum.kirupa.com/t/question/27563/20 "2003-08-04T16:10:47Z")

</div>

Thanks a lot, it worked!

Now, that’s solved.

Yah, I’m starting a new one. I hate when I do that. I spent two weeks on that, and I start a new one.
