1 / 20

Introduction to ActionScript 3 using Flash CS3

Introduction to ActionScript 3 using Flash CS3 . Ravi Kumar Hamsa. Overview. History Penetration ActionScript 1 and 2. What you can do?. control the play head of a timeline move things around create and manage user interfaces play sounds control video manage data (xml, lists, etc)

azuka
Télécharger la présentation

Introduction to ActionScript 3 using Flash CS3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to ActionScript 3 using Flash CS3 Ravi Kumar Hamsa

  2. Overview • History • Penetration • ActionScript 1 and 2

  3. What you can do? • control the play head of a timeline • move things around • create and manage user interfaces • play sounds • control video • manage data (xml, lists, etc) • communicate with server-side applications (e.g., web servers)

  4. Introduction to Flash IDE • Workspace • Stage • Timeline • Layers • Toolbar • Library • Frames

  5. What’s New in Flash CS3 • Animation to ActionScript conversion • Standard Adobe Interface • Advanced Debugger • Rich Drawing Capabilities • User Interface Components • QuickTime Export

  6. Symbols and Instances • 3 Symbols Types, MovieClip, Graphi, Button • Symbol == Master • Instance == Copy • Instance Name

  7. MovieClip Properties • x • y • width • height • scaleX • scaleY • rotation • alpha (transparency)

  8. Timeline Control • play( ) • stop( ) • gotoAndPlay( ) • gotoAndStop( ) • nextFrame( ) • prevFrame( ) • currentFrame • currentLabel • currentLabels • totalFrames

  9. Introduction to ActionScript 3 • Programming language for Flash run-time • Based on ECMA-262 edition 4 • New AVM2 • True OOM • Performance • Coding Standards

  10. Operators • Arithmetic Operators: +, -, *, /, %, ++, –, +=, -=, *=, /=, %= • Comparison Operators: <, >, <=, >=, ==, ===, !,!=, !==, &&, || • Other Operators: is, as, in, typeof, instanceof • Operator precedence • Bitwise Operators

  11. Conditional Statements • if, else, else if • switch, case

  12. Loops • while • for, for each in • while (compare) { statements update } for (initialize; compare; update) { statements }

  13. Data Types • Primitive:Boolean, int, null, Number, String, uint, undefined • Complex:Object, Array, Date, Error, Function, RegExp, XML, XMLList

  14. Events • Built-in Events • Custom Events • EventDispatcher

  15. Mouse Events • MouseEvent.MOUSE_DOWN • MouseEvent.MOUSE_UP • MouseEvent.CLICK • MouseEvent.DOUBLE_CLICK • MouseEvent.MOUSE_MOVE • MouseEvent.MOUSE_OVER • MouseEvent.MOUSE_OUT • MouseEvent.ROLL_OVER • MouseEvent.ROLL_OUT • MouseEvent.MOUSE_WHEEL

  16. Keyboard Events • KeyboardEvent.KEY_DOWN • KeyboardEvent.KEY_UP • Global Key Event Handling

  17. Animating • Motion Tween • Enterframe • Timer • Tween

  18. Drawing API • Drawing lines curveTo( ), lineTo( ) • Drawing shapes
beginBitmapFill( ), beginFill( ), beginGradientFill( ),  drawCircle( ), drawEllipse( ), drawRect( ), drawRoundRect( ),
drawRoundRectComplex( ), endFill( ) • Defining line styles lineGradientStyle( ), lineStyle( ) • Moving the drawing pen moveTo( ) • Removing graphics 
clear( )

  19. Drag & Drop, Collision • StartDrag • StopDrag • Bounding Box • hitTestToObject • hitTestToPoint

  20. Using Audio and Video • Video Encoder • Sound Class

More Related