You should include the following:
- A custom mouse pointer
- An opening "scene" which stops at a specific keyframe or loops back to the beginning.
- A button which will advance the viewer to the next "scene"
- A "stop" on the next scene so users can view everything
- A button which will allow users to move to the next scene(s) and a "stop" button
- On the last frame of the last scene, a button which will allow users to start over from the first scene
- Sound and/or music
Some of the ActionScript you will need includes:
/* Custom Mouse Pointer Code */
onClipEvent (load) {
Mouse.hide();
startDrag(this, true);
}
onClipEvent(mouseMove){
updateAfterEvent();
}
/* Stop Code */
stop();
/* Button 'Go To' Code */
on (release) {
gotoAndPlay(10);
}
- Open Adobe Flash
- Create a new document: FILE > NEW > Flash File (ActionScript 2.0)
- Create 3 Layers: Pointer, Buttons, and Background
- On the background layer, draw a background
- On the pointer layer, draw a pointer
- Select the pointer background layer (it will select the pointer)
- Click Modify > Convert to Symbol > Movie Clip (name it Pointer)
- Right-click the pointer symbol and select "Actions"
- Enter the following ActionScript:
onClipEvent (load) {
Mouse.hide();
startDrag(this, true);
}
onClipEvent(mouseMove){
updateAfterEvent();
} - Press CTRL+ENTER to test your movie
- Draw a button
- Convert the button to a symbol (a button, obviously)
- Go out to Frame 10 (for example) and add a keyframe for each layer.
- Draw a new "scene" on Frame 10
- Right-click the first keyframe on any layer (black dot) and choose Actions
- Enter the following ActionScript: stop();
- Right-click any layers last keyframe and choose Actions
- Enter the following ActionScript: stop();
- Right-click the button and enter the following ActionScript (if you set the next scenes keyframe at 10):
on (release) {
gotoAndPlay(10);
} - Test your movie (CTRL+ENTER)
Once your movie is working (i.e. It opens and stays until you click the button -- and then it goes to the next section and stays) you can begin adding some flair. Add sound effects, improve your mouse pointer, insert some music, insert pictures, etc.
No comments:
Post a Comment