Package | away3d.loaders |
Class | public class Loader3D |
Inheritance | Loader3D ObjectContainer3D Object3D NamedAssetBase flash.events.EventDispatcher |
See also
Method | Defined By | ||
---|---|---|---|
Loader3D(useAssetLibrary:Boolean = true, assetLibraryId:String = null) | Loader3D | ||
Adds a child ObjectContainer3D to the current object. | ObjectContainer3D | ||
addChildren(... childarray):void
Adds an array of 3d objects to the scene as children of the container
| ObjectContainer3D | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void [override] | ObjectContainer3D | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
[override]
Clones this ObjectContainer3D instance along with all it's children, and
returns the result (which will be a copy of this container, containing copies
of all it's children.)
| ObjectContainer3D | ||
contains(child:ObjectContainer3D):Boolean | ObjectContainer3D | ||
dispatchEvent(event:Event):Boolean [override]
| ObjectContainer3D | ||
dispose():void [override]
Cleans up resources used by this asset. | ObjectContainer3D | ||
disposeAsset():void | Object3D | ||
enableParser(parserClass:Class):void [static] | Loader3D | ||
enableParsers(parserClasses:Vector.<Class>):void [static] | Loader3D | ||
getChildAt(index:uint):ObjectContainer3D
Retrieves the child object at the given index. | ObjectContainer3D | ||
load(req:URLRequest, context:AssetLoaderContext = null, ns:String = null, parser:ParserBase = null):AssetLoaderToken
Loads a file and (optionally) all of its dependencies. | Loader3D | ||
loadData(data:*, context:AssetLoaderContext = null, ns:String = null, parser:ParserBase = null):AssetLoaderToken
Loads a resource from already loaded data. | Loader3D | ||
lookAt(target:Vector3D, upAxis:Vector3D = null):void [override]
Rotates the 3d object around to face a point defined relative to the local coordinates of the parent ObjectContainer3D. | ObjectContainer3D | ||
moveBackward(distance:Number):void
Moves the 3d object backwards along it's local z axis
| Object3D | ||
moveDown(distance:Number):void
Moves the 3d object backwards along it's local y axis
| Object3D | ||
moveForward(distance:Number):void
Moves the 3d object forwards along it's local z axis
| Object3D | ||
moveLeft(distance:Number):void
Moves the 3d object backwards along it's local x axis
| Object3D | ||
movePivot(dx:Number, dy:Number, dz:Number):void
Moves the local point around which the object rotates. | Object3D | ||
moveRight(distance:Number):void
Moves the 3d object forwards along it's local x axis
| Object3D | ||
moveTo(dx:Number, dy:Number, dz:Number):void
Moves the 3d object directly to a point in space
| Object3D | ||
moveUp(distance:Number):void
Moves the 3d object forwards along it's local y axis
| Object3D | ||
pitch(angle:Number):void
Rotates the 3d object around it's local x-axis
| Object3D | ||
removeChild(child:ObjectContainer3D):void
Removes a 3d object from the child array of the container
| ObjectContainer3D | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void [override] | ObjectContainer3D | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | ||
roll(angle:Number):void
Rotates the 3d object around it's local z-axis
| Object3D | ||
rotate(axis:Vector3D, angle:Number):void [override] | ObjectContainer3D | ||
rotateTo(ax:Number, ay:Number, az:Number):void
Rotates the 3d object directly to a euler angle
| Object3D | ||
scale(value:Number):void
Appends a uniform scale to the current transformation. | Object3D | ||
translate(axis:Vector3D, distance:Number):void
Moves the 3d object along a vector by a defined length
| Object3D | ||
translateLocal(axis:Vector3D, distance:Number):void [override] | ObjectContainer3D | ||
updateImplicitVisibility():void | ObjectContainer3D | ||
yaw(angle:Number):void
Rotates the 3d object around it's local y-axis
| Object3D |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when an animation node has been constructed from a resource. | Loader3D | |||
Dispatched when an animation set has been constructed from a group of animation state resources. | Loader3D | |||
Dispatched when an animation state has been constructed from a group of animation node resources. | Loader3D | |||
Dispatched when a animator asset has been constructed from a resource. | Loader3D | |||
Dispatched when any asset finishes parsing. | Loader3D | |||
Dispatched when a container asset has been constructed from a resource. | Loader3D | |||
Dispatched when a single dependency (which may be the main file of a resource) finishes loading. | Loader3D | |||
Dispatched when a geometry asset has been constructed from a resource. | Loader3D | |||
Dispatched when an error occurs during loading. | Loader3D | |||
Dispatched when a material asset has been constructed from a resource. | Loader3D | |||
Dispatched when a user presses the left hand mouse button while the cursor is over the 3d object. | ObjectContainer3D | |||
Dispatched when a user moves the cursor while it is over the 3d object. | ObjectContainer3D | |||
Dispatched when a user moves the cursor away from the 3d object. | ObjectContainer3D | |||
Dispatched when a user moves the cursor over the 3d object. | ObjectContainer3D | |||
Dispatched when a user releases the left hand mouse button while the cursor is over the 3d object. | ObjectContainer3D | |||
Dispatched when the position of the 3d object changes. | Object3D | |||
Dispatched when a full resource (including dependencies) finishes loading. | Loader3D | |||
Dispatched when the rotation of the 3d object changes. | Object3D | |||
Dispatched when the scale of the 3d object changes. | Object3D | |||
Dispatched when the parent scene of the 3d object changes. | ObjectContainer3D | |||
Dispatched when the scene transform matrix of the 3d object changes. | ObjectContainer3D | |||
Dispatched when a skeleton asset has been constructed from a resource. | Loader3D | |||
Dispatched when a skeleton pose asset has been constructed from a resource. | Loader3D | |||
Dispatched when an animation state transition has been constructed from a group of animation node resources. | Loader3D | |||
Dispatched when a texture asset has been constructed from a resource. | Loader3D |
Loader3D | () | Constructor |
public function Loader3D(useAssetLibrary:Boolean = true, assetLibraryId:String = null)
useAssetLibrary:Boolean (default = true )
| |
assetLibraryId:String (default = null )
|
enableParser | () | method |
public static function enableParser(parserClass:Class):void
Parameters
parserClass:Class |
enableParsers | () | method |
public static function enableParsers(parserClasses:Vector.<Class>):void
Parameters
parserClasses:Vector.<Class> |
load | () | method |
public function load(req:URLRequest, context:AssetLoaderContext = null, ns:String = null, parser:ParserBase = null):AssetLoaderToken
Loads a file and (optionally) all of its dependencies.
Parameters
req:URLRequest — The URLRequest object containing the URL of the file to be loaded.
| |
context:AssetLoaderContext (default = null ) — An optional context object providing additional parameters for loading
| |
ns:String (default = null ) — An optional namespace string under which the file is to be loaded, allowing the differentiation of two resources with identical assets
| |
parser:ParserBase (default = null ) — An optional parser object for translating the loaded data into a usable resource. If not provided, AssetLoader will attempt to auto-detect the file type.
|
AssetLoaderToken |
loadData | () | method |
public function loadData(data:*, context:AssetLoaderContext = null, ns:String = null, parser:ParserBase = null):AssetLoaderToken
Loads a resource from already loaded data.
Parameters
data:* — The data object containing all resource information.
| |
context:AssetLoaderContext (default = null ) — An optional context object providing additional parameters for loading
| |
ns:String (default = null ) — An optional namespace string under which the file is to be loaded, allowing the differentiation of two resources with identical assets
| |
parser:ParserBase (default = null ) — An optional parser object for translating the loaded data into a usable resource. If not provided, AssetLoader will attempt to auto-detect the file type.
|
AssetLoaderToken |
animationNodeComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when an animation node has been constructed from a resource.
animationSetComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when an animation set has been constructed from a group of animation state resources.
animationStateComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when an animation state has been constructed from a group of animation node resources.
animatorComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when a animator asset has been constructed from a resource.
assetComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when any asset finishes parsing. Also see specific events for each individual asset type (meshes, materials et c.)
containerComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when a container asset has been constructed from a resource.
dependencyComplete | Event |
away3d.events.LoaderEvent
away3d.events.LoaderEvent
Dispatched when a single dependency (which may be the main file of a resource) finishes loading.
geometryComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when a geometry asset has been constructed from a resource.
loadError | Event |
away3d.events.LoaderEvent
away3d.events.LoaderEvent
Dispatched when an error occurs during loading.
materialComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when a material asset has been constructed from a resource.
resourceComplete | Event |
away3d.events.LoaderEvent
away3d.events.LoaderEvent
Dispatched when a full resource (including dependencies) finishes loading.
skeletonComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when a skeleton asset has been constructed from a resource.
skeletonPoseComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when a skeleton pose asset has been constructed from a resource.
stateTransitionComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when an animation state transition has been constructed from a group of animation node resources.
textureComplete | Event |
away3d.events.AssetEvent
away3d.events.AssetEvent
Dispatched when a texture asset has been constructed from a resource.