Scene Issue

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

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:

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

:love: ~ Seretha

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

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

is not working correctly. any idea?

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.

my guess is you need _root there:

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

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”)