| Package | com.pblabs.engine.mxml |
| Class | public class ResourceBinding |
| Inheritance | ResourceBinding Object |
| Implements | mx.core.IMXMLObject, flash.events.IEventDispatcher |
Embedded resources can be accessed just like any other resource with the resource manager's Load method. The only difference is that a reference to embedded resources will always exist, and therefore they will never be unloaded.
See also
| Property | Defined By | ||
|---|---|---|---|
| filename : String
The string by which the resource can be looked up in the resource manager. | ResourceBinding | ||
| resourceClass : Class
The embed statement for the asset that is to be embedded. | ResourceBinding | ||
| resourceType : Class
The Resource subclass that should be created for this asset. | ResourceBinding | ||
| Method | Defined By | ||
|---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void | ResourceBinding | ||
dispatchEvent(event:Event):Boolean | ResourceBinding | ||
hasEventListener(type:String):Boolean | ResourceBinding | ||
initialized(document:Object, id:String):void | ResourceBinding | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void | ResourceBinding | ||
willTrigger(type:String):Boolean | ResourceBinding | ||
| filename | property |
filename:StringThe string by which the resource can be looked up in the resource manager. It should usually match the filename of the asset for clarity.
This property can be used as the source for data binding.
public function get filename():String public function set filename(value:String):void| resourceClass | property |
resourceClass:ClassThe embed statement for the asset that is to be embedded.
This property can be used as the source for data binding.
public function get resourceClass():Class public function set resourceClass(value:Class):void| resourceType | property |
resourceType:ClassThe Resource subclass that should be created for this asset.
This property can be used as the source for data binding.
public function get resourceType():Class public function set resourceType(value:Class):voidSee also
| addEventListener | () | method |
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false) | |
priority:int (default = 0) | |
weakRef:Boolean (default = false) |
| dispatchEvent | () | method |
public function dispatchEvent(event:Event):Boolean
Parameters
event:Event |
Boolean |
| hasEventListener | () | method |
public function hasEventListener(type:String):Boolean
Parameters
type:String |
Boolean |
| initialized | () | method |
public function initialized(document:Object, id:String):void
Parameters
document:Object | |
id:String |
| removeEventListener | () | method |
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Parameters
type:String | |
listener:Function | |
useCapture:Boolean (default = false) |
| willTrigger | () | method |
public function willTrigger(type:String):Boolean
Parameters
type:String |
Boolean |