# Scene Issue

**URL:** <https://forum.kirupa.com/t/scene-issue/17998>\
**Category:** flash\
**Created:** [April 11, 2003, 10:26pm UTC](https://forum.kirupa.com/t/scene-issue/17998 "2003-04-11T22:26:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayanami](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@Ayanami](https://forum.kirupa.com/u/Ayanami)\
**Post date:** [April 11, 2003, 10:26pm UTC](https://forum.kirupa.com/t/scene-issue/17998/1 "2003-04-11T22:26:56Z")

</div>

hey all. i’m fairly confident that i’ve coded this correctly, but you never know.

```php
on (press) {
	gotoAndPlay("text", 1);
}
onClipEvent (enterFrame) {
	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
		this.nextFrame();
		_root.graylinethingclip.nextFrame();
	} else {
		this.prevFrame();
		_root.graylinethingclip.prevFrame();
	}
}

```

when i click on the MC that is acting as a button here, the scene refuses to change. I’m on Scene 1 and the scene that i’m trying to goto is named text and it should begin playing on frame 1. what gives? any suggestions from anybody?:whistle:

---

<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:** [April 11, 2003, 10:32pm UTC](https://forum.kirupa.com/t/scene-issue/17998/2 "2003-04-11T22:32:39Z")

</div>

Try changing the \_root to say \_level1 since you’re loading it on level 1 and see if it helps.

:love: ~ Seretha

---

<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:** [April 14, 2003, 12:18am UTC](https://forum.kirupa.com/t/scene-issue/17998/3 "2003-04-14T00:18:05Z")

</div>

well, it didn’t really do anything but change something that shouldn’t have been. i guess what i’m really asking is why this

```php
on (press) {
    gotoAndPlay("text", 1);

```

is not working correctly. any idea?

---

<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:** [April 14, 2003, 5:25am UTC](https://forum.kirupa.com/t/scene-issue/17998/4 "2003-04-14T05:25:44Z")

</div>

hrrrmmm… what i’ve learned from playing around with this even more:

is it possible to have a MC change scenes? for instance, the MC on the site doesn’t have the behavior as a button, but it’s still doing button like things, i’m so confusing, i know.

---

<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:** [April 14, 2003, 5:32am UTC](https://forum.kirupa.com/t/scene-issue/17998/5 "2003-04-14T05:32:54Z")

</div>

my guess is you need \_root there:

```php
on (press) {
    _root.gotoAndPlay("text", 1);
}

```

---

<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:** [April 14, 2003, 5:44am UTC](https://forum.kirupa.com/t/scene-issue/17998/6 "2003-04-14T05:44:18Z")

</div>

Yes, I would think \_root is needed here as well… BUT… Flash is buggy with Scenes so you never know.

Scenes suck, and Flash have very little support for them (ironic since it has them anyway).

What you should do is in the scene “text” give your frame 1 a frame label (click on the frame, open the properties, give it a label).

THEN… call it with…

\_root.gotoAndPlay(“frameLabelName”)
