new SceneManager() → {SceneManager}
Manages all objects in the scene and provides an interface for
querying.
- Source:
Returns:
- Type
- SceneManager
Methods
-
<static> find(query, context)
-
Basic query method to find collections of objects.
Parameters:
Name Type Description queryString A query is made up of DisplayObject names and searches over either immediate children or descendants at arbitrary depth. A search over immediate children is given by "." while a recursive search is given by "..". An example follows. contextDisplayObject The DisplayObject to start the search from. If no context is provided, the search starts at the top of the graph, i.e. the scene root. - Source:
Example
SceneManager.find("a.b..(@visible==true).(@name==z)"); SceneManager.find("a.b..(@visible==true)..(@name==z)"); SceneManager.find("..(@visible==true)..(@name==z)", q); SceneManager.find("..(@test==true)"); -
<static> getById(id) → {DisplayObject}
-
Retrieves a DisplayObject from the scene by id.
Parameters:
Name Type Description idnumber The integral id of the DisplayObject to retrieve. - Source:
Returns:
- Type
- DisplayObject