Constructor
new AnimatedImage(texture)
Creates an instance of AnimatedImage.
Parameters:
Name | Type | Description |
---|---|---|
texture |
TextureInfo |
Properties:
Name | Type | Description |
---|---|---|
frameLength |
number | |
isPlaying |
boolean |
- Source:
Extends
Classes
Members
callbackAfterRender :function
Set/Get after render callback - It will be called after the Item rendered
Type:
- function
- Overrides:
- Source:
callbackBeforeRender :function
Set/Get before render callback - It will be called before the Item rendered
Type:
- function
- Overrides:
- Source:
frames :Array.<Frame>
Set/Get frames
Type:
- Array.<Frame>
- Source:
parent :Container
Set/Get parent
Type:
- Overrides:
- Source:
(readonly) stage :StageContainer
Get StageContainer
Type:
- Overrides:
- Source:
Methods
callEventHandler(event)
Handle event - It can handle mouse events if the item is interactive and has [ onPointerOver, onPointerOut, onPointerMove, onPointerDown, onPointerUp, onPointerClick ] function
Parameters:
Name | Type | Description |
---|---|---|
event |
* |
- Overrides:
- Source:
destruct()
Destruct class
- Overrides:
- Source:
getBounds() → {Rectangle}
Returns with bounds
- Overrides:
- Source:
Returns:
- Type
- Rectangle
getCorners() → {Array.<Point>}
Returns with the calculated corder positions
- Overrides:
- Source:
Returns:
- Type
- Array.<Point>
gotoAndPlay(frame)
Go to a frame and play
Parameters:
Name | Type | Description |
---|---|---|
frame |
number |
- Source:
gotoAndStop(frame)
Go to a frame and stop
Parameters:
Name | Type | Description |
---|---|---|
frame |
number |
- Source:
isContainsPoint(point) → {boolean}
Returns true if the Image contains the point
Parameters:
Name | Type | Description |
---|---|---|
point |
Point |
- Overrides:
- Source:
Returns:
- Type
- boolean
play()
Play the animation
- Source:
remove()
Remove Item from parent
- Overrides:
- Source:
stop()
Stop the animation
- Source:
update(renderTime)
Update the animation
Parameters:
Name | Type | Description |
---|---|---|
renderTime |
number |
- Overrides:
- Source: