Flash
  Home arrow Flash arrow Page 4 - ActionScript 2.0 Overview
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
FLASH

ActionScript 2.0 Overview
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 20
    2004-08-03

    Table of Contents:
  • ActionScript 2.0 Overview
  • Features Introduced by Flash Player 7
  • Flash MX 2004 Version 2 Components
  • New Component Features in v2
  • ActionScript 1.0 and 2.0 in Flash Player 6 and 7
  • Setting a Movie’s ActionScript Version and Player Version
  • Changes to ActionScript 1.0 in Flash Player 7

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
    Iron Speed
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    ActionScript 2.0 Overview - New Component Features in v2


    (Page 4 of 7 )

    Key new v2 component features include:

    • A new listener event model for handling component events, which lets many external objects receive a single component’s events

    • CSS-based stylesheet support, making it easier to change text attributes across components

    • Focus management to support tabbing between user interface elements

    • Depth management to manage the visual stacking of components on screen

    • Richer accessibility support (i.e., better support for screen readers)

    • Richer skinning (i.e., graphic replacement) support

    • Encapsulation of component assets in a single file, allowing easier component management and sharing

    The v2 components tend to be larger than their v1 counterparts. This is especially true if using only one or two components, as the v2 architecture is optimized for applications that use at least three or four different component types. Therefore, if you need only one or two components, and you don’t need focus management or accessibility support, you’ll get faster (smaller) downloads using the v1 components.

    Beware that the default theme (“halo”) for the v2 components does not support custom colors for scrollbars and buttons. That is, the scrollTrackColor and buttonColor style properties do not work with the default v2 component theme in Flash MX 2004 and Flash MX Professional 2004. To set the color of buttons and scrollbars on v2 components, you must apply a new theme to the document. See Help -> Using Components -> About Themes -> Applying a Theme to a Document.

    Table 1-1 shows the complete set of components in Flash MX 2004 and Flash MX Professional 2004. Professional components that are not available in Flash MX 2004 will still work in that version of the software. That is, a .fla document that contains a component specific to the Professional edition will open normally and work properly in Flash MX 2004. Macromedia’s End User License Agreement for Flash MX 2004 does not explicitly prohibit the use of Professional-only components in the standard edition of the software.

    Table 1-1. The v1 and v2 components

    Component

    Flash MX

    Flash MX 2004

    Flash Pro

    Notes

    Accordion

    a

     

    v2

     

    Alert

    b, c

    v2

    Button

    v1

    v2

    v2

    CheckBox

    v1

    v2

    v2

    ComboBox

    v1

    v2

    v2

    Data Components

    v2

    Includes DataHolder, DataSet, RDBMSResolver, WebServiceConnector, XMLConnector, and XUp-dateResolver

    DataGrid

    b

    v2

    DateChooser

    c, d

    v2

    DateField

    v2

    Label

    a

    v2

    v2

    List

    v1

    v2

    v2

    Loader

    b

    v2

    v2

    Media Components

    b

    v2

    MediaController, MediaDisplay, MediaPlayback

    Menu

    d

    v2

    MenuBar

    v2

    NumericStepper

    v2

    v2

    ProgressBar

    b, c

    v2

    v2

    RadioButton

    v1

    v2

    v2

    ScrollPane

    v1

    v2

    v2

    TextArea

    v1

    v2

    v2

    TextInput

    v1

    v2

    v2

    Tree

    c

    v2

    Window

    c

    v2

    v2

    (a) Similar component available in DRK3 (http://www.macromedia.com/software/drk/productinfo/product_overview/volume3).

    (b) Similar component available in DRK1 (http://www.macromedia.com/software/drk/productinfo/product_overview/volume1).

    (c) Similar component available in Flash UI Component Set 2 at the Flash Exchange (http://www.macromedia.com/exchange/flash).

    (d) Similar component available in DRK2 (http://www.macromedia.com/software/drk/productinfo/product_overview/volume2).

    In Chapter 12, we’ll learn how to program graphical, OOP applications that use the v2 components.

    Buy the book!If you've enjoyed what you've seen here, or to get more information, click on the "Buy the book!" graphic. Pick up a copy today!

    Visit the O'Reilly Network http://www.oreillynet.com for more online content.

    More Flash Articles
    More By O'Reilly Media


     

    FLASH ARTICLES

    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications
    - ActionScript in Flex Applications
    - A Closer Look at Apollo`s File System API
    - Using the File System API
    - ActionScript 101
    - Flash Buttons
    - Advanced Flash Animation
    - Creating Your First Animated Movie with Flas...
    - Flash: Building Blocks
    - Building Preloaders
    - Fun Things to Do with Movie Clips in Flash MX
    - Referencing Movie Clips in Flash MX







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway