Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 181

Programming actionscript 3.0
Table of Contents

Advertisement

The following diagram shows the different uses of the LoaderInfo object—for the instance of
the main class of the SWF file, for a Loader object, and for an object loaded by the Loader
object:
LoaderInfo object
property
loaderInfo
The LoaderContext class
When you load an external file into Flash Player through the
method of the Loader class, you can optionally specify a
is a LoaderContext object.
The LoaderContext class includes three properties that let you define the context of how the
loaded content can be used:
checkPolicyFile
If you set this property to
policy file (see
"Website controls (cross-domain policy files)" on page
necessary only for content originating from domains other than that of the SWF file
containing the Loader object. If the server grants permission to the Loader domain,
ActionScript from SWF files in the Loader domain can access data in the loaded image; in
other words, you can use the
image.
Note that a SWF file from other domains than that of the Loader object can call
Security.allowDomain()
Stage
Instance of
the main class of
the SWF file
Loader object
content
—Use this property only when loading an image file (not a SWF file).
, the Loader checks the origin server for a cross-domain
true
BitmapData.draw()
to permit a specific domain.
contentLoaderInfo
LoaderInfo object
property
loaderInfo
load()
parameter. This parameter
context
command to access data in the loaded
Basics for working with the core display classes
property
or
loadBytes()
456). This is
181

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents