| Package | vegas.display |
| Class | public class CoreLoader |
| Inheritance | CoreLoader flash.display.Loader |
| Implements | IDisplayObject |
| Subclasses | AVM2Loader, FontLoader |
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 ) ;
| Property | Defined By | ||
|---|---|---|---|
| context : LoaderContext
The LoaderContext object of this loader. | CoreLoader | ||
| logger : Logger
Determinates the internal ILogger reference of this Logable object. | CoreLoader | ||
| Method | Defined 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 | ||
| context | property |
context:LoaderContextThe LoaderContext object of this loader.
public function get context():LoaderContext public function set context(value:LoaderContext):void| logger | property |
logger:Logger
Determinates the internal ILogger reference of this Logable object.
public function get logger():Logger public function set logger(value:Logger):void| CoreLoader | () | Constructor |
public function CoreLoader()Creates a new CoreLoader instance.
| isLocked | () | method |
public function isLocked():Boolean
Returns true if the object is locked.
Boolean — true if the object is locked.
|
| load | () | method |
override public function load(request:URLRequest, context:LoaderContext = null):voidLoads 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():voidLocks the object.
| resetLock | () | method |
public function resetLock():voidReset the lock security of the display.
| unlock | () | method |
public function unlock():voidUnlocks the display.