Packagecom.whirled.contrib.card.graphics
Classpublic class TimerMovie
InheritanceTimerMovie Inheritance flash.display.Sprite

Class to flip through the frames in a movie, allowing client code to control the duration.



Protected Properties
 PropertyDefined by
  _duration : int
TimerMovie
  _frameCount : int
TimerMovie
  _lastTimer : int
TimerMovie
  _movie : MovieClip
TimerMovie
  _timer : Timer
TimerMovie
Public Methods
 MethodDefined by
  
TimerMovie(embedded:Class)
Creates a new movie.
TimerMovie
  
reset():void
Stop the movie and reset to frame 0
TimerMovie
  
start(duration:Number):void
Reset the movie to frame 0 and play, finishing in the given duration.
TimerMovie
  
stop():void
Stop the movie where it is and leave it.
TimerMovie
Protected Methods
 MethodDefined by
  
timerListener(event:TimerEvent):void
TimerMovie
Protected Constants
 ConstantDefined by
  INTERVAL : Number = 100
[static]
TimerMovie
Property detail
_durationproperty
protected var _duration:int
_frameCountproperty 
protected var _frameCount:int
_lastTimerproperty 
protected var _lastTimer:int
_movieproperty 
protected var _movie:MovieClip
_timerproperty 
protected var _timer:Timer
Constructor detail
TimerMovie()constructor
public function TimerMovie(embedded:Class)

Creates a new movie.

Parameters
embedded:Class — class containing the movie
Method detail
reset()method
public function reset():void

Stop the movie and reset to frame 0

start()method 
public function start(duration:Number):void

Reset the movie to frame 0 and play, finishing in the given duration.

Parameters
duration:Number
stop()method 
public function stop():void

Stop the movie where it is and leave it.

timerListener()method 
protected function timerListener(event:TimerEvent):voidParameters
event:TimerEvent
Constant detail
INTERVALconstant
protected static const INTERVAL:Number = 100