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.
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
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.
|
public static const DEFAULT_TIMEOUT:int = 5000
Fri May 20 2016, 05:19 PM -04:00