PDA

View Full Version : Buttons aren't going to correct scene, just progresses to next scene :(



Origami
December 28th, 2006, 06:25 PM
Anyone ever have the problem when your buttons have the code to jump to a specific scene, they just jump to the next scene on your palette instead?

For instance, I've got 6 buttons that I need to operate as a normal HTML site. So I programmed each button to jump to the corresponding scene with...



on(release) {
gotoAndPlay("fine, frame1");
}


In this situation, that button needs to jump to the scene "fine", but instead, when I click on it, it simply jumps to the next scene in the scene palette (which isn't "fine").

Interestingly as well, once it scrolls through all 6 scenes (by clicking on any button 6 times), it starts over with the first scene again.

Anybody know what I am doing wrong?

Thanks!

koolkrasher
December 29th, 2006, 12:03 AM
try throwing quotes around fine and unless ur first fram is labled frame 1 dont put that in quotes give that a shot
gl
kool

scotty
December 29th, 2006, 06:35 AM
Read this:
http://www.senocular.com/flash/tutorials/faq/#gotoscene

scotty(-:

Sinister Rouge
December 29th, 2006, 06:49 AM
and as a general rule of thumb I would also say stay away from scenes and load external .swf files instead...

Origami
December 29th, 2006, 12:02 PM
and as a general rule of thumb I would also say stay away from scenes and load external .swf files instead...

Yeah, I started hearing that after I put everything together, but good to know in the future.

Taking out the "frame 1" was all I needed to do, and it started working fine. Thanks so much for the help everyone! Now all I have to do is find a way to dynamically show my design samples in that same web page www.emergestudios.org (http://www.emergestudios.org) and I'll be set :)