SlideShare a Scribd company logo
AS2 vs AS3



                                                                                         Yash Mody
                                                                                         CTO | Tekno Point
                                                                                         yash@teknopoint.us

                                                                                                              ®




                                                                                     1
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Overview




                                           ActionScript 3.0 Overview
                                           Top Misperceptions
                                           Top Bene ts
                                           Migration Examples


                                                                                         ®




                                                                                     2
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Top 5 Misperceptions
            about ActionScript 3.0

                                                                                         ®




                                                                                     3
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Misperception #1
           ActionScript 3.0 is difficult to learn




                                                                                         ®




                                                                                     4
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Misperception #2
ActionScript 3.0 is only for Class based
     object-oriented programming



                                                                                         ®




                                                                                     5
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Misperception #3
       Using ActionScript 3.0 reduces the
      Flash Player base that you can target



                                                                                         ®




                                                                                     6
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Misperception #4
       You can’t write code on the timeline
              with ActionScript 3.0



                                                                                         ®




                                                                                     7
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Misperception #5
 ActionScript 2.0 development is faster
  that ActionScript 3.0 development



                                                                                         ®




                                                                                     8
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Top 5 Benefits of
           ActionScript 3.0
                                                                                         ®




                                                                                     9
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Benefit #1
                                                                       Performance




                                                                                          ®




                                                                                     10
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Benefit #2
          Ability to leverage new Flash Player
                  APIs and technologies



                                                                                          ®




                                                                                     11
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Benefit #3
Leverage Community Libraries and APIs




                                                                                          ®




                                                                                     12
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Benefit #4
                   Easier and faster to debug code




                                                                                          ®




                                                                                     13
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Benefit #5
                      Future proofed, multi-platform
                              development



                                                                                          ®




                                                                                     14
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
ActionScript 3.0
                                        Gotchas
                   • Use of underscore
                   • Void / void
                   • Alpha value range
                   • Event Model
                   • Code and events on Symbols
                                                                                          ®




                                                                                     15
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
underscores


    ActionScript 2.0                                                                      ActionScript 3.0

                                                                                                             ®




                                                                                     16
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
void


    ActionScript 2.0                                                                       ActionScript 3.0

                                                                                                              ®




                                                                                      17
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
alpha

                                      0-100                                                   0.0-1.0


    ActionScript 2.0                                                                      ActionScript 3.0

                                                                                                             ®




                                                                                     18
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Events




                                                                                          ®




                                                                                     19
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
no code on symbols

                                                                                          ®




                                                                                     20
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Migration Examples

                                                                                          ®




                                                                                     21
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Create a Variable
 Create a Function
 Create an if statement
                                                                                          ®




                                                                                     22
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
23
Loop Through an
   Array

                                                                                          ®




                                                                                     24
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
_root

                                                                                          ®




                                                                                     25
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Handling Button Clicks


                                                                                          ®




                                                                                     26
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Opening a URL

                                                                                          ®




                                                                                     27
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Dynamically Attach a
           MovieClip

                                                                                          ®




                                                                                     28
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Load an Image

                                                                                          ®




                                                                                     29
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Play a Sound

                                                                                          ®




                                                                                     30
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
Load and Parse XML…
the E4X way
                                                                                          ®




                                                                                     31
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
 Some more stuff
   Runtime Exceptions - increase in conditions
   Sealed Classes - xed set of values - better
    maintainability
   Method closures - The
    mx.utils.Delegate not required
   Regular expressions - native
    support for better string manipulation



                         32
Get onto AS3 today


                                                                                          ®




                                                                                     33
Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.

More Related Content

PDF
Ria2010 workshop dev mobile
PDF
JAX2010 Flex Java technical session: interactive dashboard
PDF
Ria2010 - keynote - Evolution des RIA d'Entreprise
PDF
Oop2012 mobile workshops
PDF
Best practices for Flash applications on mobile devices
PDF
Jax2001 adobe keynote
PDF
Flex and the city in London - Keynote
PDF
Xplatform mobile development
Ria2010 workshop dev mobile
JAX2010 Flex Java technical session: interactive dashboard
Ria2010 - keynote - Evolution des RIA d'Entreprise
Oop2012 mobile workshops
Best practices for Flash applications on mobile devices
Jax2001 adobe keynote
Flex and the city in London - Keynote
Xplatform mobile development

What's hot (19)

PDF
Process in the Age of Digital Innovation
PDF
Fatc - Productivity by Design
PDF
Adobe flash platform java
PDF
Flex mobile for JUG
PDF
Adobe Max 2008 Cross Channel Campaigns
PDF
Jax2010 adobe lcds
PDF
Adobe flex at jax london 2011
PDF
Over the air 2.5 - Adobe AIR for Android
PDF
Montpellier - Flex UG
PDF
Back From MAX in London for CQ5 users
PDF
Flash camp portugal - Let's talk about Flex baby
PDF
Quality Best Practices & Toolkit for Enterprise Flex
PDF
Flex presentation for Paris Android User group PAUG
PDF
Adobe et la stratégie multi-écrans
PDF
Oop2012 keynote Design Driven Development
PDF
Enterprise Flex applications on tablet devices
PDF
Flex 4.5 and mobile development
PDF
X plat dev - part ii publish
PDF
One backend multiple Screens
Process in the Age of Digital Innovation
Fatc - Productivity by Design
Adobe flash platform java
Flex mobile for JUG
Adobe Max 2008 Cross Channel Campaigns
Jax2010 adobe lcds
Adobe flex at jax london 2011
Over the air 2.5 - Adobe AIR for Android
Montpellier - Flex UG
Back From MAX in London for CQ5 users
Flash camp portugal - Let's talk about Flex baby
Quality Best Practices & Toolkit for Enterprise Flex
Flex presentation for Paris Android User group PAUG
Adobe et la stratégie multi-écrans
Oop2012 keynote Design Driven Development
Enterprise Flex applications on tablet devices
Flex 4.5 and mobile development
X plat dev - part ii publish
One backend multiple Screens
Ad

Viewers also liked (15)

PDF
Flash as3 programming
PDF
Adobe action script 3.0 programming
PDF
Object-Oriented ActionScript 3.0
PDF
Less Verbose ActionScript 3.0 - Write less and do more!
PPTX
Drag and drop- ActionScript 3.0
PPT
Actionscript 3 - Session 5 The Display Api And The Display List
PDF
Intro To Starling Framework for ActionScript 3.0
PPT
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
PPT
Actionscript 3 - Session 2 Getting Started Flash IDE
PPT
Actionscript 3 - Session 6 Interactivity
PPT
Actionscript 3 - Session 3 Action Script And Flash
PPT
ActionScript 3.0 Fundamentals
PPT
Actionscript 3 - Session 1 Introduction To As 3
PPT
Actionscript 3 - Session 7 Other Note
PDF
Creative Programming in ActionScript 3.0
Flash as3 programming
Adobe action script 3.0 programming
Object-Oriented ActionScript 3.0
Less Verbose ActionScript 3.0 - Write less and do more!
Drag and drop- ActionScript 3.0
Actionscript 3 - Session 5 The Display Api And The Display List
Intro To Starling Framework for ActionScript 3.0
SkillsMatter - In-the-Brain session - What's new in ActionScript 3.0
Actionscript 3 - Session 2 Getting Started Flash IDE
Actionscript 3 - Session 6 Interactivity
Actionscript 3 - Session 3 Action Script And Flash
ActionScript 3.0 Fundamentals
Actionscript 3 - Session 1 Introduction To As 3
Actionscript 3 - Session 7 Other Note
Creative Programming in ActionScript 3.0
Ad

Similar to As2 vs as3 (20)

PDF
Innovation and the Adobe Flash Platform
PDF
David Coletta Architecting A Shared Codebase For Browser And Desktop Final
PDF
HBase and Hadoop at Adobe
PDF
Mobile revolution
PDF
Creating Mobile Content Using Flash
PDF
Air for android with flex
PDF
Flex, Adobe AIR, and PHP: the beginning of a beautiful friendship
PDF
Flash performance tuning (EN)
PDF
How PM Helped Build a Billion Dollar Business
PDF
Creating Flash Content for Mobile Devices
PDF
Bynet2.3 Adobe Flex builder 4
PDF
Enrique Duvos: Adobe RIA Platform
PDF
Xebia adobe flash mobile applications
PDF
Breizh camp adobe flex et les mobiles
PDF
Develop mobile applications with Flex
PDF
Tom Krcha: Building Games with Adobe Technologies
PPTX
Adobe Summit EMEA 2012 : 16706 Optimise Mobile Experience
PDF
董龙飞 - 新一代企业应用
PDF
Adobe edge animate for flash designer
PDF
Adobe flash platform java
Innovation and the Adobe Flash Platform
David Coletta Architecting A Shared Codebase For Browser And Desktop Final
HBase and Hadoop at Adobe
Mobile revolution
Creating Mobile Content Using Flash
Air for android with flex
Flex, Adobe AIR, and PHP: the beginning of a beautiful friendship
Flash performance tuning (EN)
How PM Helped Build a Billion Dollar Business
Creating Flash Content for Mobile Devices
Bynet2.3 Adobe Flex builder 4
Enrique Duvos: Adobe RIA Platform
Xebia adobe flash mobile applications
Breizh camp adobe flex et les mobiles
Develop mobile applications with Flex
Tom Krcha: Building Games with Adobe Technologies
Adobe Summit EMEA 2012 : 16706 Optimise Mobile Experience
董龙飞 - 新一代企业应用
Adobe edge animate for flash designer
Adobe flash platform java

More from Yash Mody (11)

PPTX
Dr Seema Rao - Woman Commando Trainer
PDF
Adobe AEM for Business Heads
PDF
Sightly - AEM6 UI Development using JS and JAVA
PDF
Introducing Apache Jackrabbit OAK
PDF
Introducing Mongo DB and setting up Adobe AEM6 with mongo
PDF
Apache SOLR in AEM 6
PDF
Adobe AEM CQ5 - Developer Introduction
PPTX
Catch 22: FLex APps
PDF
How LCDS works
PDF
Flex 3 to Flex 4
PDF
Flex and ColdFusion
Dr Seema Rao - Woman Commando Trainer
Adobe AEM for Business Heads
Sightly - AEM6 UI Development using JS and JAVA
Introducing Apache Jackrabbit OAK
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Apache SOLR in AEM 6
Adobe AEM CQ5 - Developer Introduction
Catch 22: FLex APps
How LCDS works
Flex 3 to Flex 4
Flex and ColdFusion

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Electronic commerce courselecture one. Pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Advanced IT Governance
PDF
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
Cloud computing and distributed systems.
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25 Week I
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
20250228 LYD VKU AI Blended-Learning.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Big Data Technologies - Introduction.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Chapter 3 Spatial Domain Image Processing.pdf
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
GamePlan Trading System Review: Professional Trader's Honest Take
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Advanced IT Governance
Spectral efficient network and resource selection model in 5G networks

As2 vs as3

  • 1. AS2 vs AS3 Yash Mody CTO | Tekno Point yash@teknopoint.us ® 1 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 2. Overview ActionScript 3.0 Overview Top Misperceptions Top Bene ts Migration Examples ® 2 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 3. Top 5 Misperceptions about ActionScript 3.0 ® 3 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 4. Misperception #1 ActionScript 3.0 is difficult to learn ® 4 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 5. Misperception #2 ActionScript 3.0 is only for Class based object-oriented programming ® 5 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 6. Misperception #3 Using ActionScript 3.0 reduces the Flash Player base that you can target ® 6 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 7. Misperception #4 You can’t write code on the timeline with ActionScript 3.0 ® 7 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 8. Misperception #5 ActionScript 2.0 development is faster that ActionScript 3.0 development ® 8 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 9. Top 5 Benefits of ActionScript 3.0 ® 9 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 10. Benefit #1 Performance ® 10 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 11. Benefit #2 Ability to leverage new Flash Player APIs and technologies ® 11 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 12. Benefit #3 Leverage Community Libraries and APIs ® 12 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 13. Benefit #4 Easier and faster to debug code ® 13 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 14. Benefit #5 Future proofed, multi-platform development ® 14 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 15. ActionScript 3.0 Gotchas • Use of underscore • Void / void • Alpha value range • Event Model • Code and events on Symbols ® 15 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 16. underscores ActionScript 2.0 ActionScript 3.0 ® 16 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 17. void ActionScript 2.0 ActionScript 3.0 ® 17 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 18. alpha 0-100 0.0-1.0 ActionScript 2.0 ActionScript 3.0 ® 18 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 19. Events ® 19 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 20. no code on symbols ® 20 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 21. Migration Examples ® 21 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 22. Create a Variable Create a Function Create an if statement ® 22 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 23. 23
  • 24. Loop Through an Array ® 24 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 25. _root ® 25 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 26. Handling Button Clicks ® 26 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 27. Opening a URL ® 27 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 28. Dynamically Attach a MovieClip ® 28 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 29. Load an Image ® 29 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 30. Play a Sound ® 30 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 31. Load and Parse XML… the E4X way ® 31 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.
  • 32.  Some more stuff  Runtime Exceptions - increase in conditions  Sealed Classes - xed set of values - better maintainability  Method closures - The mx.utils.Delegate not required  Regular expressions - native support for better string manipulation 32
  • 33. Get onto AS3 today ® 33 Copyright 2008 Adobe Systems Incorporated. All rights reserved. Adobe Con dential.