An ActionScript 3 library for IAB specs. Includes the following features: VAST 2.0 Spec (http://www.iab.net/vast) for parsing VAST responses. VPAID Spec (http://www.iab.net/vpaid) for creating VPAID-compliant ads.
When a wrapper ad is gotten back, it doesn't always have the node.Duration for the Inline element. Thus, I had to change the Time constructor to something like this:
public function Time(value:String)
{
var parts:Array = value.split(":");
if (parts.length > 1) {
hours = uint(parts[0]);
minutes = uint(parts[1]);
parts = parts[2].split(".");
seconds = uint(parts[0]);
milliseconds = uint(parts[1]);
}
}
public var hours:uint = 0;
public var minutes:uint = 0;
public var seconds:uint = 0;
public var milliseconds:uint = 0;