window.runtime 属性window.runtime.flash.net.URLVariables
继承URLVariables Inheritance Object

使用 URLVariables 类可以在应用程序和服务器之间传输变量。将 URLVariables 对象与 URLLoader 类的方法、URLRequest 类的 data 属性和 flash.net 包函数一起使用。

另请参见

URLLoader
Working with external data


属性
 属性定义方
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
 Inheritedprototype : Object
[静态] 对类或函数对象的原型对象的引用。
Object
公共方法
 方法定义方
  
URLVariables(source:String = null)
创建一个新的 URLVariables 对象。
URLVariables
  
decode(source:String):void
将变量字符串转换为指定 URLVariables 对象的属性。
URLVariables
 Inherited
hasOwnProperty(name:String):Boolean
指示对象是否已经定义了指定的属性。
Object
 Inherited
isPrototypeOf(theClass:Object):Boolean
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
propertyIsEnumerable(name:String):Boolean
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
设置循环操作动态属性的可用性。
Object
  
toString():String
以 MIME 内容编码格式 application/x-www-form-urlencoded 返回包含所有可枚举变量的字符串。
URLVariables
 Inherited
valueOf():Object
返回指定对象的原始值。
Object
构造函数详细信息
URLVariables()构造函数
function URLVariables(source:String = null)

创建一个新的 URLVariables 对象。将 URLVariables 对象传递给 URLRequest 对象的 data 属性。

如果使用字符串来调用 URLVariables 构造函数,将自动调用 decode() 方法,以将该字符串转换成 URLVariables 对象的属性。

参数
source:String (default = null) — 包含名称/值对的 URL 编码的字符串。
方法详细信息
decode()方法
function decode(source:String):void

将变量字符串转换为指定 URLVariables 对象的属性。

该方法供 URLVariables 事件内部使用。绝大多数用户无需直接调用此方法。

参数

source:String — 包含名称/值对的 URL 编码的查询字符串。


引发
Error — 源参数必须是包含名称/值对的 URL 编码的查询字符串。

另请参见

toString()方法 
function toString():String

以 MIME 内容编码格式 application/x-www-form-urlencoded 返回包含所有可枚举变量的字符串。

返回
String — 包含名称/值对的 URL 编码的字符串。