Packagenet.guttershark.ui.views
Classpublic class BasicView
InheritanceBasicView Inheritance flash.display.MovieClip
ImplementsIDisposable
SubclassesAnimatedView

The BasicView class provides common case functionality needed 90% of the time a "view" must be implemented.

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.



Public Methods
 MethodDefined 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
  
Remove all children from this instance.
BasicView
  
Stub method you should override to re-arrange children on the display list.
BasicView
  
show():void
Stub method for showing this view.
BasicView
Protected Methods
 MethodDefined 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
  
Override this method to hook into the removed from stage event.
BasicView
  
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
Constructor detail
BasicView()constructor
public function BasicView()

Constructor for BasicView instances.

Method detail
activated()method
protected function activated():void

Override this method to hook into when the operating system gains focus on the flash movie.

addedToStage()method 
protected function addedToStage():void

Override this method to hook into the added to stage event.

addListeners()method 
protected function addListeners():void

The 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():void

The 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():void

Override this method to hook into when the operating system loses focus on the flash movie.

dispose()method 
public function dispose():void

Override this method and write your own dispose logic.

hide()method 
public function hide():void

Stub method for hiding this view. It sets the visible property to false.

init()method 
protected function init():void

The 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():void

Remove all children from this instance.

removedFromStage()method 
protected function removedFromStage():void

Override this method to hook into the removed from stage event.

removeListeners()method 
protected function removeListeners():void

The 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():void

Stub method you should override to re-arrange children on the display list. This is in place for naming convention.

resized()method 
protected function resized():void

Override this method to hook into resize events from the stage.

show()method 
public function show():void

Stub method for showing this view. It sets the visible property to true.