# as2 preloader. request help with small thing

**URL:** https://forum.kirupa.com/t/as2-preloader-request-help-with-small-thing/252719
**Category:** Uncategorized
**Created:** [February 22, 2008, 7:50pm UTC](https://forum.kirupa.com/t/as2-preloader-request-help-with-small-thing/252719 "2008-02-22T19:50:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lasadorian](https://avatars.discourse-cdn.com/v4/letter/l/3ab097/32.png) [@lasadorian](https://forum.kirupa.com/u/lasadorian)
#### Post date: [February 22, 2008, 7:50pm UTC](https://forum.kirupa.com/t/as2-preloader-request-help-with-small-thing/252719/1 "2008-02-22T19:50:37Z")

</div>

Basically what i have is a intro mc on frame 1… then frame 2 is my preloader. then frame 3 is my videoclip atm. What i want to happen is have the preloader to at least appear for a small interval. So intro movie plays, then preloader plays. for a desired interval by going into the preloader\_mc mc for a smalla mount of time. As of right now it loads to fast and the preloader\_mc just goes right into scene3.

hi here is my preloader code

// Preloader Script  
// ==================================================  
this.onEnterFrame = function() {  
var bl = \_root.getBytesLoaded();  
var bt = \_root.getBytesTotal();  
var percent = Math.round((bl/bt)\*100);

```
preloader_mc.percentage_txt.text = percent+"%";
preloader_mc.gotoAndStop(percent);
if (bl == bt) {
    preloader_mc.play();
    var myCountdown = setInterval(resumePlay,7000);
    //_root.gotoAndStop(3);
    
}

```

}  
//  
stop();  
function resumePlay(){  
\_root.gotoAndStop(3);  
clearInterval(myCountdown);  
delete this.onEnterFrame;  
}

link to what im working on so u can see it  
[http://www.parabol-designs.com/projects/ride/temp](http://www.parabol-designs.com/projects/ride/temp)

any help would be lovely
