Packageorg.openvideoplayer.parsers
Classpublic class ParserBase
InheritanceParserBase Inheritance flash.events.EventDispatcher
Subclasses AkamaiBOSSParser, AkamaiMediaRSS, DfxpParser, DynamicSmilParser

Base class for OVP Parsers.



Public Properties
 PropertyDefined By
  isBusy : Boolean
[read-only] Boolean parameter indicating whether the class is already busy loading a file.
ParserBase
  rawData : String
[read-only] The raw data string returned by the request.
ParserBase
  xml : XML
[read-only] The response data as an XML object.
ParserBase
Protected Properties
 PropertyDefined By
  _busy : Boolean
ParserBase
  _rawData : String
ParserBase
  _timeoutTimer : Timer
ParserBase
  _xml : XML
ParserBase
Public Methods
 MethodDefined By
  
ParserBase
  
load(src:String):Boolean
Loads a file and initiates the parsing process.
ParserBase
Events
 Event Summary Defined By
  Dispatched when an error condition has occurred.ParserBase
  Dispatched when the response has been successfully loaded.ParserBase
Property Detail
_busyproperty
protected var _busy:Boolean

_rawDataproperty 
protected var _rawData:String

_timeoutTimerproperty 
protected var _timeoutTimer:Timer

_xmlproperty 
protected var _xml:XML

isBusyproperty 
isBusy:Boolean  [read-only]

Boolean parameter indicating whether the class is already busy loading a file. Since the load is asynchronous, the class will not allow a new load() request until the prior request has ended.


Implementation
    public function get isBusy():Boolean
rawDataproperty 
rawData:String  [read-only]

The raw data string returned by the request. This value will still be populated even if the data is not well-formed, to assist with debugging.


Implementation
    public function get rawData():String
xmlproperty 
xml:XML  [read-only]

The response data as an XML object.


Implementation
    public function get xml():XML
Constructor Detail
ParserBase()Constructor
public function ParserBase()



Method Detail
load()method
public function load(src:String):Boolean

Loads a file and initiates the parsing process.

Parameters

src:String

Returns
Boolean — true if the load is initiated otherwise false if the class is busy

See also

Event Detail
error Event
Event Object Type: org.openvideoplayer.events.OvpEvent

Dispatched when an error condition has occurred. The event provides an error number and a verbose description of each error.

See also

loaded Event  
Event Object Type: org.openvideoplayer.events.OvpEvent

Dispatched when the response has been successfully loaded.

See also