Gotoplay another scene on another level

The main movie is load to a movie clip named host (on level0), by an earlier preloader.

On button hit my movie goes from it’s “Main” scene to “Scene2”.

In “Scene2” loadmovie loads scene2.swf to level2.
Within this movie is an exit button. My button has the following code. But it doesn’t work right.

_root.host.gotoAndPlay(“Main”, “MainStart”);
unloadMovieNum(2);

The unload part works fine. It’s targeting a scene in another level which is my problem. I’ve tried
_level0.host.gotoAndPlay(“Main”, “MainStart”);
as well.

Please help,

Ron

If you have a button which is in a movie clip that’s loaded into level 2, and you wish to target the main time line of the orginal movie (ie Level 0) you would use for actions on the button:

[COLOR=blue]on (release) {
_level0.gotoAndPlay(“main”, “mainstart”);
}[/COLOR]

You are using:

_level0.host.gotoAndPlay.

This is targeting a movie clip called host in Level 0.

But the timeline I am trying to access is in an MC nmaed host on level0.

so is _level0.host.goto correct? why doesn’t it work?

Ron

Hmm! This worked!

tellTarget ("_level0.Host") {
gotoAndPlay(“Main”, “MainStart”); }

so why didn’t _level0.Host.gotoAndPlay(“Main”, “MainStart”);

Is it the wrong syntax?

Ron R

Well essentially

tellTarget ("_level0.host") {
gotoAndPlay(“Main”, “MainStart”);
}

and

_level0.host.gotoAndPlay (“Main, MainStart”);

should both work the same. The only thing is, if you use Main, when the actual scene is main (lower case), Flash won’t go to main.

Also tellTarget has been phased out, so you should use gotoAndPlay.