DoubleClick Studio AS3 API Reference

class com.google.ads.studio.utils.PrimitiveUtils

Utilities for operating on Flash primitives.

Static Methods

Expand
PrimitiveUtils.getUrlProtocol(url:String) : String

Retrieves the protocols of URLs. Format is //, http://, or https://.

Expand
PrimitiveUtils.lessThanByMinimumDifference(small:Number, big:Number, difference:Number=0) : Boolean

Checks if one number is less than another by a minimum difference.

Expand
PrimitiveUtils.notNullNorEmpty(value:Object) : Boolean

Returns if the object is not null nor empty.

Expand
PrimitiveUtils.parseStringToMap(toParse:String, pairDivider:String=&, elemDivider:String==) : Object

Parses an object map out of a string.

Expand
PrimitiveUtils.replaceUrlProtocol(url:String, protocol:String) : String

Replaces the protocols of URLs.

Expand
PrimitiveUtils.roundNumber(number:Number, decimalPlace:Number) : Number

Rounds a number to a desired decimal place.

Expand
PrimitiveUtils.trim(string:String) : String

Removes the whitespace from the ends of a string and returns the result.

Expand
PrimitiveUtils.unescapeAsciiString(string:String) : String

Unescapes ascii characters in the form \x3c. This type of escaping is done by the Google SourceCodeEscapers.

Back to top

  1. com.google.ads.studio
    1. AssetLoader
    2. ContextualDiscovery
    3. F2fEnabler
    4. FullScreenButton
    5. HtmlEnabler
    6. ProxyEnabler
    7. VpaidEnabler
  1. com.google.ads.studio.configurable
    1. Configurable
  1. com.google.ads.studio.display
    1. StudioLoader
  1. com.google.ads.studio.events
    1. StudioEvent
    2. StudioVideoEvent
  1. com.google.ads.studio.expanding
    1. Expanding
  1. com.google.ads.studio.localconnect
    1. LocalConnectWrapper
  1. com.google.ads.studio.video
    1. ConfigurableVideoPlayer
    2. EnhancedVideoController
    3. PlayPauseButton
    4. Playlist
    5. Scrubber
    6. SoundToggleButton
    7. VideoController
    8. VideoEntry
    9. VideoPlayer
    10. VideoPlayerAdvanced
  1. com.google.ads.studio.vpaid
    1. VpaidTimer