Doodle4Google
A Bit About Buttons
Your Code
stop()
Button_1_2.addEventListener(MouseEvent.CLICK, function_1_2);
function function_1_2(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Scene 2");
}
Button_1_3.addEventListener(MouseEvent.CLICK, function_1_3);
function function_1_3(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Scene 3");
}
Button_1_2.addEventListener(MouseEvent.CLICK, function_1_2);
function function_1_2(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Scene 2");
}
Button_1_3.addEventListener(MouseEvent.CLICK, function_1_3);
function function_1_3(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Scene 3");
}
Today's Assignment
Create an Animate project
Your Animate project should include three scenes
Each scene should contain two buttons
Each button should take you to one of the other scenes. For example:
Your Animate project should include three scenes
Each scene should contain two buttons
Each button should take you to one of the other scenes. For example:
- From scene one, you should have a button that takes you to scene two and a button that takes you to scene three
- From scene two, you should have a button that takes you to scene one and a button that takes you to scene three
- From scene three, you should have a button that takes you to scene one and a button that takes you to scene two