| Package | org.paazio |
| Class | public class Subtitler |
See also
| Method | Defined by | ||
|---|---|---|---|
|
Subtitler(srtText:String, textField:TextField)
Usage:
var sr:Subtitler = new Subtitler(srt, field);
| Subtitler | ||
|
update(timeSec:Number):void
Manually update the text of the designated TextField to match the current subtitle for the given time in seconds.
var sr:Subtitler = new Subtitler(srt, field);
| Subtitler | ||
| Subtitler | () | constructor |
public function Subtitler(srtText:String, textField:TextField)
Usage: var sr:Subtitler = new Subtitler(srt, field);
srtText:String — SRT text to be used
|
|
textField:TextField — The field where the text is shown in the htmlText value.
|
| update | () | method |
public function update(timeSec:Number):void
Manually update the text of the designated TextField to match the current subtitle for the given time in seconds.
var sr:Subtitler = new Subtitler(srt, field);
onEnterFrame = function () {
sr.update(stream.time);
};
Parameters
timeSec:Number — Current location of the playhead in seconds.
|