# (MX) I need a preloader that is NOT attached to onClipEvent

**URL:** <https://forum.kirupa.com/t/mx-i-need-a-preloader-that-is-not-attached-to-onclipevent/182549>\
**Category:** flash\
**Created:** [March 19, 2006, 8:37am UTC](https://forum.kirupa.com/t/mx-i-need-a-preloader-that-is-not-attached-to-onclipevent/182549 "2006-03-19T08:37:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![feeverte](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@feeverte](https://forum.kirupa.com/u/feeverte)\
**Post date:** [March 19, 2006, 8:37am UTC](https://forum.kirupa.com/t/mx-i-need-a-preloader-that-is-not-attached-to-onclipevent/182549/1 "2006-03-19T08:37:50Z")

</div>

Hi people  
I know scene are ‘‘bad’’ but this is a project already made that i have to update so what I really need to do is after the movie is loaded go to frame 1 scene 2. It wont go. I did try to copy scene 2 into MC but it all get in a mess…  
on ClipEvent (enterFrame) {  
loading = \_parent.getBytesLoaded();  
total = \_parent.getBytesTotal();  
percent -= (percent-((loading/total)_100))_.25;  
per = int(percent);  
percentage = per+"%";  
loadBar.\_width = per;  
if (percent\>99) {  
\_parent.gotoAndStop(“Scene 2”, 1);  
}  
}

Can anyone suggest a preloader that display bits loaded or percentage (no bar needed) and that I can make it go to scene.  
Free beers for all!  
thnx

---

<div class="post-metadata">

**Author:** ![scotty](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@scotty](https://forum.kirupa.com/u/scotty)\
**Post date:** [March 19, 2006, 8:54am UTC](https://forum.kirupa.com/t/mx-i-need-a-preloader-that-is-not-attached-to-onclipevent/182549/2 "2006-03-19T08:54:15Z")

</div>

Put this in the first frame

```auto
stop();
this.onEnterFrame = function() {
	var loading = this.getBytesLoaded();
	var total = this.getBytesTotal();
	var percent = Math.round((loading/total)*100);
	percentage = percent+"%";
	loadBar._width = per;
	if (percent>99) {
		this.gotoAndStop("Scene 2", 1);
	}
};

```

scotty(-:
