Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 475

Programming actionscript 3.0
Table of Contents

Advertisement

When you load the image using the
parameter, which is a LoaderContext object. If you set the
context
property of the LoaderContext object to
file on the server from which the image is loaded. If there is a cross-domain policy file, and the
file permits the domain of the loading SWF file, the file is allowed to access data in the
Bitmap object; otherwise, access is denied.
You can also specify a
text field. For details, see
on page
469.
Accessing sound data
The following sound-related ActionScript 3.0 APIs have security restrictions:
The
SoundMixer.computeSpectrum()
are in the same security sandbox as the sound file. For files in other sandboxes, there are
security checks.
The
SoundMixer.stopAll()
same security sandbox as the sound file. For files in other sandboxes, there are security
checks.
The
property of the Sound class—Always permitted for SWF files that are in the same
id3
security sandbox as the sound file. For files in other sandboxes, there are security checks.
Every sound has two kinds of sandboxes associated with it—a content sandbox and an owner
sandbox:
The origin domain for the sound determines the content sandbox, and this determines
whether data can be extracted from the sound via the
SoundMixer.computeSpectrum()
The object that started the sound playing determines the owner sandbox, and this
determines whether the sound can be stopped using the
When you load the sound using the
parameter, which is a SoundLoaderContext object. If you set the
context
property of the SoundLoaderContext object to
policy file on the server from which the sound is loaded. If there is a cross-domain policy file,
and the file permits the domain of the loading SWF file, the file is allowed to access the
property of the Sound object; otherwise, it will not. Also, setting the
property can enable the
load()
true
property in an image loaded via an
checkPolicyFile
"Loading SWF files and images using the <img> tag in a text field"
method—Always permitted for SWF files that are in the
method.
load()
SoundMixer.computeSpectrum()
method of the Loader class, you can specify a
, Flash Player checks for a cross-domain policy
method—Always permitted for SWF files that
property of the sound and the
id3
SoundMixer.stopAll()
method of the Sound class, you can specify a
, Flash Player checks for a cross-domain
true
method for loaded sounds.
Accessing loaded media as data
checkPolicyFile
tag in a
<img>
method.
checkPolicyFile
id
checkPolicyFile
475

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents