Action script 101

852 views

Published on

A basic introduction to Action Script 3.0 for Adobe Flash Professional

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
852
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
31
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Action script 101

  1. 1. Object Oriented Programming Action Script 3.0
  2. 2. Interactive wish list for our project Navigating from scene to scene Launching a website from a button Sending an email Peace on Earth
  3. 3. function name of function ():void {      (reusable code block goes here)    } FUNCTION a task, such as navigating from scene to scene
  4. 4. Events and Event Handlers function name of function ( event:MouseEvent ):void {      (reusable code block goes here)    }
  5. 5. Event listener function name of function (event:MouseEvent):void {      (reusable code block goes here)    } instance name of button .addEventListener(MouseEvent.CLICK,name of function);
  6. 6. Parameters or specific instructions function name of function (event:MouseEvent):void {          gotoAndStop (frame number, “name of Scene”) } instancenameofButton.addEventListener(MouseEvent.CLICK, name of function);
  7. 7. Variable Name used for storage var coh_request: URLRequest = new URLRequest (“http://www.cityofhenderson.com”);          function coh (event:MouseEvent):void {          navigateToURL(coh_request, “_blank”); } cohBTN.addEventListener(MouseEvent.CLICK, coh);
  8. 8. var mail_request :URLRequest = new URLRequest(“ mailto:askmrkelly@gmail.com ”); function mail (event:MouseEvent):void { navigateToURL( mail_reques t, “_blank”); } mailBTN .addEventListener(MouseEvent.CLICK, mail );

×