Closed GoogleCodeExporter closed 9 years ago
When I continue research this Issue,I found :
var describe:XML = flash.utils.describeType(target);
var isDynamic:Boolean = (describe.@isDynamic as String) == "true";
describe.@isDynamic is XMLList , but not "Boolean".
Original comment by 601...@qq.com
on 15 Nov 2010 at 4:14
Hi,
I've briefly investigated this issue and have found that describeType doesn't
always return reliable data. For instance, one of the test classes is called
'ComplexClass' and its class declaration look like this:
public class ComplexClass
Yet, when I trace the unit tests I see this XML return by describeType():
<type name="org.as3commons.reflect.testclasses::ComplexClass" base="Class"
isDynamic="true" isFinal="true" isStatic="true">
That seems to be all wrong, right? Maybe this is a problem with the flashplayer
I'm using? I have no idea what's going on here, but it seems to be all wrong.
Original comment by ihatelivelyids
on 25 Nov 2010 at 2:05
I'm changing the status of this bug to 'Won't fix' since the data retrieved
from the native describeType() is faulty. Unfortunately there's nothing we can
do about that.
The as3commons-reflect library has however been augmented with the new
describeTypeJSON support. It seems that this native method does yield the
correct data. This will only be available in flashplayer 10.1 and higher
though. (Since from that versionb the describeTypeJSON method was exposed)
Original comment by ihatelivelyids
on 11 Jan 2011 at 12:02
Original issue reported on code.google.com by
601...@qq.com
on 15 Nov 2010 at 3:37