Packagevegas.display
Classpublic class CoreLoader
InheritanceCoreLoader Inheritance flash.display.Loader
Implements IDisplayObject
Subclasses AVM2Loader, FontLoader

The CoreLoader class extends the flash.display.Loader class and implements the IDisplayObject interface.

Example :

     import vegas.display.CoreLoader ;
     import flash.net.URLRequest ;
     
     var loader:CoreLoader = new CoreLoader() ;
     loader.x = 25 ;
     loader.y = 25 ;
     
     addChild( loader ) ;
     
     var url:String = "library/picture.jpg" ;
     var request:URLRequest = new URLRequest( url ) ;
     
     loader.load( request ) ;
     



Public Properties
 PropertyDefined By
  context : LoaderContext
The LoaderContext object of this loader.
CoreLoader
  logger : Logger
Determinates the internal ILogger reference of this Logable object.
CoreLoader
Public Methods
 MethodDefined By
  
Creates a new CoreLoader instance.
CoreLoader
  
isLocked():Boolean
Returns true if the object is locked.
CoreLoader
  
load(request:URLRequest, context:LoaderContext = null):void
[override] Loads a SWF, JPEG, progressive JPEG, unanimated GIF, or PNG file into an object that is a child of this Loader object.
CoreLoader
  
lock():void
Locks the object.
CoreLoader
  
resetLock():void
Reset the lock security of the display.
CoreLoader
  
unlock():void
Unlocks the display.
CoreLoader
Property Detail
contextproperty
context:LoaderContext

The LoaderContext object of this loader.


Implementation
    public function get context():LoaderContext
    public function set context(value:LoaderContext):void
loggerproperty 
logger:Logger

Determinates the internal ILogger reference of this Logable object.


Implementation
    public function get logger():Logger
    public function set logger(value:Logger):void
Constructor Detail
CoreLoader()Constructor
public function CoreLoader()

Creates a new CoreLoader instance.

Method Detail
isLocked()method
public function isLocked():Boolean

Returns true if the object is locked.

Returns
Booleantrue if the object is locked.
load()method 
override public function load(request:URLRequest, context:LoaderContext = null):void

Loads a SWF, JPEG, progressive JPEG, unanimated GIF, or PNG file into an object that is a child of this Loader object.

Parameters

request:URLRequest — The absolute or relative URL of the SWF, JPEG, GIF, or PNG file to be loaded. A relative path must be relative to the main SWF file. Absolute URLs must include the protocol reference, such as http:// or file:///. Filenames cannot include disk drive specifications.
 
context:LoaderContext (default = null) — A LoaderContext object.

lock()method 
public function lock():void

Locks the object.

resetLock()method 
public function resetLock():void

Reset the lock security of the display.

unlock()method 
public function unlock():void

Unlocks the display.