Using Buttons to Create a Simple Site Example: The Color Picker www Using Buttons to Create a Simple Site Example: The Color Picker www.julietdavis.com/flashtutorials/colorpicker_ActionScript3.fla www.julietdavis.com/flashtutorials/colorpicker_ActionScript3.swf Step-by-step Instructions www.julietdavis.com/flashtutorials/colorpicker.doc FlasH Site Setup J. DAVIS
Scripting Pane
“Script THIS” Name your instances FIRST (button instances and movie clip instances). stop(); red_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1); function mouseDownHandler1(event:MouseEvent):void { gotoAndStop("red"); } green_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2); function mouseDownHandler2(event:MouseEvent):void { gotoAndStop("green"); orange_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3); function mouseDownHandler3(event:MouseEvent):void { gotoAndStop("orange");
Questions? Next: Step by Step Color Picker and How to change Color Picker Into your Final Project