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

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.