Z.Symbol
Inherits from Z.Group
Description
The Z.Symbol object represents a symbol as created in ZapWorks Studio. Note that every project has a root symbol even if it has no subsymbols.
The current symbol can be accessed using symbol
from scripts within ZapWorks Studio.
Provided by Z.Symbol
Constructor
Z.Symbol(...) |
Constructs a new Z.Symbol instantiated from the definition specified. |
Events
close |
Emitted when the symbol is to be closed. |
closed |
Emitted once the symbol has been completely removed from display. |
hidden |
Emitted when any hide animations/state changes have completed. |
Functions
attach( ) |
Adds the symbol to Z.scene. |
close( ) |
Calls hide() on this symbol and then detach() once hidden has been emitted. |
controller(...) |
Gets the Z.Controller in this symbol with the specified name. |
detach( ) |
Removes the symbol from Z.scene. |
display( ) |
Adds the symbol to Z.scene and calls show(). |
hide( ) |
Emits hide on this symbol then on all hierarchy-instantiated subsymbols of this symbol. |
node(...) |
Gets the node in this symbol with the specified name. |
show( ) |
Emits show on all hierarchy-instantiated subsymbols of this symbol, and then on this symbol itself. |
Inherited from Z.Group
Constructor
Functions
child(...) |
Gets the child node at the specified index. |
children( ) |
Gets the children of the group. |
clear( ) |
Removes all children from the group. |
insert(...) |
Inserts a node into the group at the specified index. |
push(...) |
Inserts a node as the last child of the group. |
remove(...) |
Removes a node from the group. |
Inherited from Z.Node
Functions
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. |