# Bit of trouble with an event, please I really am stuck here

**URL:** <https://forum.kirupa.com/t/bit-of-trouble-with-an-event-please-i-really-am-stuck-here/175999>\
**Category:** Uncategorized\
**Created:** [January 19, 2006, 3:25pm UTC](https://forum.kirupa.com/t/bit-of-trouble-with-an-event-please-i-really-am-stuck-here/175999 "2006-01-19T15:25:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [January 19, 2006, 3:25pm UTC](https://forum.kirupa.com/t/bit-of-trouble-with-an-event-please-i-really-am-stuck-here/175999/1 "2006-01-19T15:25:11Z")

</div>

I have spent hours trying to do this, and I am totally stuck, can anyone help me out here please.

```auto

onClipEvent (enterFrame) {
	loading = _parent.getBytesLoaded();
	total = _parent.getBytesTotal();
	
	percent -= (percent-((loading/total)*100))*.25;
	per = int(percent);
	
	_root.mcPreloader.mcStar.percentage = per+"%";
	loadBar._width = per*1.78;

	if (percent>99) {
		this._alpha -=5;}
		//stop();
		//_root.gotoAndStop(3);
}

```

Basically what I have is a preloader and when it reaches 99% it fades out.

Now my problem is after the fade out I need to goto frame 3, however if i place the goto command, the fade out becomes non existant and it goes to frame 3 anyway. How can I get it to goto frame 3 after it has faded out.

Any advice urgently needed,

many thanks
