Class: AnimatedImage

AnimatedImage(texture)

Animated Image

Constructor

new AnimatedImage(texture)

Creates an instance of AnimatedImage.
Parameters:
Name Type Description
texture TextureInfo
Source:

Extends

Classes

AnimatedImage

Members

callback :function

 Set/Get render callback
   - It will be called when the Item is rendered
Type:
  • function
Overrides:
Source:

(readonly) isPlaying :boolean

Returns is animation playing
Type:
  • boolean
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 [onmouseover, onmouseout, onmousemove, onmousedown, onmouseup, onclick, ontouchstart, ontouchmove, touchend] 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:

stop()

Stop the animation
Source:

update(renderTime)

Update the animation
Parameters:
Name Type Description
renderTime number
Overrides:
Source: