Options
All
  • Public
  • Public/Protected
  • All
Menu

Class URLVariables

The URLVariables class allows you to transfer variables between an application and a server. Use URLVariables objects with methods of the URLLoader class, with the data property of the URLRequest class, and with flash.net package functions.

Hierarchy

  • Object
    • URLVariables

Index

Constructors

constructor

  • Creates a new URLVariables object. You pass URLVariables objects to the data property of URLRequest objects.

    If you call the URLVariables constructor with a string, the decode() method is automatically called to convert the string to properties of the URLVariables object.

    Parameters

    • Optional source: string

      A URL-encoded string containing name/value pairs.

    Returns URLVariables

Properties

Static Object

Object: ObjectConstructor

Provides functionality common to all JavaScript objects.

Static constructor

constructor: Function

The initial value of Object.prototype.constructor is the standard built-in Object constructor.

Methods

decode

  • decode(source: string): void
  • Converts the variable string to properties of the specified URLVariables object.

    This method is used internally by the URLVariables events. Most users do not need to call this method directly.

    throws

    Error The source parameter must be a URL-encoded query string containing name/value pairs.

    Parameters

    • source: string

      A URL-encoded query string containing name/value pairs.

    Returns void

toString

  • toString(): string
  • Returns a string containing all enumerable variables, in the MIME content encoding application/x-www-form-urlencoded.

    Returns string

    A URL-encoded string containing name/value pairs.

Static getOwnPropertyDescriptors

  • getOwnPropertyDescriptors(object: any): PropertyDescriptorMap
  • Parameters

    • object: any

    Returns PropertyDescriptorMap

Static hasOwnProperty

  • hasOwnProperty(v: string): boolean
  • Determines whether an object has a property with the specified name.

    Parameters

    • v: string

      A property name.

    Returns boolean

Static isPrototypeOf

  • isPrototypeOf(v: Object): boolean
  • Determines whether an object exists in another object's prototype chain.

    Parameters

    • v: Object

      Another object whose prototype chain is to be checked.

    Returns boolean

Static propertyIsEnumerable

  • propertyIsEnumerable(v: string): boolean
  • Determines whether a specified property is enumerable.

    Parameters

    • v: string

      A property name.

    Returns boolean

Static toLocaleString

  • toLocaleString(): string
  • Returns a date converted to a string using the current locale.

    Returns string

Static toString

  • toString(): string
  • Returns a string representation of an object.

    Returns string

Static valueOf

  • valueOf(): Object
  • Returns the primitive value of the specified object.

    Returns Object

Generated using TypeDoc