17
CHAPTER 1
Introduction
The documents on this site assume you are familiar with JavaScript or ActionScript syntax and
with basic programming concepts such as functions, parameters, and data types. They also
assume that you understand the concept of working with objects and properties. For a reference
on JavaScript, see the Netscape JavaScript documentation.
Netscape DevEdge Online has a JavaScript Developer Central site (
http://
developer.netscape.com/tech/javascript/index.html
) that contains documentation and articles
useful for understanding JavaScript. The most valuable resource is the Core JavaScript Guide.
This chapter contains the following sections:
Overview of the Macromedia Flash JavaScript API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
The Flash Document Object Model. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
The PolyStar example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Overview of the Macromedia Flash JavaScript API
The ActionScript language lets you write scripts to perform actions in the Macromedia Flash
Player environment (that is, while a SWF file is playing). The Flash JavaScript API (JSAPI) lets
you write scripts to perform several actions in the Flash authoring environment (that is, while a
user has the Flash program open). You can write scripts that act like commands and scripts that
add tools to the Tools panel. These scripts can be used to help automate the authoring process.
The Flash JSAPI is designed to resemble the Macromedia Dreamweaver and Macromedia
Fireworks JavaScript API (which were designed based on the Netscape JavaScript API). The Flash
JSAPI is based on a Document Object Model (DOM), which allows Flash documents to be
accessed using JavaScript objects. The Flash JSAPI includes all elements of the Netscape
JavaScript API, plus the Flash DOM. These added objects and their methods and properties are
described in this document. You can use any of the elements of the native JavaScript language in a
Flash script, but only elements that make sense in the context of a Flash document will have
an effect.
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...