Advantage and Disadvantags of ActionScript 3

Hi professionals of ActionScript 3!
I just started flash animation and learning ActionScript. But
I found one thing that there existing ActionScript 1, 2, 3 versions
and ActionScript 2 components is using only ActionScript 2 code.
Please tell me advantages and disadvantages of both ActionScript.
Please advise which is powerful and has more info and sources. What
kind of links between then existing.
Thanks in advance!
Said Babanli

Said,
> Please tell me advantages and disadvantages of both
> [versions of] ActionScript. Please advise which is
> powerful and has more info and sources.
ActionScript 1.0 and 2.0 both run on the same virtual
machine (AVM1)
inside Flash Player. As of Flash Player 9, the player runtime
features two
virtual machines (AVM1 and AVM2), the second of which runs
ActionScript 3.0.
Right off the bat, this tells you that Flash Player 9 or
higher is required
if you want to program with ActionScript 3.0. In one sense,
that's a
potential "disadvantage" of AS3: if your users have Flash
Player 8 or lower
installed, you simply can't use that version of the language.
Instead,
you'll have to use AS2 (as far back as Flash Player 6) or AS1
(as far back
as Flash Player 5), or slash-notation proto-ActionScript if
you need to go
even further back than that. Ultimately, then, the version of
ActionScript
you use depends on the version of Flash Player you expect
your users to have
installed.
AS2 is the first version of ActionScript to officially
support custom
classes (external text files structured in a particular way,
using folders
for classpaths and the "class" keyword). For more information
on
classpaths -- written for AS2, but basically applies to AS3
-- see this URL:
http://www.quip.net/blog/2006/flash/understanding-classpaths
For many people (myself included), custom classes provide a
powerful way
to organize code into reusable objects -- just like the given
objects in
ActionScript's native API. Be aware, however, that custom
classes are *not
a required workflow* in AS2 or AS3. If you prefer, you may
place your AS2
or AS3 code into timeline keyframes, just like with AS1.
Contrarily, even
though true classes are not officially supported by AS1, you
can mimic many
of the benefits of classes by following the instructions here
(an incomplete
resource, but very useful):
http://www.debreuil.com/docs/
It would take pages and pages of notes to give you a
thorough list of
the benefits (and disadvantages!) of every version of
ActionScript. Even
then, it would be difficult to demonstrate that such a list
was complete, so
to keep things simple: as a general rule, each new version of
ActionScript
is presumed to be better than its predecessor. AS1 was more
powerful than
Flash 4-era ActionScript because it provided a considerably
larger API. AS1
also made it easier to target objects with dot notation than
with slash
notation and cumbersome getProperty() and setProperty()
functions. AS2 was
more powerful than AS1 because it provided native support for
classes. It
introduced variable typing, which helped with code completion
and
compile-time error checking. (AS2 also coincided with an even
larger API,
but that's a parallel benefit due to increased functionality
in subsequent
versions of Flash Player.) AS3 is more powerful than AS2
because the syntax
of custom classes has become more strict. I personally find
that stricter
syntax helps a programmer avoid "lazy" or "sloppy" practices,
encouraging
the programmer to code with purpose.
For more thoughts along these lines, here's a free excerpt
from a book I
recently co-authored for O'Reilly (bear in mind, these are
largely
subjective opinions, but they work for me):
http://www.communitymx.com/abstract.cfm?cid=16D76
I'll probably start repeating myself soon, but to sum up:
AS2 has
advantages over previous versions because it provides
numerous options and
improvement in ease of use. AS3 improves even further by
"cleaning up" the
language by making it more strict and by providing a stronger
internal
consistency.
Here are a few quick examples.
In AS2, to create an instance of the Sound class (that is,
an object you
can use for programming audio), you simply use the "new"
keyword:
// AS2
var mySound:Sound = new Sound();
Most classes can be instantiated in this way, but in AS2,
there are
notable exceptions, including movie clips and text fields.
// AS2 -- this does NOT work!
var myMC:MovieClip = new MovieClip();
var myTF:TextField = new TextField();
This can be confusing to a newcomer, because it seems so
arbitrary.
(Someone new might well think, "Why can't instances be made
the same way
across the board?") In AS3, instantiation is more consistent:
// AS3
var mySound:Sound = new Sound();
var myMC:MovieClip = new MovieClip();
var myTF:TextField = new TextField();
This is also true for event handling. In AS2, there are four
or five
ways to do it: the on() and onClipEvent() functions, their
dot notation
equivalents, addListener(), and addEventListener(). They're
all valid in
AS2, but not all interchangeable. Some work for components,
some for other
sorts of objects. It takes effort to memorize which objects
work with which
approach. In AS3, outside of a very small number of
exceptions, most event
handling is done with a single, consistent approach:
addEventListener().
For a newcomer, this is easier to learn because once the
technique is
understood, it works in nearly every scenario.
As far as performance is concerned, AS3 trumps AS2
significantly. AS3
performs better and faster than all previous versions of
ActionScript -- but
you'll only notice this with complex applications, especially
those
involving a high volume of number crunching.
Here are a few more links that may prove helpful to you:
ActionScript 3.0 Overview
http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview.html
Tips for Learning ActionScript 3.0
http://www.adobe.com/devnet/actionscript/articles/actionscript_tips.html
ActionScript 3.0: Is it Hard or Not?
http://www.insideria.com/2008/01/actionscript-30-is-it-hard-or.html
You also asked which version of the language has more "info
and
resources." By that, I assume you mean online resources, such
as blogs,
tutorials, and so on. That question is hard to answer, but my
*guess* is
that there are still more resources online about AS2 than AS3
... but AS3
will probably catch up soon.
David Stiller
Co-author, Foundation Flash CS4 for Designers
http://tinyurl.com/5j55cv
"Luck is the residue of good design."

Similar Messages

  • Advantage and disadvantage of xml publisher, report builder and discoverer

    Hi,
    anyone can explain advantage and disadvantage of xml publisher, report builder and discoverer?
    thanks in advance!

    The best way i found was to put a equals and then double quotes... this only works for excel however it will allow you to cut and paste (ie to use the value to search in Oracle) and also to do vlookups.
    In a bit more detail:
    - I used word to generate my default table
    - this created a field INVOICE_NUM
    - in the cell in the table i put = " before the INVOICE_NUM field and then put the closing " afterwards.
    The theory is that excel will concatenate the values together... because it has quotes around it, it will treat it as a string rather than simply a value.
    For any other formats this will not work.
    I'm guessing most people have moved on and resolved this some other way, but just thought I'd share the wealth!

  • Advantages and Disadvantages of Client Object Model in sharepoint 2013

    I need Advantages and Disadvantages of Client Object Model in sharepoint 2013
    like below in javascript. Users will have read/edit and approve access to the list.
      var clientContext = new SP.ClientContext.get_current();
           var oList = clientContext.get_web().get_lists().getByTitle('Workflow Tasks');
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Thanks 
    AlexanderShelopukho for
    right answer!
    Alex-
    I do not need comparison- 
    I need Advantages and Disadvantages of Client Object Model in sharepoint 2013
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

  • Advantages and Disadvantages of Dual booting Windows on PXI Device

     
    Hello,
    In solving my previous problem of running a DLL in RTOS I've stumbled upon another solution. But i wanted to know the pros and cons of this before i make the leap.
    I want to install windows on the PXI device so that the NHR DLL files are run inherently on the windows kernel and i have access over my DAQ devices without placing them in the remote target.
    What are the advantages and disadvantages of installing a windows only on the DAQ device and running all my operation from it. Do i loose my real time features? I dont know, I'm really new to LabView and may sound really dumb. Please excuse my lack of knowledge.
    With Regards,
    Khalid.

     
    Hello Bob,
    Thank you for your insightful answer. I also thought this might happen, loosing all the RT features.
    I have another question for you. If i use a RT variant of windows like "Windows Embedded 8", will this make any difference? Can i regain my RT features by it or i have to go with the LabView RTOS.
    I'm pushing towards a windows system because i have to run this DLL file from NHR which is not supported by the LabView RTOS.
    Moreover, I could just install just windows onto the PXI controller. I'm not being able to make it dual boot. Can you guide me towards proper guideline to do so? I looked at the knowledge base file about dual booting, but the instructions dont exactly match with my available options in BIOS setup.
    Any suggestions from anyone is much appreciated.
    With Regards,
    Khalid.
     

  • Singl/Multiple Server Oracle 10g DB and AS- Advantages and DisAdvantages

    Hi Friends,
    I am using Application1 using Oracle 10g Application Server and Oracle 10g database.
    Now i planned to use Application2 using Oracle 10g AS and Oracle 10g DB
    I need to know what will be the Advantages and Disadvantages if i have the schema for Application2 in the existing Oracle 10g DB / having it in another Oracle 10g DB Server
    sameway what will be the advantages and disadvantages if i have the Application2 regsiterd in existing Oracle 10g AS(Multiple OC4J Instance) / having it in another Oracle 10g AS Server.
    Regards

    To start the list, for me some of the advantages are:
    Same DB:
    - less overhead and wasted CPU Cycles (therefore potentially lower license fees)
    - easier maintenance (backup, recovery)
    - easier tuning (fewer conflicting external environments asking for same resources)
    - Oracle is designed for this, allows use of Resource Manager
    - technically RAC is a clustered 'same DB'
    Same AS:
    - less overhead and wasted CPU Cycles (therefore potentially lower license fees)
    - easier maintenance (backup, recovery)
    - easier tuning (fewer conflicting external environments asking for same resources)
    - Oracle is designed for this, use AS clustering
    Different DB:
    - separate maintenance (patch, upgrade) cycles for different SLA
    - easier tuning (isolate tuning to one app)
    - easier security (most developers have no idea about Oracle security and make merge impossible)
    Different AS:
    - separate maintenance (patch, upgrade) cycles for different SLA
    - easier tuning (isolate tuning to one app)
    - easier security (most developers have no idea about security)

  • Advantage and Disadvantage of user login ID

    Dear SAP expert,
    I need some advice whether to use "employee no." or "name" to create SAP login.
    What is the advantage and disadvantage of using employee no. ?
    Thanks.
    Rgds,

    Hi Nitin,
    A view can be thought of as either a virtual table or a stored query. The data accessible through a view is not stored in the database as a distinct object. What is stored in the database is a SELECT statement. The result set of the SELECT statement forms
    the virtual table returned by the view. A user can use this virtual table by referencing the view name in Transact-SQL statements the same way a table is referenced.
    For more information about the advantages and disadvantages of views in SQL Server, please refer to the following two articles:
    http://www.c-sharpcorner.com/Blogs/10575/advantages-and-disadvantages-of-views-in-sql-server.aspx
    http://www.toadworld.com/platforms/sql-server/w/wiki/10274.views-advantages-and-disadvantages.aspx
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Advantages and Disadvantages of BEx Analyzer

    Dear All,
               Please specify the ADVANTAGES and DISADVANTAGES of using BEx Analyzer for reporting over a browser.Does the analyzer provide better performance?generate exhaustive reports?and found better by users since it is excel based?
    Yours truly,
    Ratish
    [email protected]
    +919820827647

    Hello Ratish,
      The advantages and disadvantages are primarily based on the light weight client and heavy client.
    Excel -
    1. It is heavy weight and needs a client installation
    2. Analysis is easier , as excel functionalities can be used over BI data
    3. People who know excel will like this
    Web-
      1. It is light weight and no installation needed at the client as browser will be available
      2. Can not analyze the data from the report ( you need copy to excel)
    In simple analysts and expert users like excel.
    Users who just view the report and no more analysis will be happy with web.
    Regards,
    Sheik Bilal

  • ABAP Query Tool - Advantages and Disadvantages

    Hi guys,
    wich are the main advantages and disadvantages of using ABAP Query Tool?
    Regards,

    Moderator message: Previous answers were rejected because they were copy and pasted from other people's work
    Hi Suresh,
    Thanks for your quick answer.
    Beyond  these advantages and disadvantages are there more that could be considered?
    Regards,
    Edited by: Matt on Mar 23, 2009 10:06 AM

  • What are advantage and disadvantage for Physical Standy and Logical Standby

    HI,
    What are advantage and disadvantage for Physical Standy and Logical Standby configuration?
    Thanks
    Ken

    Logical standby database
    The key advantage for logical standby databases is that they're opened read/write, even while they're in
    applied mode. That is, they can be used to generate reports and the like. It is indeed a fully functional
    database. Also, additional indexes, materialized views and so on can be created.
    However (this being a disadvantage) not all datatypes are supported.
    Oracle (or more exactly the log apply services) uses the primary database's redo log, transforms them into
    SQL statements and replays them on the logical standby database.
    Physical standby database
    A physical standby database is a byte for byte exact copy of the primary database. This also means that
    rowids stay the same in a physical standby database environment.
    Oracle (or more exactly the log apply services) uses the primary database's redo log to recover the
    physical database.
    A physical standby database might be opened read only; however, the received logs are in this case not
    applied. When the logs are applied, the database is not accessible (it is then in a managed recovery state).
    Regards,

  • Advantages and disadvantages of having 2 controlling areas.

    Dear All.
    My client have 2 company codes and will use same fiscal year variant and chart of account. so we recommend for one contrilling area. But my client wants some document or wants to know the advantages and disadvantages of having 2 controlling areas.
    I will really do appreciate if anybody hepls me in this regards.

    there is no general correct answer as every case is the different.
    However, the majority of solutions that have a single CoA will also have a single Controlling Area.
    The Controlling Area is the highest reporting level in Controlling, PCA, CCA etc.
    Normally if you have two CoA then you will have two Controlling Areas.
    A simple point to make to them is that a Controlling Area can only have 1 CoA, therefore you cant have 2.
    Are your Company Codes in the same Country?

  • Advantages and Disadvantages of OIM11gR2 over 11gR1

    Hello experts,
    I would like to list out the advantages and disadvantages of OIM 11g R2 over R1. Can you guys please help me in completing the list??
    Advantages:
    1. Shopping cart experience / request catalog model / interactive user interface
    2. UI customisations made easy
    3. Secure access to cloud, mobile and social networks
    I am not sure of the disadvantages but heard that its a lenghty process (risky) to upgrade from R1 to R2.
    Can any of you have ideas on the changes to workflows, provisioning and reconcilation and other procesess.
    Thanks,
    Bob

    http://rajivdewan.blogspot.com/2012/08/oracle-identity-manager-11g-r2-oim-11g.html
    anyone come across any cons with R2Some known and unknown issues are there but those you'll find with each and every product and version.
    http://docs.oracle.com/cd/E27559_01/relnotes.1112/e35820/id_mgr.htm#CHDDGDCC

  • Advantages and Disadvantages of  Applet over JSP/servlet

    Can some one please let me know what are the major advantages and disadvantages of using Applets over JSP/Servlet technology?

    Well, a servlet / jsp is generated on the server, an applet on the client side. That's the most important difference.
    Appelt's usually are for little applications like games and stuff, you can run in a browser.
    Servlets are for dynamic pages, for example database-viewing and stuf...

  • Advantages and disadvantages of Internet Sales R/3 Edition over ITS

    Hello,
          I want to know what are the Advantages and disadvantages of Internet Sales R/3 Edition over ITS? If we shift from ITS to  Internet Sales R/3 Edition, what would be added advantages?
    Note: Here ITS is used only for Sales Transactions.
    Thanks & Regards,
    Pratik Gandhi.

    Hi
      E-Service&E-Marketing is not part of the R/3 Internet sales edition.
    Cheers

  • What are the advantages and disadvantages to cookies?

    Ok, so I am required to interview some expert for a Final in college. I choose to do my final on cookies throughout the different browsers. The downside is that it is nearly impossible to get a one-on-one interview from an expert in this field. This is my next option. So here are my questions, and I greatly appreciate the help.
    1. What are the advantages and disadvantages of cookies?
    2. Where are the cookies stored, and is it possible for someone to access that information?
    3. You hear horror stories of hackers accessing the different cookies saved on a person's computer, and from there gradually piecing together enough information about that person, to hack into nearly every account they have. How probable is this? What safeguards can a person take against this happening?
    Once again, thank you for any help received.

    I attended uni back in the 70's, and as I recall we had to do some actual research for our term papers - like from books in the library, and needed to "document" our research in a footnote for each page.
    I guess times have changed a bit since then I guess - anecdotal evidence is permissible now?
    Here's a search of articles in the Mozilla Developer Network documentation.
    https://developer.mozilla.org/en-US/docs/tag/Cookies

  • What are the Advantages and Disadvantages of OC4J ?

    Hi,
    I want to know what are the advantages and disadvantages of OC4J server .
    Can anyone tell me please..
    Regards,
    Ajay

    simple, reliable, extremely fast and low cost of development: re-start takes 10 - 15 seconds. Its disadvantage may be less flexibility in configuration then heavy-weight Weblogic

Maybe you are looking for

  • Open new document in the same window as before..how to?

    Dear all, I need to open a image document in a new browser window each time the user clicks on a particular button. The built-in I'm using is web.show_document('URL', '_blank'). But this opens a new browser window each time the button is clicked. The

  • Site doesn't work - how to validate javascript for mac?

    hey folks, i spent ages for making my new site cross-browser-compatible, only to see safari not working at all. http://www.janfrisch.de/ since the html validates as 4.01 transitional i presume the problem has to be discovered in the javascript sectio

  • Flashback_transaction_query.undo_sql 10g

    I have hard time getting over the 4000 limit on UNDO_SQL column in FLASHBACK_TRANSACTION_QUERY view on 10.2.0.3/x86 linux. The problem is in sqls longer than 4000 characters, I assume they should be split as in v$sqltext but they are not. Supplementa

  • Copy Group or Layer to *Below* the Selected layer

    Hey everyone, So I have a bit of a workflow problem. It's not a huge deal but it's one of those things that really adds up over time. Whenever I'm designing mock ups for a page I usually work from the top down. In cases of let's say laying out items

  • Retry Mechanism in BPEL

    Hi, Following is our requirement: Suppose BPEL process has 10steps , while exectuing step 6 it got exception and we stored in JMS Q. Then after sometime we are re-starting this BPEL process , then it shud start execution from step:6. Is this possible