New Security Model And Legacy Swf Files; Porting Existing Scripts To Flash Player 7 - MACROMEDIA FLASH MX 2004-USING ACTIONSCRIPT IN FLASH Use Manual

Using actionscript in flash
Hide thumbs Also See for FLASH MX 2004-USING ACTIONSCRIPT IN FLASH:
Table of Contents

Advertisement

The
TextField.condenseWhite
fields that are rendered in a browser.
The
TextField.mouseWheelEnabled
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
The
TextFormat.getTextExtent()
returns contains a new member.
The
XML.addRequestHeader()
as
Content-Type

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 file 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
models" on page
You might also need to implement a policy file if you are using runtime shared libraries. If either
the loading or loaded SWF file is published for Flash Player 7 and the loading and loaded files
aren't served from the exact same domain, use a policy file to permit access. For more information
on policy files, see

Porting existing scripts to Flash Player 7

As with any new release, Flash Player 7 supports more ActionScript commands than previous
versions of the player; you can use these commands to implement more robust scripts. (See
and changed language elements" on page
your existing scripts, the script might not work correctly if you publish it for Flash Player 7.
For example, if you have a script with a function named
compile correctly but might not run as expected in Flash Player 7, because
class (making it a reserved word) in ActionScript. You can fix your script by renaming the Error
function to something else, such as
"Keywords and reserved words" on page
property lets you remove extra white space from HTML text
property lets you attach a style sheet object to a text field.
method lets you add or change HTTP request headers (such
or
) sent with
SOAPAction
"About compatibility with previous Flash Player security
294.
"About allowing cross-domain data loading" on page
ErrorCondition
property lets you specify whether a text field's contents
method accepts a new parameter, and the object it
actions.
POST
12.)However, if you used any of these commands in
Error
. For a complete list of reserved words, see
32.
Porting existing scripts to Flash Player 7
290.
, the script might appear to
is now a built-in
Error
"New
13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents