Desperately need for assginment Flash MX 2004 hitTest gotoAndPlay

hey all, just trying to figure out what path is correct, i’ve tried _root.gotoAndPlay(“S4”, 1);
this._root.gotoAndPlay(“S4”, 1);
this.gotoAndPlay(“S4”, 1);

statements are in a rock that if it collides with the spaceship, game over, hitTest works, but doesn’t jump to next scene to say “Game Over”.


if (this.hitTest(this._parent.motherShip)) {
trace("Hit!");
this.stop();
gotoAndPlay("S4", 1);
}

Thanks in advance

Can you post the .fla or at least all of the actionscript so I can see how you’ve been naming things. Also, what levels are the rock and the spaceship on?

And does your trace function work? I think you indicated that it did, the only thing that isn’t working is that your movie isn’t moving to the next scene. Are you sure your scene is named “S4”?

to go between scenes, i think it’s

gotoAndPlay("scene", "frame");

but don’t quote me on that.

i think you want _root.gotoAndPlay(“S4”,4);
You should really take a peak at this, though.
http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm