| Package | sandy.core |
| Class | public class SceneLocator |
You can only have one SceneLocator in an application.
You can find, register and unregister scenes by their name.
When scenes (Scene3D ) are created in an application, they aoutomatically register with the SceneLocator registry
| Method | Defined by | ||
|---|---|---|---|
|
SceneLocator(access:PrivateConstructorAccess)
Creates the SceneLocator registry
This constructor is never called directly. | SceneLocator | ||
|
[static]
Returns a SceneLocator.
| SceneLocator | ||
|
Returns the Scene3D object with the specified name.
| SceneLocator | ||
|
isRegistered(key:String):Boolean
Check if a scene with the specified name is registered.
| SceneLocator | ||
|
registerScene(key:String, o:Scene3D):Boolean
Registers a scene with this SceneLocator
| SceneLocator | ||
|
unregisterScene(key:String):void
Unregisters a scene with the specified name
| SceneLocator | ||
| SceneLocator | () | constructor |
public function SceneLocator(access:PrivateConstructorAccess)Creates the SceneLocator registry
This constructor is never called directly.
Instead you get the registry instance by calling SceneLocator.getInstance().
access:PrivateConstructorAccess — A singleton access flag object
|
| getInstance | () | method |
public static function getInstance():SceneLocatorReturns a SceneLocator.
ReturnsSceneLocator —
The single locator
|
| getScene | () | method |
public function getScene(key:String):Scene3DReturns the Scene3D object with the specified name.
Parameterskey:String — The name of the scene
|
Scene3D —
The requested scene
|
| isRegistered | () | method |
public function isRegistered(key:String):BooleanCheck if a scene with the specified name is registered.
Parameterskey:String — key The Name of the scene to check
|
Boolean — true if a scene with that name is registered, false otherwise
|
| registerScene | () | method |
public function registerScene(key:String, o:Scene3D):BooleanRegisters a scene with this SceneLocator
Parameterskey:String — : String, name of the scene to register
|
|
o:Scene3D — : Scene3D, object to register
|
Boolean — true if the registration was successful, false otherwise
|
| unregisterScene | () | method |
public function unregisterScene(key:String):voidUnregisters a scene with the specified name
Parameterskey:String — Th name of the scene to unregister
|