28
What’s New in Flash 8 ActionScript
Reload modified files
You can reload modified script files when working on an application.
A warning message appears, prompting you to reload the modified script files associated with
the application you’re working on. This feature is particularly beneficial to teams working on
applications at the same time, in that it helps you avoid working with outdated scripts, or
overwriting newer versions of a script. If a script file was moved or deleted, a warning message
appears and prompts you to save the files as necessary. For more information, see
“About
ActionScript preferences” on page 42
.
Changes to security model for locally
installed SWF files
Flash Player 8 has a new, improved security model in which Flash applications and SWF files
on a local computer can communicate with the Internet and the local file system, rather than
run from a remote web server. When you develop a Flash application, you must indicate
whether a SWF file is allowed to communicate with a network or with a local file system.
In previous versions of Flash Player, local SWF files could interact with other SWF files and
load data from any remote or local computer without configuring security settings. In Flash
Player 8, a SWF file cannot make connections to the local file system and the network (such
as the Internet) in the same application without making a security setting. This is for your
safety, so a SWF file cannot read files on your hard disk and then send the contents of those
files across the Internet.
This security restriction affects all locally deployed content, whether it’s legacy content (a FLA
file created in an earlier version of Flash) or created in Flash 8. Using the Flash MX 2004 or
earlier authoring tool, you could test a Flash application that runs locally and also accesses the
Internet. In Flash Player 8, this application now prompts the user for permission to
communicate with the Internet.
When you test a file on your hard disk, there are several steps to determine whether the file is
a local trusted (safe) document or a potentially untrusted (unsafe) document. If you create the
file in the Flash authoring environment (for example, when you select Control > Test Movie),
your file is trusted because it is in the test environment.
NO
TE
In this description, a
local SWF file
is a SWF file that is locally installed on a user’s
computer, not served from a website, and does not include projector (EXE) files.
Summary of Contents for FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Page 1: ...Learning ActionScript 2 0 in Flash...
Page 8: ...8 Contents...
Page 18: ...18 Introduction...
Page 30: ...30 What s New in Flash 8 ActionScript...
Page 66: ...66 Writing and Editing ActionScript 2 0...
Page 328: ...328 Interfaces...
Page 350: ...350 Handling Events...
Page 590: ...590 Creating Interaction with ActionScript...
Page 710: ...710 Understanding Security...
Page 730: ...730 Debugging Applications...
Page 780: ...780 Deprecated Flash 4 operators...
Page 830: ...830 Index...