Object对象是一个动态对象
var o:Object=new Object();
o.name=“Jack”;
o.age=20;
o.address=“火星”;
Model中的节点数据默认是Object类型,作数据源必须转换成ObjectProxy类型。
1
public var o:Object=new Object();
internal function init():void{
o.name="zhangsan";
o.age=20;
trace(o.name+":"+o.age);
2
package com.classes
{
public dynamic class DymObject
{
public function DymObject()
{
}
}
}
import com.classes.DymObject;
public var a:DymObject=new DymObject();
a.address="dalian";
trace(a.address);
posted on 2010-03-06 16:28
Ying-er 阅读(381)
评论(0) 编辑 收藏 所属分类:
Flex3.0