| Package | net.guttershark.ui.views |
| Class | public class BasicView |
| Inheritance | BasicView flash.display.MovieClip |
| Implements | IDisposable |
| Subclasses | AnimatedView |
The common functionality:
The init method is the last step in the setup chain for a view, this should be used to continue initializing a view, like changing visibility / alpha on children properties, etc.
The cleanup method should be overwritten as well. The cleanup method
is called when the clip is removed from the stage. This is not
supposed to replace dispose(), it's for "off the display list"
cleanup.
Override the dispose mothod for complete dispose logic, the cleanup method should be implemented to have temporary "not in display list" cleanup code.
| Method | Defined by | ||
|---|---|---|---|
|
Constructor for BasicView instances.
| BasicView | ||
|
dispose():void
Override this method and write your own dispose logic.
| BasicView | ||
|
hide():void
Stub method for hiding this view.
| BasicView | ||
|
removeAllChildren():void
Remove all children from this instance.
| BasicView | ||
|
reorderChildren():void
Stub method you should override to re-arrange children on the display
list.
| BasicView | ||
|
show():void
Stub method for showing this view.
| BasicView | ||
| Method | Defined by | ||
|---|---|---|---|
|
activated():void
Override this method to hook into when the operating system gains focus
on the flash movie.
| BasicView | ||
|
addedToStage():void
Override this method to hook into the added to stage event.
| BasicView | ||
|
addListeners():void
The addListeners method is a stub method you should override
and use for adding event listeners onto children objects.
| BasicView | ||
|
cleanup():void
The cleanup method is called after the clip has been removed from
the display list.
| BasicView | ||
|
deactivated():void
Override this method to hook into when the operating system loses focus
on the flash movie.
| BasicView | ||
|
init():void
The init method is the final method after initial setup stage listeners
and other logic is complete.
| BasicView | ||
|
removedFromStage():void
Override this method to hook into the removed from stage event.
| BasicView | ||
|
removeListeners():void
The removeListeners method is a stub method you should override
and use for removing event listeners from children objects.
| BasicView | ||
|
resized():void
Override this method to hook into resize events from the stage.
| BasicView | ||
| BasicView | () | constructor |
public function BasicView()Constructor for BasicView instances.
| activated | () | method |
protected function activated():voidOverride this method to hook into when the operating system gains focus on the flash movie.
| addedToStage | () | method |
protected function addedToStage():voidOverride this method to hook into the added to stage event.
| addListeners | () | method |
protected function addListeners():voidThe addListeners method is a stub method you should override and use for adding event listeners onto children objects. This is called after the clip has been added to the stage, so the stage property is always available.
This method also implements logic for the stage resize event so make sure to call super.addListeners() if you need the resize events to work correctly.
| cleanup | () | method |
protected function cleanup():voidThe cleanup method is called after the clip has been removed from the display list. This is intended to do temporary cleanup until the clip is added back to the display list. Not for final disposing logic. See the dispose method for final disposal.
| deactivated | () | method |
protected function deactivated():voidOverride this method to hook into when the operating system loses focus on the flash movie.
| dispose | () | method |
public function dispose():voidOverride this method and write your own dispose logic.
| hide | () | method |
public function hide():voidStub method for hiding this view. It sets the visible property to false.
| init | () | method |
protected function init():voidThe init method is the final method after initial setup stage listeners and other logic is complete. Override this and provide you're own custom children initialization logic.
| removeAllChildren | () | method |
public function removeAllChildren():voidRemove all children from this instance.
| removedFromStage | () | method |
protected function removedFromStage():voidOverride this method to hook into the removed from stage event.
| removeListeners | () | method |
protected function removeListeners():voidThe removeListeners method is a stub method you should override and use for removing event listeners from children objects. This is called after the clip has been removed from the stage.
| reorderChildren | () | method |
public function reorderChildren():voidStub method you should override to re-arrange children on the display list. This is in place for naming convention.
| resized | () | method |
protected function resized():voidOverride this method to hook into resize events from the stage.
| show | () | method |
public function show():voidStub method for showing this view. It sets the visible property to true.