EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - New Security Model and Legacy SWF Files

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 clips 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 wont 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 wont 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 didnt 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.

Table of Contents

Related product manuals