Porting Existing Scripts To Flash Player 7 - MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

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 Error, the script might appear to compile
correctly but might not run as expected in Flash Player 7, because Error is now a built-in class
(and thus a reserved word) in ActionScript. You can fix your script by renaming the Error
function to something else, such as ErrorCondition.
Also, Flash Player 7 implements a number of changes that affect how one SWF file can access
another SWF file, how external data can be loaded, and how local settings and data (such as
privacy settings and locally persistent shared objects) can be accessed. Finally, the behavior of
some existing features has changed.
If you have existing scripts written for Flash Player 6 or earlier that you want to publish for Flash
Player 7, you might need to modify the scripts so they conform with the implementation of Flash
Player 7 and work as designed. These modifications are discussed in this section.
ECMA-262 Edition 4 compliance
Several changes have been implemented in Flash Player 7 to conform more closely to the
ECMA-262 Edition 4 proposal (see www.mozilla.org/js/language/es4/index.html). In addition to
the class-based programming techniques available in ActionScript 2.0 (see
programming model" on page
changed. Also, when publishing for Flash Player 7 and using ActionScript 2.0, you can cast one
object type to another. For more information, see
don't require you to update existing scripts; however, you may want to use them if you publish
your scripts to Flash Player 7 and then continue to revise and enhance them.
"About allowing cross-domain data loading" on page
22), other features have been added and certain behaviors have
13.)However, if you used any of these commands in
"Casting objects" on page
Porting existing scripts to Flash Player 7
190.
"New
"New object-oriented
39. These capabilities
15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents