Packagenet.guttershark.display.views
Classpublic class BasicView
InheritanceBasicView Inheritance CoreClip Inheritance flash.display.MovieClip
SubclassesAnimatedView, ControllerView

The BasicView Class provides hooks into a number of different events that occur from a DisplayObject. There is a particular order of events that occur, which allows you to override certain methods to hook in to specific times.

Order of events:

Override the provided methods to hook into the events being listened too.



Public Properties
 PropertyDefined by
 Inheritedlm : LayoutManager
An instance of a layout manager.
CoreClip
Protected Properties
 PropertyDefined by
 Inheritedam : AssetManager
The AssetManager singleton instance.
CoreClip
 Inheritedem : EventManager
The EventManager singleton instance.
CoreClip
 Inheritedfb : FlashLibrary
The FlashLibrary singleton instance.
CoreClip
 Inheritedkm : KeyboardEventManager
The KeyboardEventManager singleton instance.
CoreClip
 Inheritedlgm : LanguageManager
The LanguageManager singleton instance.
CoreClip
 Inheritedml : Model
The Model singleton instance.
CoreClip
 Inheritedpc : PreloadController
A placeholder variable for a PreloadController instance.
CoreClip
 Inheritedsm : ServiceManager
The ServiceManager singleton instance.
CoreClip
 Inheritedsnm : SoundManager
The SoundManager singleton instance.
CoreClip
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
Initialize the BasicView.
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.

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 override 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

Initialize the BasicView.

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.