package
{
import flash.display.MovieClip;
public class HelloWorld extends MovieClip
{
var k:int =10;
var sObj:Object ={};
sObj.myname="俊少";
sObj.myage="23";
sObj.say=function()
{
trace("ss");
}
public function HelloWorld()
{
sObj.say();
}
}
}
这段代码有什么不对吗?它报错说访问属性sObj未定义