Packagech.capi.display
Classpublic class AbstractDocument
InheritanceAbstractDocument Inheritance flash.display.MovieClip
ImplementsINetStateManager, IRootDocument

Basic implementation of an IRootDocument and INetStateManager.

Note that you should never use this class directly as a DocumentClass.



Public Properties
 PropertyDefined by
  loadableFile : ILoadableFile
[read-only] Defines the ILoadableFile used to load this document.
AbstractDocument
  netState : String
Defines the NetState value.
AbstractDocument
Public Methods
 MethodDefined by
  
Creates a new AbstractDocument object.
AbstractDocument
  
initializeContext(loadableFile:ILoadableFile):void
Callback of the MassLoader (IRootDocument interface).
AbstractDocument
  
isOnline():Boolean
Retrieves the state depending of the NetState value defined.
AbstractDocument
Property detail
loadableFileproperty
loadableFile:ILoadableFile  [read-only]

Defines the ILoadableFile used to load this document.

Implementation
    public function get loadableFile():ILoadableFile

See also

netStateproperty 
netState:String  [read-write]

Defines the NetState value. The value available can be retrieved from the NetState class.

Implementation
    public function get netState():String
    public function set netState(value:String):void

See also

Constructor detail
AbstractDocument()constructor
public function AbstractDocument()

Creates a new AbstractDocument object.

Method detail
initializeContext()method
public function initializeContext(loadableFile:ILoadableFile):void

Callback of the MassLoader (IRootDocument interface). This method should be overriden to implement the initialization tasks.

Parameters
loadableFile:ILoadableFile — The ILoadableFile source.

See also

isOnline()method 
public function isOnline():Boolean

Retrieves the state depending of the NetState value defined.

If the netState value is NetState.ONLINE, then this method returns true. If the netState value is NetState.OFFLINE, then this method returns false. If the netState value is NetState.DYNAMIC, then this method uses the Security.sandboxType to determines if the online state.

Returns
Booleantrue if the INetStateManager is online or not.

See also

Define the online state
Security.sandboxType