Packagenet.guttershark.ui.views
Classpublic class AnimatedView
InheritanceAnimatedView Inheritance BasicView Inheritance flash.display.MovieClip
SubclassesInOutView

The AnimatedView class provides structure to a class where views need to have animated timelines, rather than all code tweened timelines.

You would extend your movie clip with this class, and on the timeline in flash, make simple method calls that have the code implemented in this class.



Public Properties
 PropertyDefined by
  autoStopOnLastFrame : Boolean
[write-only] Auto stop on the last frame of this movie clip.
AnimatedView
  watchForLastFrameAndCallComplete : Boolean
Get the value of the watch for end frame and call complete flag.
AnimatedView
Public Methods
 MethodDefined by
  
AnimatedView
  
dispose():void
Dispose of internal variables and event listeners.
AnimatedView
 Inherited
hide():void
Stub method for hiding this view.
BasicView
  
play():void
Overrides the play method to add some logic for reverse playing and the animationStart method.
AnimatedView
  
playReverse():void
Play this clip in reverse.
AnimatedView
 Inherited
Remove all children from this instance.
BasicView
 Inherited
Stub method you should override to re-arrange children on the display list.
BasicView
 Inherited
show():void
Stub method for showing this view.
BasicView
Protected Methods
 MethodDefined by
 Inherited
activated():void
Override this method to hook into when the operating system gains focus on the flash movie.
BasicView
 Inherited
addedToStage():void
Override this method to hook into the added to stage event.
BasicView
 Inherited
addListeners():void
The addListeners method is a stub method you should override and use for adding event listeners onto children objects.
BasicView
  
Stub method used for naming convention.
AnimatedView
  
Stub method used for naming convention.
AnimatedView
 Inherited
cleanup():void
The cleanup method is called after the clip has been removed from the display list.
BasicView
 Inherited
deactivated():void
Override this method to hook into when the operating system loses focus on the flash movie.
BasicView
 Inherited
init():void
The init method is the final method after initial setup stage listeners and other logic is complete.
BasicView
 Inherited
Override this method to hook into the removed from stage event.
BasicView
 Inherited
The removeListeners method is a stub method you should override and use for removing event listeners from children objects.
BasicView
 Inherited
resized():void
Override this method to hook into resize events from the stage.
BasicView
  
Stub method used for naming convention.
AnimatedView
Property detail
autoStopOnLastFrameproperty
autoStopOnLastFrame:Boolean  [write-only]

Auto stop on the last frame of this movie clip.

Implementation
    public function set autoStopOnLastFrame(value:Boolean):void
watchForLastFrameAndCallCompleteproperty 
watchForLastFrameAndCallComplete:Boolean  [read-write]

Get the value of the watch for end frame and call complete flag.

Implementation
    public function get watchForLastFrameAndCallComplete():Boolean
    public function set watchForLastFrameAndCallComplete(value:Boolean):void
Constructor detail
AnimatedView()constructor
public function AnimatedView()
Method detail
animationComplete()method
protected function animationComplete():void

Stub method used for naming convention. Override this method when something from the timeline needs to execute something on it's animation completion / last frame.

Overriding this method allows you to place your logic here, instead of on the timeline. Then in your timeline, you make a call to this.animationComplete();

Extend a movie clip from this class, then on the timeline you can place this.animationComplete(); method calls anywhere in the timeline to execute this method.

animationStart()method 
protected function animationStart():void

Stub method used for naming convention. Override this method when something from the timeline needs to happen right when the timeline starts playing.

Extend a movie clip from this class, then on the timeline you can place this.animationStart(); method calls anywhere in the timeline to execute this method.

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

Dispose of internal variables and event listeners.

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

Overrides the play method to add some logic for reverse playing and the animationStart method.

playReverse()method 
public function playReverse():void

Play this clip in reverse.

updateChildrenReferences()method 
protected function updateChildrenReferences():void

Stub method used for naming convention. Use this method as a mechanism for updating children references in the display list.

The reason you would need to update references is when there are clips that animate on the timeline, but don't always have an instance name associated with it, so on some frames you need to update the references so you can control them.