On 2/2/16, 3:25 PM, "jude" <flexcapaci...@gmail.com> wrote:

>+1
>
>Is this function available on every class?

FalconJX currently puts it on every class, but the Google Closure Compiler
may optimize it away if it sees you aren't using it.  There is currently
no flag as to whether to generate the structure/function, but I wouldn't
be opposed to someone implementing such a flag.

>
>How would you access it?

Via org.apache.flex.reflection.describeType.   I didn't test whether the
Reflection.swc has other dependencies on FlexJS that wouldn't work when
you are just using js.swc.

>
>MyClass.FLEXJS_CLASS_INFO();

At the low-level, it is myInstanceOfMyClass.FLEXJS_REFLECTION_INFO().  But
you might want to use the Reflection library.  The
org.apache.flex.reflection.describeType returns a lazily evaluated data
structure instead of XML.

>
>Is it removed in the JS but kept in in the AS3?

The structure/functions are kept in JS and thus increase the download size
if you are using org.apache.flex.reflection.describeType in the app.  For
AS3 the Reflection library just calls flash.utils.describeType and
converts the XML into the same data structures.

Hope it works for you,
-Alex

Reply via email to