creating
a menu and then a website in flash is fun, although a hair
confusing... here is a link to a tutorial of what we will be doing in
class:
buttons:
http://schoolofflash.com/blog/2008/05/flash-cs3-tutorial-movie-clip-buttons/start with buttons (they are animated! fun!) then we can add them to a website, which is fairly simple...
Taylor (TA) is a Flash guru and is ready to answer questiona
Flash
is an animation program that can prove useful for the web, most
notably for it entertainment properties. It works with a timeline,
layers and scenes to create basic animations...
Action scripting: the code used to make your button work!
YOUR INSTANCE BUTTON NAME.buttonMode = true;
YOUR INSTANCE BUTTON NAME.addEventListener(MouseEvent.ROLL_OVER,animIn);
YOUR INSTANCE BUTTON NAME.addEventListener(MouseEvent.ROLL_OUT,animOut);
function animIn(event:MouseEvent):void {
event.target.gotoAndPlay("over");
}
function animOut(event:MouseEvent):void{
event.target.gotoAndPlay("out");
}
No comments:
Post a Comment