Packagenet.guttershark.display
Classpublic class BaseView
InheritanceBaseView Inheritance CoreClip Inheritance flash.display.MovieClip
SubclassesBaseFormView

The BaseView class is the base for any views, and provides common hooks and properties.



Public Properties
 PropertyDefined by
  controller : *
A controller for this view.
BaseView
Protected Properties
 PropertyDefined by
 Inheritedam : AssetManager
The AssetManager singleton instance.
CoreClip
 Inheritedast : Assertions
The Assertions singleton instance.
CoreClip
 Inheritedcmm : ContextMenuManager
An instance of the context menu manager.
CoreClip
 Inheritedem : EventManager
The EventManager singleton instance.
CoreClip
 Inheritedkm : KeyManager
The KeyboardEventManager singleton instance.
CoreClip
 Inheritedlgm : LanguageManager
The LanguageManager singleton instance.
CoreClip
 Inheritedlm : LayoutManager
An instance of a layout manager.
CoreClip
 Inheritedml : Model
The Model singleton instance.
CoreClip
 Inheritedpc : PreloadController
A placeholder variable for a PreloadController instance - you should initialize this yourself.
CoreClip
 Inheritedsm : ServiceManager
The ServiceManager singleton instance.
CoreClip
 Inheritedsnm : SoundManager
The SoundManager singleton instance.
CoreClip
 Inheritedutils : Utilities
The Utilities singleton instance.
CoreClip
Public Methods
 MethodDefined by
  
Constructor for BaseView instances.
BaseView
  
dispose():void
Override this method and write your own dispose logic.
BaseView
  
hide():void
Hide this view, set's the visible property to false.
BaseView
  
show():void
Show this view, set's the visible property to true.
BaseView
Protected Methods
 MethodDefined by
  
Override this method, and use the event manager to add event handlers on your objects.
BaseView
  
init():void
Initialize this view - called from the constructor.
BaseView
  
onActivate():void
Override this method to hook into the activate event.
BaseView
  
Override this method to hook into the added to stage event.
BaseView
  
onDeactive():void
Override this method to hook into the deactivate event.
BaseView
  
onMouseLeave():void
A method you can override to hook into the mouse leve event.
BaseView
  
Override this method to hook into the removed from stage event.
BaseView
  
onResize():void
Override this method to hook into resize events from the stage.
BaseView
  
Override this method, and remove events from objects that were registered with the event manager.
BaseView
Property detail
controllerproperty
public var controller:*

A controller for this view.

Constructor detail
BaseView()constructor
public function BaseView()

Constructor for BaseView instances.

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

Override this method, and use the event manager to add event handlers on your objects.

dispose()method 
public override function dispose():void

Override this method and write your own dispose logic.

hide()method 
public function hide():void

Hide this view, set's the visible property to false.

init()method 
protected function init():void

Initialize this view - called from the constructor.

onActivate()method 
protected function onActivate():void

Override this method to hook into the activate event.

onAddedToStage()method 
protected function onAddedToStage():void

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

This method calls addEventHandlers() and onResize().

onDeactive()method 
protected function onDeactive():void

Override this method to hook into the deactivate event.

onMouseLeave()method 
protected function onMouseLeave():void

A method you can override to hook into the mouse leve event.

onRemovedFromStage()method 
protected function onRemovedFromStage():void

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

This method also calls removeEventHandlers().

onResize()method 
protected function onResize():void

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

removeEventHandlers()method 
protected function removeEventHandlers():void

Override this method, and remove events from objects that were registered with the event manager.

show()method 
public function show():void

Show this view, set's the visible property to true.