# Preloading changed in flash 8?

**URL:** <https://forum.kirupa.com/t/preloading-changed-in-flash-8/178762>\
**Category:** flash\
**Created:** [February 14, 2006, 1:03am UTC](https://forum.kirupa.com/t/preloading-changed-in-flash-8/178762 "2006-02-14T01:03:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [February 14, 2006, 1:03am UTC](https://forum.kirupa.com/t/preloading-changed-in-flash-8/178762/1 "2006-02-14T01:03:37Z")

</div>

Okay ive used a code from flash mx that gives the smoothest preloader rarely skipping a number once and ive bought it into flash 8. That didnt work.

Heres the code:

```auto
onClipEvent (enterFrame) {
        loading = _parent.getBytesLoaded();
        total = _parent.getBytesTotal();
        percent -= (percent-((loading/total)*100))*.25;
        per = int(percent);
        loadBar._width = per;
        if (percent>99) {
                _parent.gotoAndStop(2);
        }
}

```

When I switch to flash 6 it works. But then when I go back to flash 8 it just stops and does nothing.

I’m actually not using a loadbar, instead im using numbers only, and I imported a few (20-30) numbers from photoshop (because not everyone has the font for the text). So what I’m trying to do is when the percent loaded is 5%…go to frame 1 inside a MC (which has the number 5 in it) and so on.

Any ideas? I can elaborate more if you dont understand (if I havent enough already).
