Packagecom.yworks.util
Classpublic class CloneableSpriteAsset
InheritanceCloneableSpriteAsset Inheritance mx.core.SpriteAsset
Implements ICloneable

A cloneable SpriteAsset which wraps a DisplayObject. The DisplayObject is passed to the constructor as its Class.



Public Properties
 PropertyDefined By
  spriteAssetClass : Class
[read-only] The Class of the DisplayObject which is wrapped by this instance.
CloneableSpriteAsset
Public Methods
 MethodDefined By
  
CloneableSpriteAsset(spriteAssetClass:Class)
Initializes the CloneableSpriteAsset.
CloneableSpriteAsset
  
clone():Object
Creates a clone of this instance.
CloneableSpriteAsset
Property Detail
spriteAssetClassproperty
spriteAssetClass:Class  [read-only]

The Class of the DisplayObject which is wrapped by this instance.


Implementation
    public function get spriteAssetClass():Class
Constructor Detail
CloneableSpriteAsset()Constructor
public function CloneableSpriteAsset(spriteAssetClass:Class)

Initializes the CloneableSpriteAsset.

Parameters
spriteAssetClass:Class — The Class of the DisplayObject which will be wrapped by this instance.
Method Detail
clone()method
public function clone():Object

Creates a clone of this instance.

Returns
Object — A clone of this instance.