Z.State
Inherits from Z.Element
Description
This object represents a state as created in ZapWorks Studio. See Controllers and States for more information.
Provided by Z.State
Functions
activate( ) |
Make this state the active element in its parent Z.Controller and transition the properties it overrides to the values specified by this state over time. |
enqueue( ) |
Adds this state to the queue. |
reset( ) |
Make this state the active element in its parent Z.Controller and instantly set the properties it overrides to the values specified by this state. |
Inherited from Z.Element
Events
active |
Emitted when an element becomes the active element in a controller. |
complete |
Emitted when a controller element has completed its animation. |
notactive |
Emitted when an element is not the active element in a controller. |
Inherited from Z.Base
Functions
emit(...) |
Calls the handler functions attached to an event. |
hasTag(...) |
Returns true if this object has the specified tag. |
off(...) |
Removes a handler function from an event. |
on(...) |
Attaches a handler function to an event. |
one(...) |
Attaches a single-use handler function to an event. |
pushTag(...) |
Adds a tag to this object. |
removeTag(...) |
Removes a tag from this object. |
tags( ) |
Gets an array of the tags that this object belongs to. |
tags(...) |
Sets the array of the tags that this object belongs to. |