Packagecom.adobe.mediacore
Classpublic class ClosedCaptionStyles
InheritanceClosedCaptionStyles Inheritance Object

Class wrapping the closed caption styles.



Public Properties
 PropertyDefined By
  backgroundColor : int
[read-only] The index of the background color used for closed captions rendering.
ClosedCaptionStyles
  backgroundOpacity : String
[read-only] The background opacity used for closed captions rendering.
ClosedCaptionStyles
  edgeColor : int
[read-only] The index of the edge color used for closed captions rendering.
ClosedCaptionStyles
  fillColor : int
[read-only] The index of the fill color used for closed captions rendering.
ClosedCaptionStyles
  fillOpacity : String
[read-only] The fill opacity used for closed captions rendering.
ClosedCaptionStyles
  font : int
[read-only] The index of the font used for closed captions rendering.
ClosedCaptionStyles
  fontColor : int
[read-only] The index of the font color used for closed captions rendering.
ClosedCaptionStyles
  fontEdge : int
[read-only] The index of the font edge used for closed captions rendering.
ClosedCaptionStyles
  fontOpacity : String
[read-only] The font opacity used for closed captions rendering.
ClosedCaptionStyles
  size : int
[read-only] The index of the font size used for closed captions rendering.
ClosedCaptionStyles
Public Methods
 MethodDefined By
  
ClosedCaptionStyles(font:Number, fontColor:Number, edgeColor:Number, fontEdge:Number, backgroundColor:Number, fillColor:Number, size:Number, fontOpacity:String, backgroundOpacity:String, fillOpacity:String)
Default constructor.
ClosedCaptionStyles
  
Checks if two closed caption styles are equal.
ClosedCaptionStyles
Public Constants
 ConstantDefined By
  COLOR : Array
[static] 23 font color choices
ClosedCaptionStyles
  FONT : Array
[static] 8 font choices
ClosedCaptionStyles
  FONT_EDGE : Array
[static] 7 font edge choices
ClosedCaptionStyles
  FONT_SIZE : Array
[static] 4 size values
ClosedCaptionStyles
Property Detail
backgroundColorproperty
backgroundColor:int  [read-only]

The index of the background color used for closed captions rendering. The index must be within the bounds of the public COLOR array.


Implementation
    public function get backgroundColor():int
backgroundOpacityproperty 
backgroundOpacity:String  [read-only]

The background opacity used for closed captions rendering. The value must be "default" or a string which can be converted to a number between 0 and 100.


Implementation
    public function get backgroundOpacity():String
edgeColorproperty 
edgeColor:int  [read-only]

The index of the edge color used for closed captions rendering. The index must be within the bounds of the public COLOR array.


Implementation
    public function get edgeColor():int
fillColorproperty 
fillColor:int  [read-only]

The index of the fill color used for closed captions rendering. The index must be within the bounds of the public COLOR array.


Implementation
    public function get fillColor():int
fillOpacityproperty 
fillOpacity:String  [read-only]

The fill opacity used for closed captions rendering. The value must be "default" or a string which can be converted to a number between 0 and 100.


Implementation
    public function get fillOpacity():String
fontproperty 
font:int  [read-only]

The index of the font used for closed captions rendering. The index must be within the bounds of the public FONT array.


Implementation
    public function get font():int
fontColorproperty 
fontColor:int  [read-only]

The index of the font color used for closed captions rendering. The index must be within the bounds of the public COLOR array.


Implementation
    public function get fontColor():int
fontEdgeproperty 
fontEdge:int  [read-only]

The index of the font edge used for closed captions rendering. The index must be within the bounds of the public FONT_EDGE array.


Implementation
    public function get fontEdge():int
fontOpacityproperty 
fontOpacity:String  [read-only]

The font opacity used for closed captions rendering. The value must be "default" or a string which can be converted to a number between 0 and 100.


Implementation
    public function get fontOpacity():String
sizeproperty 
size:int  [read-only]

The index of the font size used for closed captions rendering. The index must be within the bounds of the public FONT_SIZE array.


Implementation
    public function get size():int
Constructor Detail
ClosedCaptionStyles()Constructor
public function ClosedCaptionStyles(font:Number, fontColor:Number, edgeColor:Number, fontEdge:Number, backgroundColor:Number, fillColor:Number, size:Number, fontOpacity:String, backgroundOpacity:String, fillOpacity:String)

Default constructor.

Parameters
font:Number — font style expressed as an index in FONT array
 
fontColor:Number — font color style expressed as an index in COLOR array
 
edgeColor:Number — edge color style expressed as an index in COLOR array
 
fontEdge:Number — font edge style expressed as an index in FONT_EDGE array
 
backgroundColor:Number — font background color style expressed as an index in COLOR array
 
fillColor:Number — fill color style expressed as an index in COLOR array
 
size:Number — font size style expressed as an index in FONT_SIZE array
 
fontOpacity:String — font opacity style expressed as an String that is either 'default', or can be converted to a number from 0-100
 
backgroundOpacity:String — background opacity style expressed as an String that is either 'default', or can be converted to a number from 0-100
 
fillOpacity:String — fill opacity style expressed as an String that is either 'default', or can be converted to a number from 0-100
Method Detail
isEqual()method
public function isEqual(other:ClosedCaptionStyles):Boolean

Checks if two closed caption styles are equal.

Parameters

other:ClosedCaptionStyles — the closed caption style to be compared.

Returns
Boolean — true if are equal, false otherwise.
Constant Detail
COLORConstant
public static const COLOR:Array

23 font color choices

FONTConstant 
public static const FONT:Array

8 font choices

FONT_EDGEConstant 
public static const FONT_EDGE:Array

7 font edge choices

FONT_SIZEConstant 
public static const FONT_SIZE:Array

4 size values