Closed drewbourne closed 13 years ago
Available in master.
The regular API is in flux and will be documented for the next release.
The metadata API supports three forms of specifying the namespaces:
as comma-separated values of the fully qualified name of the namespaces
[Mock(namespaces="flash.utils.flash_proxy,mx.core.mx_internal")] public var example1:Example;
as a reference to a public var (or getter) of an Array of namespace:
[Mock(namespaces="example2Namespaces")] public var example2:Example; public var example2Namespaces:Array = [ flash_proxy, mx_internal ];
as a reference to a public function that should return an Array of namespace:
[Mock(namespaces="example2Namespaces")] public var example3:Example; public function example3Namespaces():Array { return [ flash_proxy, mx_internal ]; };
In order to work around the brokenness of the
flash.utils.describeType()
not reportingfinal
on method, properties, variables, require the user to explicitly define which namespaces they would like to proxy.Suggested APIs:
1) Raw API, using namespace references.
2) Metadata API, using fully qualified namespace names.