Packagech.capi.net
Interfacepublic interface IContextPolicy
Implementors DefaultContextPolicy

Represents a manager of context for Loader and Sound objects.

See also

LoadableFileFactory


Public Methods
 MethodDefined By
  
getLoaderContext(file:ILoadableFile, appDomainPolicy:String = null, secDomainPolicy:String = null):LoaderContext
Retrieves a LoaderContext that will be attached to the specified ILoadableFile.
IContextPolicy
  
getSoundContext(file:ILoadableFile):SoundLoaderContext
Retrieves a SoundLoaderContext that will be attached to the specified ILoadableFile.
IContextPolicy
Method Detail
getLoaderContext()method
public function getLoaderContext(file:ILoadableFile, appDomainPolicy:String = null, secDomainPolicy:String = null):LoaderContext

Retrieves a LoaderContext that will be attached to the specified ILoadableFile.

Parameters

file:ILoadableFile — The ILoadableFile.
 
appDomainPolicy:String (default = null) — The policy to retrieve the ApplicationDomain.
 
secDomainPolicy:String (default = null) — The policy to retrieve the SecurityDomain.

Returns
LoaderContext — The created LoaderContext.

See also

getSoundContext()method 
public function getSoundContext(file:ILoadableFile):SoundLoaderContext

Retrieves a SoundLoaderContext that will be attached to the specified ILoadableFile.

Parameters

file:ILoadableFile — The ILoadableFile.

Returns
SoundLoaderContext — The created SoundLoaderContext.