# Preloader Idea

**URL:** https://forum.kirupa.com/t/preloader-idea/179914
**Category:** flash
**Created:** [February 23, 2006, 11:02pm UTC](https://forum.kirupa.com/t/preloader-idea/179914 "2006-02-23T23:02:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Shoo](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@Shoo](https://forum.kirupa.com/u/Shoo)
#### Post date: [February 23, 2006, 11:02pm UTC](https://forum.kirupa.com/t/preloader-idea/179914/1 "2006-02-23T23:02:29Z")

</div>

Ok heres my idea:  
Percent = out of 100%  
So if I made a movie clip and on the timeline of that movieclip made a 100 frame animation, and then aplyed some action script to the main timeline somewere along the lines of:

```auto
 
onClipEvent(enterFrame); {
math.round percentLoaded = _root.preloader.frameNum
}
 
if.framesLoaded = totalFrames gotoandplay(2);
else gotoandplay(1);

```

I’m not very good at actionscript so alot of thats probably wrong but hey thats why I’m asking you for help

So would this work?:h:
