Actions
GoTo options
Now analyze the script panel and try to change parameters.
If you highlight word release in the script you will see all possible events for the buttons. Clicking buttons is not so simple as it may seem to be. When clicking button the first thing which happen is rollover event when mouse enters the hit area. If you click the mouse button press event is raised.
Release is default button event because its happen when you let mouse button go. So if you click mouse and drag it out of the button hit area there is no release event because mouse release happen outside the button. For those purpose its release outside event.
You may change number of the frame to go when typing number another than 1 in the Frame input box. Roll out happens when mouse cursor is moved out of the button hit area. dragging events works for draggable symbols which we dont discuss in this course. Keypress needs a key to be entered from keyboard script will work when you hit this key.
Now we will introduce frame labels. Enter one more layer and call it LABELS. When the cursor is on the frame interval open Properties inspector and enter the label into the Frame input box. This name will appear on the timeline.
Now if you change in the Actions Panel Frame Number to Frame Label (to do it you need firstly to highlight the goToAndPlay() line on the Script window) you will be able to select this label instead of frame number. It is extremely useful if your animation is still in design stage and you are changing duration of frame intervals. Lets add the label one to the first keyframe and change the script to goToAndPlay(one) by selecting frame label. Now if you change the animation and frame with text 1 is now under the frame 55 or 100 you will still jump to text 1 when clicking the button.
If you change the Type to the NextFrame or PreviousFrame your button will go one frame forth or back and stop there.
If you select goToAndStop() radio button you will not continue playing movie after jumping to the selected frame.