PDA

View Full Version : No loading Scene


irafis
12-07-2006, 06:59 PM
Hi.

I have an animated movie-button (10 frames). It is inside of another movie.
I want that on release load ex_scene1

My code:

on (release) {
gotoAndPlay(2);
_root.gotoAndPlay("ex_scene1", 1)
}

When i click i see the animation but the scene doesn't load.
Maybe i have to put _root.gotoAndPlay("ex_scene1", 1) on the last keyframe in animation?

Thank you,
Cris

samplamix
12-15-2006, 07:23 AM
take out the _root. if you're using a scene in the gotoAndPlay/Stop.

anonymous
12-15-2006, 01:05 PM
Do not target scene names, but only labeled frames in the targeted scene.

Thus label the targeted frame in the targeted scene with an unique label such as my_target1, add _root or _level0 (even _parent if you're into relative paths...) to your path, and only target the labeled frame on your script...

_level0.gotoAndPlay("my_target1");

samplamix
12-19-2006, 02:11 AM
I didn't know that would work. Excellent. Thanks, that'll save me lots of headaches as I use scenes even though they're more trouble than they're worth :)

anonymous
12-19-2006, 07:15 PM
Ÿou're welcome. ;)