all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

need button help please



need button help please fredmoreno42
5/16/2004 9:08:01 PM
flash actionscript: ok, this is my first flash ive ever made and im trying to make a button go from
scene one to scene 5. i typed in the action script that the help file says but
it keep coming up with errors. can someone give me the actionscript for a
button to go from scene 1 to 5 please???
Re: need button help please mandingo
5/16/2004 11:17:38 PM
If you mean frames, then on your button:

on(release){
gotoAndPlay(5);
}

if you think you mean scenes... take this hint now. Don't use scenes and
sceneLabels for navigation. It is very buggy and may result in lots of errors
and headaches.

Give the frame that you want to goto a frameLabel and use that for your
navigation. Eg. frameLabel : "enterSite"

on(release){
gotoAndPlay("enterSite");
}

hope that is of assistance
cheers,


Re: need button help please fasterthanlight
5/17/2004 12:16:37 AM
i dont see how navigating via scenes is buggy...

on (release){
gotoAndStop("Scene 2");
}

on (release){
gotoAndStop("Scene 3");
}
Re: need button help please mandingo
5/17/2004 12:29:42 AM
It is buggy because unless fixed in 2004 (which I don't have), the scene labels
don't compile in the .SWF. This results in the scene labels being lost as a
reference point and substituted as frame numbers... this can cause problems.
It doesn't always but can be unpredictable.

Now the added problem is that the documentation suggests that the usage can be
:
on(release){
gotoAndPlay("Scene 2",5);
}
in the compiled .SWF this will lead to referencing two frame numbers...

You can continue using it that way and good luck to you... but if you take the
time to read the thousands of posts in the archives on this, you will find that
more often than not, scenes means headaches.

You choose what is right for you however.
AddThis Social Bookmark Button