DOMCurvePlayerExtended
From Virtual World Web Wiki
Revision as of 00:44, 23 October 2016 by Spark5 (Talk | contribs) (Documentation for the DOMCurvePlayerExtended class)
Represents a DOMCurvePlayer in JavaScript
- Inherits class: DOMObjectExtended
- This is a JavaScript visible object
Remarks [edit]
Properties
- long JumpKeyframeID {get; set;} // Via attribution [[DOMCurvePlayer]]
- bool Loop {get; set;} // Via attribution [[DOMCurvePlayer]]
- DOMCurveOperation Operation {get; set;} // Via attribution [[DOMCurvePlayer]]
- bool Reverse {get; set;} // Via attribution [[DOMCurvePlayer]]
- string Selector {get; set;} // Via attribution [[DOMCurvePlayer]]
- int StepCount {get; set;} // Via attribution [[DOMCurvePlayer]]
- Single Time {get; set;} // Via attribution [[DOMCurvePlayer]]
Events
- OnKeyframeCrossed(EventHandler<FlexibleEventArgs>)
- Fires when this keyframe is crossed by a player
Methods
- void JumpToKeyframe(DOMCurveKeyframeExtended keyframe)
- Sets the time index of the player to that of the specified keyframe, fires the crossed events for the keyframe and player, and stops.
- void Reset()
- Stops the player from running and resets it to time index 0.0 by setting the Operation property to "Reset"
- void Run()
- Starts the player running by setting the Operation property to "Run"
- void Step(int count)
- Increments the step count by count and sets the Operation property to "Step". The player will run until it consumes count' steps
- void Stop()
- Stops the player from running by setting the Operation property to "Stop"