Or check out these as3-reflect classes: https://code.google.com/p/as3-commons/source/browse/trunk/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/JSONTypeProvider.as and https://code.google.com/p/as3-commons/source/browse/trunk/as3-commons-lang/src/main/actionscript/org/as3commons/lang/typedescription/JSONTypeDescription.as Both being used to create the as3-reflect types...
Roland On 5 November 2013 19:05, Maurice Amsellem <[email protected]>wrote: > I confirm, it's avmplus.describeTypeJSON() > > This is a typical use: > > typeInfo = avmplus. describeTypeJSON (cls, avmplus.INCLUDE_BASES > | avmplus.INCLUDE_INTERFACES > | avmplus.INCLUDE_VARIABLES > | avmplus.INCLUDE_ACCESSORS > | avmplus.INCLUDE_METHODS > | avmplus.INCLUDE_METADATA > | avmplus.INCLUDE_CONSTRUCTOR > |avmplus.INCLUDE_TRAITS); > > And it will return an object with dynamic properties... > > Maurice > > -----Message d'origine----- > De : Alex Harui [mailto:[email protected]] > Envoyé : mardi 5 novembre 2013 19:03 > À : [email protected] > Objet : Re: [FLEXJS] describeType > > Told you it was under-documented ;-). The secret handshake is apparently > to ignore autocomplete and use google. Looks like it is > avmplus.describeTypeJSON(). I've not used it, but there was a recent > thread about it. > > On 11/5/13 9:54 AM, "Erik de Bruin" <[email protected]> wrote: > > >My FlashBuilder's autocomplete is not aware of such a method. Any > >secret handshakes I should be aware of to activate it? > > > >EdB > > > > > > > >On Tue, Nov 5, 2013 at 6:32 PM, Alex Harui <[email protected]> wrote: > >> Apparently, there is a under-documented describeTypeJSON which I > >>think the application frameworks are using to get any and all > >>metadata on a class and its methods because it is much faster than > >>regular describeType. > >> Maybe we should do that. > >> > >> -Alex > >> > >> On 11/5/13 5:42 AM, "Erik de Bruin" <[email protected]> wrote: > >> > >>>Hi, > >>> > >>>flash.utils.describeType has an XML return type. JavaScript doesn't > >>>have anything like that and I'm sure we don't want to simulate it for > >>>the purpose of this exercise. > >>> > >>>I suggest we create a utility class > >>>"org.apache.flex.utils.DescribeType" and put some static methods on > >>>it that allow us to get tailored introspection... Maybe start with > >>>'DescribeType.getMetaData(value:*)'? > >>> > >>>What metadata are you thinking of, specifically? > >>> > >>>EdB > >>> > >>> > >>> > >>>-- > >>>Ix Multimedia Software > >>> > >>>Jan Luykenstraat 27 > >>>3521 VB Utrecht > >>> > >>>T. 06-51952295 > >>>I. www.ixsoftware.nl > >> > > > > > > > >-- > >Ix Multimedia Software > > > >Jan Luykenstraat 27 > >3521 VB Utrecht > > > >T. 06-51952295 > >I. www.ixsoftware.nl > > -- regards, Roland -- Roland Zwaga Senior Consultant | Stack & Heap BVBA +32 (0)486 16 12 62 | [email protected] | http://www.stackandheap.com http://randoriframework.com http://zwaga.blogspot.com http://www.springactionscript.org http://www.as3commons.org
