1
我想创建一个完整的(和真实的)2维数组。我可以扩展代理类的子类吗?
为了使用最多的Adobe代码,我想使用ListCollectionView,它可以管理排序和过滤器。但要使用第二个维度,我需要重写getProperty方法,如下面的代码。
包 import flash.utils.flash_proxy; import mx.collections.ListCollectionView;
public class SubClass extends ListCollectionView /* extends Proxy */
{
override flash_proxy function getProperty(name : *) : *
{
...
}
override flash_proxy function setProperty(name : *, value : *) : void
{
...
}
}
}
此代码不能正常工作。 Flash Builder 4的对我说:
1004 Namespace was not found or is not a compile-time constant.
如果任何人有一个解决方案或线索......
啊....但无论是进口和使用的命名空间需要在类声明之前*有意义我猜想,namespcae需要可见才能声明该方法。 – verveguy 2010-12-10 01:32:28