TweenFLV
| Kind of class: | class |
|---|---|
| Inherits from: | BasicTweenFLV < AbstractTween |
| Implements: | |
| Version: | 1.0 |
| Author: | Francis Bourre |
| Classpath: | com.bourre.transitions.TweenFLV |
| File last modified: | Wednesday, 31 October 2007, 07:35:30 |
TweenFLV extends BasicTweenFLV class implementingPixlib Event API.
Can use these methods to control Tween event :
Example
var _video : VideoDisplay = VideoDisplay.buildVideoDisplay( video ); var t : TweenFLV = new TweenFLV(_video, 0, mc, '_alpha', 0, 2000, 100); t.start(); _video.load( "video.flv" );
Summary
Constructor
Class properties
Instance properties
Class methods
Class methods inherited from AbstractTween
Instance methods
Instance methods inherited from BasicTweenFLV
Instance methods inherited from AbstractTween
Event handlers
Event handlers inherited from BasicTweenFLV
Event handlers inherited from AbstractTween
Constructor
TweenFLV
function TweenFLV (
vd:VideoDisplay,
offset:Number,
nEnd:Number,
nMs:Number,
nStart:Number,
fE:Function)
Constructs a new
TweenFLV instance.Example
var _video : VideoDisplay = VideoDisplay.buildVideoDisplay( video ); var t : TweenFLV = new TweenFLV(_video, 0, mc, '_alpha', 0, 2000, 100); t.start(); _video.load( "video.flv" );
Parameters:
vd :
VideoDisplay listened.
offset:
shift with starting.
oT :
Object which the Tween targets.
sP :
Setter (method or property).
nE :
Ending value of property.
nRate :
Length of time of the motion in milliseconds.
nS :
Starting value of property (optional).
fE :
Easing function (optional).
Class properties
onMotionChangedEVENT
static onMotionChangedEVENT:TweenEventType = TweenEventType.onMotionChangedEVENT
(read,write)
Broadcasted to listeners when property value is updated.
Component metadata:
| Event | onMotionChanged |
|---|
onMotionFinishedEVENT
static onMotionFinishedEVENT:TweenEventType = TweenEventType.onMotionFinishedEVENT
(read,write)
Broadcasted to listeners when tween is finished.
Component metadata:
| Event | onMotionFinished |
|---|
onStartEVENT
static onStartEVENT:TweenEventType = TweenEventType.onStartEVENT
(read,write)
Broadcasted to listeners when tween starts.
Component metadata:
| Event | onStart |
|---|
onStopEVENT
static onStopEVENT:TweenEventType = TweenEventType.onStopEVENT
(read,write)
Broadcasted to listeners when tween stops.
Component metadata:
| Event | onStop |
|---|
Instance methods
addEventListener
function addEventListener (
e:TweenEventType) : Void
Adds listener for specifical event.
Example
t.addEventListener( TweenFLV.onMotionFinishedEVENT, myListener );
Parameters:
t :
Name of the Event.
oL:
Listener object.
Specified by:
addListener
function addListener (
oL:ITweenListener) : Void
Adds listener for receiving all events.
Example
t.addListener(myListener);Parameters:
oL:
Listener object which implements ITweenListener interface.
Specified by:
execute
function execute (
e:IEvent) : Void
Starts tweening
com.bourre.commands.Command polymorphism.
See also:
Overrides:
Specified by:
removeEventListener
function removeEventListener (
e:TweenEventType) : Void
Removes listener for specifical event.
Example
t.removeEventListener( TweenFLV.onMotionFinishedEVENT, myListener );
Parameters:
t :
Name of the Event.
oL:
Listener object.
Specified by:
removeListener
function removeListener (
oL:ITweenListener) : Void
Removes listener for receiving all events.
Example
t.removeListener(myListener);Parameters:
oL:
Listener object which implements ITweenListener interface.
Specified by:
start
function start (
) : Void
Starts tweening.
AbstractTween.start overridding
Overrides:
Specified by:
toString
function toString (
) : String
Returns the string representation of this instance.
Returns:
the string representation of this instance
Overrides:
Event handlers
onMotionFinished
function onMotionFinished (
) : Void
Implemented to add tween as listener to another tween.