start(key, clearWorld, clearCache, parameter)
Start the given State. If a State is already running then State.shutDown will be called (if it exists) before switching to the new State.
Parameters
Name Type Argument Default Description key string The key of the state you want to start. clearWorld boolean <optional> true Clear everything in the world? This clears the World display list fully (but not the Stage, so if you've added your own objects to the Stage they will need man