| Package | com.yworks.util |
| Class | public class CloneableSpriteAsset |
| Inheritance | CloneableSpriteAsset mx.core.SpriteAsset |
| Implements | ICloneable |
SpriteAsset which wraps a DisplayObject.
The DisplayObject is passed to the constructor as its Class.
| Property | Defined by | ||
|---|---|---|---|
| spriteAssetClass : Class [read-only]
The
Class of the DisplayObject which is wrapped by this instance. | CloneableSpriteAsset | ||
| Method | Defined by | ||
|---|---|---|---|
|
CloneableSpriteAsset(spriteAssetClass:Class)
Initializes the
CloneableSpriteAsset. | CloneableSpriteAsset | ||
|
clone():Object
Creates a clone of this instance.
| CloneableSpriteAsset | ||
| spriteAssetClass | property |
spriteAssetClass:Class [read-only]
The Class of the DisplayObject which is wrapped by this instance.
public function get spriteAssetClass():Class
| CloneableSpriteAsset | () | constructor |
public function CloneableSpriteAsset(spriteAssetClass:Class)
Initializes the CloneableSpriteAsset.
spriteAssetClass:Class — The Class of the DisplayObject which will be wrapped by this instance.
|
| clone | () | method |
public function clone():ObjectCreates a clone of this instance.
ReturnsObject — A clone of this instance.
|