Action script 101
Upcoming SlideShare
Loading in...5
×
 

Action script 101

on

  • 822 views

A basic introduction to Action Script 3.0 for Adobe Flash Professional

A basic introduction to Action Script 3.0 for Adobe Flash Professional

Statistics

Views

Total Views
822
Views on SlideShare
821
Embed Views
1

Actions

Likes
0
Downloads
26
Comments
0

1 Embed 1

http://www.linkedin.com 1

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Action script 101 Action script 101 Presentation Transcript

  • Object Oriented Programming Action Script 3.0
  • Interactive wish list for our project Navigating from scene to scene Launching a website from a button Sending an email Peace on Earth
  • function name of function ():void {      (reusable code block goes here)    } FUNCTION a task, such as navigating from scene to scene
  • Events and Event Handlers function name of function ( event:MouseEvent ):void {      (reusable code block goes here)    }
  • Event listener function name of function (event:MouseEvent):void {      (reusable code block goes here)    } instance name of button .addEventListener(MouseEvent.CLICK,name of function);
  • Parameters or specific instructions function name of function (event:MouseEvent):void {          gotoAndStop (frame number, “name of Scene”) } instancenameofButton.addEventListener(MouseEvent.CLICK, name of function);
  • 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);
  • 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 );