# Flash hates me

**URL:** <https://forum.kirupa.com/t/flash-hates-me/11661>\
**Category:** random\
**Created:** [January 20, 2003, 8:32pm UTC](https://forum.kirupa.com/t/flash-hates-me/11661 "2003-01-20T20:32:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sfpiano](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Sfpiano](https://forum.kirupa.com/u/Sfpiano)\
**Post date:** [January 20, 2003, 8:32pm UTC](https://forum.kirupa.com/t/flash-hates-me/11661/1 "2003-01-20T20:32:45Z")

</div>

When my mc fades out, I want it to go to the next scene:

```auto

onClipEvent (enterFrame) {
	this._alpha -= 10;
	if (this._alpha<=0) {
		nextScene();
	}
}

```

But it doesn’t. It just sits there. I have no clue what I’m doing wrong.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2003, 8:50pm UTC](https://forum.kirupa.com/t/flash-hates-me/11661/2 "2003-01-20T20:50:51Z")

</div>

scenes are the DEVIL!

but since you are using them, seems like you have to find away around using them. The thing is, scene navigation doesnt work unless called from the main timeline, and since that script is a movieclip script, its being called from that movieclip. So what you need to do is call nextScene() from the main timeline. How to do that? by making it a function 🙂

so in the first frame of the main timeline, make a new function. We’ll call this gotoNextScene.

```auto

gotoNextScene = function() {
	nextScene();
}

```

then change your movieclip script to

```auto

onClipEvent (enterFrame) {
	this._alpha -= 10;
	if (this._alpha<=0) {
		_root.gotoNextScene();
	}
}

```

and you should be golden

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 20, 2003, 9:07pm UTC](https://forum.kirupa.com/t/flash-hates-me/11661/3 "2003-01-20T21:07:00Z")

</div>

That did it, thanks.
