Packagecom.brightcove.fl.advertising.translation
Classpublic class TranslationURLLoader
InheritanceTranslationURLLoader Inheritance Object

Handles a URL request for ad translation. At the moment, it simply uses URLLoader to load the URL, but it may contain translation-specific code in the future.



Public Properties
 PropertyDefined By
  timeElapsed : int
[static] Static method to be able to allow the player code to set mTimeElapsed from the the AdBlock class.
TranslationURLLoader
Public Methods
 MethodDefined By
  
load(pURL:String, pOnLoad:Function, pOnError:Function, pTimeout:int):void
Requests from specified URL with callback functions for load and error.
TranslationURLLoader
Public Constants
 ConstantDefined By
  DEFAULT_TIMEOUT : int = 5000
[static]
TranslationURLLoader
Property Detail
timeElapsedproperty
timeElapsed:int

Static method to be able to allow the player code to set mTimeElapsed from the the AdBlock class. This is currently used for VAST wrappers which consecutive redirects should only use up to the DEFAULT_TIMEOUT to complete. It's needed because the TranslationURLLoader can't reach into the player code.


Implementation
    public static function get timeElapsed():int
    public static function set timeElapsed(value:int):void
Method Detail
load()method
public function load(pURL:String, pOnLoad:Function, pOnError:Function, pTimeout:int):void

Requests from specified URL with callback functions for load and error.

Parameters

pURL:String — The URL from which to request data
 
pOnLoad:Function — The function in which to return the String returned from the server.
 
pOnError:Function — The function in which to return the IOErrorEvent on a failed load.
 
pTimeout:int (default = NaN) — The milliseconds to wait before ignoring the response from the ad server. This value is optional, and the default is 5000.

Constant Detail
DEFAULT_TIMEOUTConstant
public static const DEFAULT_TIMEOUT:int = 5000