Intro To As3 Using Flash Cs3

2,037 views

Published on

It\'s a presentation used for Introduction to ActionScript training @ Yahoo!

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,037
On SlideShare
0
From Embeds
0
Number of Embeds
20
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Intro To As3 Using Flash Cs3

  1. 1. Introduction to ActionScript 3 using Flash CS3 <br />Ravi Kumar Hamsa<br />
  2. 2. Overview<br />History<br />Penetration<br />ActionScript 1 and 2<br />
  3. 3. What you can do?<br />control the play head of a timeline<br />move things around<br />create and manage user interfaces<br />play sounds<br />control video<br />manage data (xml, lists, etc)<br />communicate with server-side applications (e.g., web servers)<br />
  4. 4. Introduction to Flash IDE<br />Workspace<br />Stage<br />Timeline<br />Layers<br />Toolbar<br />Library<br />Frames<br />
  5. 5. What’s New in Flash CS3<br />Animation to ActionScript conversion<br />Standard Adobe Interface<br />Advanced Debugger<br />Rich Drawing Capabilities<br />User Interface Components<br />QuickTime Export<br />
  6. 6. Symbols and Instances<br />3 Symbols Types, MovieClip, Graphi, Button<br />Symbol == Master<br />Instance == Copy<br />Instance Name<br />
  7. 7. MovieClip Properties<br />x<br />y<br />width<br />height<br />scaleX<br />scaleY<br />rotation<br />alpha (transparency)<br />
  8. 8. Timeline Control<br />play( )<br />stop( )<br />gotoAndPlay( )<br />gotoAndStop( )<br />nextFrame( )<br />prevFrame( )<br />currentFrame<br />currentLabel<br />currentLabels<br />totalFrames<br />
  9. 9. Introduction to ActionScript 3<br />Programming language for Flash run-time<br />Based on ECMA-262 edition 4<br />New AVM2<br />True OOM<br />Performance<br />Coding Standards<br />
  10. 10. Operators<br />Arithmetic Operators: +, -, *, /, %, ++, –, +=, -=, *=, /=, %=<br />Comparison Operators: &lt;, &gt;, &lt;=, &gt;=, ==, ===, !,!=, !==, &&, ||<br />Other Operators: is, as, in, typeof, instanceof<br />Operator precedence<br />Bitwise Operators<br />
  11. 11. Conditional Statements<br />if, else, else if<br />switch, case<br />
  12. 12. Loops<br />while<br />for, for each in<br />while (compare) { statements update } for (initialize; compare; update) { statements }<br />
  13. 13. Data Types <br />Primitive:Boolean, int, null, Number, String, uint, undefined<br />Complex:Object, Array, Date, Error, Function, RegExp, XML, XMLList<br />
  14. 14. Events<br />Built-in Events<br />Custom Events<br />EventDispatcher<br />
  15. 15. Mouse Events<br />MouseEvent.MOUSE_DOWN<br />MouseEvent.MOUSE_UP<br />MouseEvent.CLICK<br />MouseEvent.DOUBLE_CLICK<br />MouseEvent.MOUSE_MOVE<br />MouseEvent.MOUSE_OVER<br />MouseEvent.MOUSE_OUT<br />MouseEvent.ROLL_OVER<br />MouseEvent.ROLL_OUT<br />MouseEvent.MOUSE_WHEEL<br />
  16. 16. Keyboard Events<br />KeyboardEvent.KEY_DOWN<br />KeyboardEvent.KEY_UP<br />Global Key Event Handling<br />
  17. 17. Animating<br />Motion Tween<br />Enterframe<br />Timer<br />Tween<br />
  18. 18. Drawing API<br />Drawing lines 
curveTo( ), lineTo( )<br />Drawing shapes
beginBitmapFill( ), beginFill( ), beginGradientFill( ),  drawCircle( ), drawEllipse( ), drawRect( ), drawRoundRect( ),
drawRoundRectComplex( ), endFill( )<br />Defining line styles 
lineGradientStyle( ), lineStyle( )<br />Moving the drawing pen 
moveTo( )<br />Removing graphics 
clear( )<br />
  19. 19. Drag & Drop, Collision <br />StartDrag<br />StopDrag<br />Bounding Box<br />hitTestToObject<br />hitTestToPoint<br />
  20. 20. Using Audio and Video <br />Video Encoder<br />Sound Class<br />

×