PDA

View Full Version : target scene


capo
09-10-2001, 10:49 PM
i'm having trouble targeting a scence in a .SWF loaded on a lower level.

there is the main.swf ( level0 ).

on level1 is navigation.swf.
it contains two scenes ( preload and navigation ).

on level2 is info.swf.
it contains a button that on(release) should go to a frame labeled "show" in the navigation scene of the navigation.swf on level1.

it tried this code:
on (release) {
_root.level1.navigation.gotoAndPlay("show");
}

capo
09-10-2001, 11:20 PM
i did a search before i posted this and found nothing.
sorry.

i did figure out what i needed to do from a earlier post.

i found two solutions, i case anyone else need the info.

1. this works if the label you target doesn't have any stop() actions in the timelime before it.

on(release){
root.play("Scene1", "frameLabel");
}

2. if you have any labeled frames with stop() actions before your target label on the timeline, use this.

on (release) {
_level1.gotoAndPlay("frameLabel");
}