|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Play, then goto frame..?? Help!!
Hi, I've been trying to get the following effect, maybe somebody could help.
One one frame, I have three buttons, all of which have a similar function. When released, set variable gotoframe = framename then play. Where framename = services, ink or pixel So that when a button is pressed, it plays the 'screen wipe' animation then reaches a frame where there is an if statment. That if statment looks at the value of gotoframe and jumps to the appropriate frame name defined by the variable. Hope this makes sense. Could somebody please give me an example snippet of code or possibly another technique to obtain the same effect. -Evan (n3xr0) |
|
#2
|
|||
|
|||
|
Hi, what's wrong with what you said? You could attach the if statement to an onEnterFrame event handler but it would essentially be the same thing. You would have to check the current frame number as well if you did that though.
|
|
#3
|
|||
|
|||
|
I realized the problem... I knew it had to be a simple scripting error. The button would play, but wouldn't jump to appropriate frame. The problem was in the if statement.
The if condition was 'if gotoframe = 1" and needed to have a '==' instead. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Play, then goto frame..?? Help!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|