Packagevegas.media.subtitles
Classpublic class Caption
InheritanceCaption Inheritance SimpleValueObject Inheritance Object

The basic caption entry.



Public Properties
 PropertyDefined By
  duration : Number
[read-only] Indicates the duration of the caption.
Caption
  end : Number
The end time of the caption.
Caption
 Inheritedid : *
Indicates the id of this ValueObject.
SimpleValueObject
  start : Number
The start time of the caption.
Caption
  text : String
The text of the caption.
Caption
Public Methods
 MethodDefined By
  
Caption(init:Object = null)
Creates a new Caption instance.
Caption
 Inherited
equals(o:*):Boolean
Compares the specified object with this object for equality.
SimpleValueObject
 Inherited
formatToString(className:String = null, ... args):String
A utility function for implementing the toString() method.
SimpleValueObject
  
toObject():Object
[override] Returns the Object representation of this object.
Caption
 Inherited
toSource(indent:int = 0):String
Returns the source code string representation of the object.
SimpleValueObject
  
toString():String
[override] Returns the String representation of this object.
Caption
Property Detail
durationproperty
duration:Number  [read-only]

Indicates the duration of the caption.


Implementation
    public function get duration():Number
endproperty 
public var end:Number

The end time of the caption.

startproperty 
public var start:Number

The start time of the caption.

textproperty 
public var text:String

The text of the caption.

Constructor Detail
Caption()Constructor
public function Caption(init:Object = null)

Creates a new Caption instance.

Parameters
init:Object (default = null) — A generic object containing properties with which to populate the newly instance. If this argument is null, it is ignored.
Method Detail
toObject()method
override public function toObject():Object

Returns the Object representation of this object.

Returns
Object — the Object representation of this object.
toString()method 
override public function toString():String

Returns the String representation of this object.

Returns
String — the String representation of this object.