问题症状:
Error: Error #1023: 发生堆栈上溢。
at Object$/Object::_hasOwnProperty()
at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()
问题出现是因为将使用了Proxy的swf文件加载到了一个新的程序域中
When you load a swf file to a new ApplicationDomain, do not use Proxy in that swf file.
即
var swf:Loader = new Loader();
var context:LoaderContext = new LoaderContext();
context.applicationDomain = new ApplicationDomain();//加载到单独程序域中会出现该问题
//context.applicationDomain = ApplicationDomain.currentDomain;//不会出现该问题
swf.loadBytes(bytes, context);
当然了,到目前为止这个bug还没有解决
http://ticore.blogspot.com/2008/05/flex-remoteobject-applicationdomain-bug.html
上说Flash Player 9.0.115.0 Flash Player 9.0.124.0 甚至是Flash Player 10.0.1.218也依然存在该bug
不过不做深的应用一般是不会遇到这样的问题