# Preloader Idea

**URL:** https://forum.kirupa.com/t/preloader-idea/181993
**Category:** Uncategorized
**Created:** [March 14, 2006, 7:44pm UTC](https://forum.kirupa.com/t/preloader-idea/181993 "2006-03-14T19:44:58Z")
**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: [March 14, 2006, 7:44pm UTC](https://forum.kirupa.com/t/preloader-idea/181993/1 "2006-03-14T19:44:58Z")

</div>

Ok here is my idea, percent is out of 100, so if I made a 100 frame animation in a movie clip and asigned to it actionscript somthing along the lines of

onClipEvent (enterFrame); {  
var percentage = \_root.percentLoaded  
\_root.preloadAnim.gotoAndPlay (percentage);  
}

I’m not very good at actionscript so that is probably terible :bored:…  
but using the CORECT code flash should find out the percent of the animation that is loaded and then go to the coresponding frame of the loader Animation?

so what I’m asking you is can you help me get the right code to do this because I’m to useless :upset:

thanks, Matt :thumb2:
