window.runtime property | window.runtime.flash.media.SoundLoaderContext |
Inheritance | SoundLoaderContext Object |
Runtime Versions: | AIR 1.0, |
load()
method of the Sound class.
When you use this class, consider the following security model:
- Loading and playing a sound is not allowed if the calling file is in a network sandbox and the sound file to be loaded is local.
- By default, loading and playing a sound is not allowed if the calling is local and tries to load and play a remote sound. A user must grant explicit permission to allow this.
- Certain operations dealing with sound are restricted. The data in a loaded sound cannot
be accessed by a file in a different domain unless you implement a URL policy file.
Sound-related APIs that fall under this restriction are the
Sound.id3
property and theSoundMixer.computeSpectrum()
,SoundMixer.bufferTime
, andSoundTransform()
methods.
However, in Adobe AIR, content in the application
security sandbox (content
installed with the AIR application) are not restricted by these security limitations.
For more information related to security, see the Flash Player Developer Center Topic: Security.
Property | Defined By | ||
---|---|---|---|
bufferTime : Number = 1000
The number of milliseconds to preload a streaming sound into a buffer
before the sound starts to stream. | SoundLoaderContext | ||
checkPolicyFile : Boolean = false
Specifies whether the application should try to download a URL policy file from the
loaded sound's server before beginning to load the sound. | SoundLoaderContext | ||
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
prototype : Object [static]
A reference to the prototype object of a class or function object. | Object |
Method | Defined By | ||
---|---|---|---|
SoundLoaderContext(bufferTime:Number = 1000, checkPolicyFile:Boolean = false)
Creates a new sound loader context object. | SoundLoaderContext | ||
hasOwnProperty(name:String):Boolean
Indicates whether an object has a specified property defined. | Object | ||
isPrototypeOf(theClass:Object):Boolean
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
propertyIsEnumerable(name:String):Boolean
Indicates whether the specified property exists and is enumerable. | Object | ||
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
Sets the availability of a dynamic property for loop operations. | Object | ||
toLocaleString():String
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
toString():String
Returns the string representation of the specified object. | Object | ||
valueOf():Object
Returns the primitive value of the specified object. | Object |
bufferTime | property |
public var bufferTime:Number = 1000
Runtime Versions: | AIR 1.0, |
The number of milliseconds to preload a streaming sound into a buffer before the sound starts to stream.
Note that you cannot override the value of SoundLoaderContext.bufferTime
by setting the global SoundMixer.bufferTime
property.
checkPolicyFile | property |
public var checkPolicyFile:Boolean = false
Runtime Versions: | AIR 1.0, |
Specifies whether the application should try to download a URL policy file from the
loaded sound's server before beginning to load the sound. This property applies to
sound that is loaded from outside
the calling file's own domain using the Sound.load()
method.
This property only applies to SWF content running outside of the AIR application sandbox.
See also
SoundLoaderContext | () | Constructor |
public function SoundLoaderContext(bufferTime:Number = 1000, checkPolicyFile:Boolean = false)
Runtime Versions: | AIR 1.0, |
Creates a new sound loader context object.
ParametersbufferTime:Number (default = 1000 ) — The number of seconds to preload a streaming sound into a buffer
before the sound starts to stream.
| |
checkPolicyFile:Boolean (default = false ) — Specifies whether the existence of a URL policy file
should be checked upon loading the object (true ) or not.
|
Thu Sep 29 2011, 02:34 AM -07:00