PDA

View Full Version : gotoAndPlay scenes


supernova0219
08-20-2002, 05:18 PM
Hi,

I have a question regarding the gotoAndPlay function with scenes. I realize this function works when I create a button and have the following actionscript attached to it:

on (release) {
gotoAndPlay("Scene 2", 1);
}


However, when I create a graphic and place that button inside and change the script to:

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

It doesn't seem to work. Any idea why? How might I beable to do this?

Ricod
08-20-2002, 05:24 PM
You cannot adress scenes from anywhere except the main timeline. Label your frame and adress that frame by its framelabel.

paulinskip
08-24-2002, 01:40 PM
You acn get buttons to work from within movie clips you just need to follow these rules:

1. you must jump to specific frame labels, you can not have duplicate labels
2. all labels must be alpha characters only with no spaces.

If you set up your labels like that you can access any part of any scene from anywhere.

Hope that helps