Information Technology Reference
In-Depth Information
Go to the OVER state and press F6 and create a keyframe. Highlight the
on / off text and change the color to grey. Navigate out to the main stage.
Place the text_btn on the stage in Frame 1 the Button text layer. Align
it to the stage. With the button in place and the sound file inserted, we are
ready to make the invisible button, add some ActionScript to it, and
publish our movie.
Making the Invisible Button
The invisible button is a hit state only. It is useful when you want to track your
action scripts easily with visual clues. The invisible button is represented as a
blue box on the stage and is similar to a “slice” in Fireworks. The invisible button
acts as a hotspot for the attached ActionScript. It can be coded as any other
movieclip or button symbol, but it requires less work because it has few
attributes and is independent of the object it sits on.
Insert>New Symbol>button , name the button Trigger_btn. This but-
ton will trigger the ActionScript that controls the sound clip on the timeline.
In the button symbol editor, click on the HIT STATE and add a
keyframe. With the rectangle tool from the tool panel, create a box that
is 125 pixels by 25 pixels and center align it to the stage. Make the box
color a bright green. Navigate to the main stage through the Scene Path
above the timeline.
Add the trigger to the button on the stage
Place the trigger_btn on top of the text_btn . Align the trigger to the
stage.
Add a keyframe to Frame 2 (the one with the stop label) for EVERY
LAYER
This will extend the artwork across the two frames. The only item that will
change in Frame 2 is the ActionScript attached to the invisible button
(trigger_btn). All layers should have a dot (keyframe in them).
Insert > Figure > Screenshot > Audio Switch > Keyframes
Search WWH ::




Custom Search