SlideShare una empresa de Scribd logo
1 de 20
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) communicate with server-side applications (e.g., web servers)
Introduction to Flash IDE Workspace Stage Timeline Layers Toolbar Library Frames
What’s New in Flash CS3 Animation to ActionScript conversion Standard Adobe Interface Advanced Debugger Rich Drawing Capabilities User Interface Components QuickTime Export
Symbols and Instances 3 Symbols Types, MovieClip, Graphi, Button Symbol == Master Instance == Copy Instance Name
MovieClip Properties x y width height scaleX scaleY rotation alpha (transparency)
Timeline Control play( ) stop( ) gotoAndPlay( ) gotoAndStop( ) nextFrame( ) prevFrame( ) currentFrame currentLabel currentLabels totalFrames
Introduction to ActionScript 3 Programming language for Flash run-time Based on ECMA-262 edition 4 New AVM2 True OOM Performance Coding Standards
Operators Arithmetic Operators: +, -, *, /, %, ++, –, +=, -=, *=, /=, %= Comparison Operators: <, >, <=, >=, ==, ===, !,!=, !==, &&, || Other Operators: is, as, in, typeof, instanceof Operator precedence Bitwise Operators
Conditional Statements if, else, else if switch, case
Loops while for, for each in while (compare) { statements update } for (initialize; compare; update) { statements }
Data Types  Primitive:Boolean, int, null, Number, String, uint, undefined Complex:Object, Array, Date, Error, Function, RegExp, XML, XMLList
Events Built-in Events Custom Events EventDispatcher
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
Keyboard Events KeyboardEvent.KEY_DOWN KeyboardEvent.KEY_UP Global Key Event Handling
Animating Motion Tween Enterframe Timer Tween
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( )
Drag & Drop, Collision  StartDrag StopDrag Bounding Box hitTestToObject hitTestToPoint
Using Audio and Video  Video Encoder Sound Class

Más contenido relacionado

Similar a Intro To As3 Using Flash Cs3

Google Chrome Developer Tools
Google Chrome Developer ToolsGoogle Chrome Developer Tools
Google Chrome Developer Toolstbmallf2e
 
Exploiting Multicore CPUs Now: Scalability and Reliability for Off-the-shelf ...
Exploiting Multicore CPUs Now: Scalability and Reliability for Off-the-shelf ...Exploiting Multicore CPUs Now: Scalability and Reliability for Off-the-shelf ...
Exploiting Multicore CPUs Now: Scalability and Reliability for Off-the-shelf ...Emery Berger
 
Flex And Ria
Flex And RiaFlex And Ria
Flex And Riaravinxg
 
Flex 3 - Introduction
Flex 3 - IntroductionFlex 3 - Introduction
Flex 3 - Introductionrakhtar
 
"Building intuitive command-line interfaces in .NET", Alex Thissen
"Building intuitive command-line interfaces in .NET", Alex Thissen"Building intuitive command-line interfaces in .NET", Alex Thissen
"Building intuitive command-line interfaces in .NET", Alex ThissenFwdays
 
FrameGraph: Extensible Rendering Architecture in Frostbite
FrameGraph: Extensible Rendering Architecture in FrostbiteFrameGraph: Extensible Rendering Architecture in Frostbite
FrameGraph: Extensible Rendering Architecture in FrostbiteElectronic Arts / DICE
 
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0Peter Elst
 
WebGL visualization of a shipping terminal
WebGL visualization of a shipping terminalWebGL visualization of a shipping terminal
WebGL visualization of a shipping terminalJosh Staples
 
Lecture 02: Layered Architecture of Game Engine | GAMES104 - Modern Game Engi...
Lecture 02: Layered Architecture of Game Engine | GAMES104 - Modern Game Engi...Lecture 02: Layered Architecture of Game Engine | GAMES104 - Modern Game Engi...
Lecture 02: Layered Architecture of Game Engine | GAMES104 - Modern Game Engi...Piccolo Engine
 
Silverlight 2
Silverlight 2Silverlight 2
Silverlight 2Dave Bost
 
InduSoft SCADA Best Practices
InduSoft SCADA Best PracticesInduSoft SCADA Best Practices
InduSoft SCADA Best PracticesAVEVA
 
Tech Lunch 9 25 2008
Tech Lunch 9 25 2008Tech Lunch 9 25 2008
Tech Lunch 9 25 2008rothacr
 
Better Drupal Interaction Design with Flex
Better Drupal Interaction Design with FlexBetter Drupal Interaction Design with Flex
Better Drupal Interaction Design with FlexChris Charlton
 

Similar a Intro To As3 Using Flash Cs3 (20)

Google Chrome Developer Tools
Google Chrome Developer ToolsGoogle Chrome Developer Tools
Google Chrome Developer Tools
 
Exploiting Multicore CPUs Now: Scalability and Reliability for Off-the-shelf ...
Exploiting Multicore CPUs Now: Scalability and Reliability for Off-the-shelf ...Exploiting Multicore CPUs Now: Scalability and Reliability for Off-the-shelf ...
Exploiting Multicore CPUs Now: Scalability and Reliability for Off-the-shelf ...
 
Flex And Ria
Flex And RiaFlex And Ria
Flex And Ria
 
Flex RIA
Flex RIAFlex RIA
Flex RIA
 
My view on XPages
My view on XPagesMy view on XPages
My view on XPages
 
Flex 3 - Introduction
Flex 3 - IntroductionFlex 3 - Introduction
Flex 3 - Introduction
 
"Building intuitive command-line interfaces in .NET", Alex Thissen
"Building intuitive command-line interfaces in .NET", Alex Thissen"Building intuitive command-line interfaces in .NET", Alex Thissen
"Building intuitive command-line interfaces in .NET", Alex Thissen
 
FrameGraph: Extensible Rendering Architecture in Frostbite
FrameGraph: Extensible Rendering Architecture in FrostbiteFrameGraph: Extensible Rendering Architecture in Frostbite
FrameGraph: Extensible Rendering Architecture in Frostbite
 
Another Test
Another TestAnother Test
Another Test
 
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
 
Introduction to Apache Beam
Introduction to Apache BeamIntroduction to Apache Beam
Introduction to Apache Beam
 
WebGL visualization of a shipping terminal
WebGL visualization of a shipping terminalWebGL visualization of a shipping terminal
WebGL visualization of a shipping terminal
 
Adobe Flex Resources 6439
Adobe Flex Resources 6439Adobe Flex Resources 6439
Adobe Flex Resources 6439
 
Adobe Flex Resources
Adobe Flex ResourcesAdobe Flex Resources
Adobe Flex Resources
 
Lecture 02: Layered Architecture of Game Engine | GAMES104 - Modern Game Engi...
Lecture 02: Layered Architecture of Game Engine | GAMES104 - Modern Game Engi...Lecture 02: Layered Architecture of Game Engine | GAMES104 - Modern Game Engi...
Lecture 02: Layered Architecture of Game Engine | GAMES104 - Modern Game Engi...
 
Silverlight 2
Silverlight 2Silverlight 2
Silverlight 2
 
InduSoft SCADA Best Practices
InduSoft SCADA Best PracticesInduSoft SCADA Best Practices
InduSoft SCADA Best Practices
 
Tech Lunch 9 25 2008
Tech Lunch 9 25 2008Tech Lunch 9 25 2008
Tech Lunch 9 25 2008
 
Silverlight Training
Silverlight TrainingSilverlight Training
Silverlight Training
 
Better Drupal Interaction Design with Flex
Better Drupal Interaction Design with FlexBetter Drupal Interaction Design with Flex
Better Drupal Interaction Design with Flex
 

Intro To As3 Using Flash Cs3

  • 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