14
Chapter 1: What’s New in Flash MX 2004 ActionScript
•
The
MovieClip.getNextHighestDepth()
method lets you create MovieClip instances at
runtime and be guaranteed that their objects render in front of the other objects in a parent
movie clip’s
z
-order space. The
MovieClip.getInstanceAtDepth()
method lets you access
dynamically created MovieClip instances using the depth as a search index.
•
The
MovieClip.getSWFVersion()
method lets you determine which version of Flash Player
is supported by a loaded SWF file.
•
The
MovieClip.getTextSnapshot()
method and the
TextSnapshot object
let you work with
text that is in static text fields in a movie clip.
•
The
MovieClip._lockroot
property lets you specify that a movie clip will act as
_root
for
any movie clips loaded into it, or that the meaning of
_root
in a movie clip won’t change if
that movie clip is loaded into another movie clip.
•
The
MovieClipLoader class
lets you monitor the progress of files as they are being loaded into
movie clips.
•
The
NetConnection class
and
NetStream class
let you stream local video files (FLV files).
•
The
PrintJob class
gives you (and the user) more control over printing from Flash Player.
•
The
Sound.onID3
event handler provides access to ID3 data associated with a Sound object
that contains an MP3 file.
•
The
Sound.ID3
property provides access to the metadata that is part of an MP3 file.
•
The
System class
has new objects and methods, and the
System.capabilities object
has several
new properties.
•
The
TextField.condenseWhite
property lets you remove extra white space from HTML text
fields that are rendered in a browser.
•
The
TextField.mouseWheelEnabled
property lets you specify whether a text field’s contents
should scroll when the mouse pointer is positioned over a text field and the user rolls the
mouse wheel.
•
The
TextField.StyleSheet class
lets you create a style sheet object that contains text formatting
rules such as font size, color, and other formatting styles.
•
The
TextField.styleSheet
property lets you attach a style sheet object to a text field.
•
The
TextFormat.getTextExtent()
method accepts a new parameter, and the object it
returns contains a new member.
•
The
XML.addRequestHeader()
method lets you add or change HTTP request headers (such
as
Content-Type
or
SOAPAction
) sent with
POST
actions.
New security model and legacy SWF files
Rules for how Flash Player determines whether two domains are the same have changed in Flash
Player 7. In addition, rules that determine whether and how a SWF file served from an HTTP
domain can access a SWF file or load data from an HTTPS domain have changed. In most cases,
these changes won’t affect you unless you are porting your existing SWF files to Flash Player 7.
However, if you have SWF files published for Flash Player 6 or earlier that load data from a file
stored on a server, and the calling SWF is playing in Flash Player 7, the user might see a dialog
box that didn’t appear before, asking whether to allow access. You can prevent this dialog box
from appearing by implementing a
policy file
on the site where the data is stored. For more
information on this dialog box, see
“About compatibility with previous Flash Player security
models” on page 191
.
Summary of Contents for FLASH MX 2004 - ACTIONSCRIPT
Page 1: ...ActionScript Reference Guide...
Page 8: ...8 Contents...
Page 12: ......
Page 24: ...24 Chapter 1 What s New in Flash MX 2004 ActionScript...
Page 54: ...54 Chapter 2 ActionScript Basics...
Page 80: ...80 Chapter 3 Writing and Debugging Scripts...
Page 82: ......
Page 110: ...110 Chapter 5 Creating Interaction with ActionScript...
Page 112: ......
Page 120: ...120 Chapter 6 Using the Built In Classes...
Page 176: ......
Page 192: ...192 Chapter 10 Working with External Data...
Page 202: ...202 Chapter 11 Working with External Media...
Page 204: ......
Page 782: ...782 Chapter 12 ActionScript Dictionary...
Page 793: ...Other keys 793 221 222 Key Key code...
Page 794: ...794 Appendix C Keyboard Keys and Key Code Values...
Page 798: ...798 Appendix D Writing Scripts for Earlier Versions of Flash Player...
Page 806: ...806 Appendix E Object Oriented Programming with ActionScript 1...
Page 816: ...816 Index...