
43
CHAPTER 3
Using ActionScript
Macromedia Flex developers can use ActionScript to extend the functionality of their Flex
applications. ActionScript provides flow control and object manipulation features that are not
available in strict MXML. This chapter introduces ActionScript and explains how to use
ActionScript in an MXML application.
For more information on ActionScript, see
Flex ActionScript Language Reference
.
Contents
About ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Using ActionScript in Flex applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Creating ActionScript components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Techniques for separating ActionScript from MXML. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
About ActionScript
ActionScript is the programming language for Macromedia Flash Player. ActionScript includes
built-in objects and functions, and lets you create your own objects and functions.
Note:
The ActionScript programming language in Flash MX 2004 and Flex follows the ECMA 4
standard proposed by the Mozilla project.
ActionScript is similar to the core JavaScript programming language. You don’t need to know
JavaScript to use ActionScript; however, if you know JavaScript, ActionScript will appear familiar
to you. The following are some of the many resources available that provide more information
about general programming concepts and the JavaScript language:
•
The European Computers Manufacturers Association (ECMA) document ECMA-262 is
derived from JavaScript and serves as the international standard for the JavaScript language.
•
ActionScript is based on the ECMA-262 specification, which is available from
www.ecma-
international.org
. ECMA-262 is also known as ECMAScript. ActionScript is primarily based
on Edition 3 of this standard, which is also referred to commonly as ECMA 3 (shorthand for
ECMA-262 Edition 3).
Summary of Contents for FLEX-GETTING STARTED WITH FLEX
Page 1: ...Getting Started with Flex...
Page 4: ...4 Contents...
Page 22: ...22 Chapter 1 Introducing Flex...