Packageorg.paazio
Classpublic class Subtitler

Parses and displays the SRT subtitles for given TextField reference.

See also

http://paazio.nanbudo.fi/tutorials/flash/


Public Methods
 MethodDefined 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);
onEnterFrame = function () {
sr.update(stream.time);
};
Subtitler
Constructor detail
Subtitler()constructor
public function Subtitler(srtText:String, textField:TextField)

Usage: var sr:Subtitler = new Subtitler(srt, field);

Parameters
srtText:String — SRT text to be used
 
textField:TextField — The field where the text is shown in the htmlText value.
Method detail
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.