Intro to ActionScript 3 - Juliet Davis

Intro to ActionScript 3 - Juliet Davis

Using Buttons to Create a Simple Site Example: The Color Picker www.julietdavis.com/flashtutorials/colorpicker_Actio nScript3.fla www.julietdavis.com/flashtutorials/colorpicker_Actio nScript3.swf Step-by-step Instructions www.julietdavis.com/flashtutorials/colorpicker.doc J. DAVIS FLASH SITE SETUP

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

Recently Viewed Presentations

  • Viry

    Viry

    Viry Doprovodná prezentace k textu Viry Jan Novák Jak s prezentací pracovat? prezentace obsahuje dva druhy snímků osnovy vlastní snímky osnovy obsahují u každého tématu jeden z odkazů, který Vás odešle na příslušný snímek: vlastní snímky obsahují vždy v pravém...
  • Kurz Aplikovaná klinická farmacie

    Kurz Aplikovaná klinická farmacie

    3-4 Dr. Dagmar Jankovská - Historie klinické farmacie. Slide. 30 Náplň práce klinického farmaceuta ... Nuňéz L., Vaquero M., Delpón E.: Lipid-lowering therapy with statins, a new approach to antiarrhytmic therapy; J Pharm Thera 114 (2007) 107 - 126.
  • Cardiovascular System - St. John Brebeuf Regional Secondary

    Cardiovascular System - St. John Brebeuf Regional Secondary

    Anatomy of a capillary bed. A capillary bed forms a maze of capillary vessels that lies between an arteriole and a venule. When sphincter muscles are relaxed, the capillary bed is open, and blood flows through the capillaries.
  • CS 540 - Introduction to AI Fall 2015

    CS 540 - Introduction to AI Fall 2015

    Training with Noisy Data. If we can clean up the training data, should we do so? No (assuming one can't clean up the testing data when the learned concept will be used) Better to train with the same type of...
  • Sport Class Air Racing

    Sport Class Air Racing

    Terminate with a low approach if not on the active runway Early go around to prevent a conflict is a gold star Ask Race 12! ... Spot and Start Times Meet for final brief at Lead's airplane "No Prop Turn"...
  • Emerging Light - TAU

    Emerging Light - TAU

    Photonic crystals. Photonic crystals. are materials that have a periodic variation in a refractive index on a length scale of the light wavelength. The periodicity of the lattice prohibits light from propagating in certain directions or possessing certain frequencies and...
  • Myths about Business Ethics - Direct Selling Education Foundation

    Myths about Business Ethics - Direct Selling Education Foundation

    Myth 7: Ethics can't be managed. Ethics is always "managed" -- but, too often, indirectly. For example, the behavior of the organization's founder or current leader is a strong moral influence, or directive if you will, on behavior or employees...
  • Human Resources Department Desired State of Evolution

    Human Resources Department Desired State of Evolution

    Desired State of Evolution (DSOE) - Brief Description. In order to implement a logical and articulated strategic performance management system, any entity should clearly identify its purposeful identity: who it is, what its values are, what is the direction it...