last week's homework:
update student work page ( if you haven't done so already )
Work on Final Project
Due Monday: 1 finished page ( HTML and/or FLASH )
Today:
*look at FINAL PROJECT in progress
<!-- INSERT FLASH SWF -->
<object data="file.swf" type="application/x-shockwave-flash" width="..." height="...">
<param name="movie" value="file.swf">
<!-- If flash is not installed -->
<p>You need Adobe Flash Player to view this content</p>
</object>
Instructions for making a button:
1. make a button symbol
2. move it on the stage
*3. GIVE IT AN INSTANCE NAME (in the properties window)
4. make sure you gave your symbol an instance name
5. play with up, over, down, and hit, by inserting Keyframes in the button symbol's timeline
*6. add a layer called actions to your timeline
7. add ActionScript to your timeline:
// THIS IS A COMMENT
stop();
or
gotoAndPlay(1);
8. add an Event Listener to the instance of your button:
firstButton.addEventListener(MouseEvent.CLICK, clickHandler);
9. define your function's properties:
function clickHandler(evt:Object):void{
gotoAndPlay(31);
}
10.
Save your file and test your movie