从加载的SWF中读取AS3中的多维数组

时间:2014-05-10 17:38:30

标签: arrays actionscript-3 flash

我的Main.as中有一个多维数组:

public static var intro:Object = new Object(); 
intro["item1"] = ["3"];
intro["item2"] = ["1"];

我试图从加载的SWF中调用它的内容:

var theParent:Object;
theParent = this.parent.parent.parent as Object;
trace(theParent.intro.item1[0]);

我收到此错误消息:

ReferenceError: Error #1069: Property intro not found on Main and there is no default value.

任何人都知道我做错了什么?谢谢!

0 个答案:

没有答案