I might play around with adding a Class type to js.swc, but not for another week or so.
In the meantime, we have special asdoc 'directives' you can use. /** * @flexjsignorecoercion Class */ Public function MyFunction() { var c2:Class = this["constructor"] as Class; } Should then result in: var /** @type {Object} */ c2 = this["constructor"]; These 'directives' are a bit of a hack, but allow us to suppress calls to "as" that won't work. -Alex On 3/31/16, 6:48 PM, "Nimai" <ni...@beecavegames.com> wrote: >Any support for the "constructor" property for Objects in FalconJX? >http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Object. >html#constructor > >Right now the following translation occurs: >[AS3] > var c1:Class = Object(this).constructor as Class; > >[JS] > var /** @type {Object} */ c1 = >org.apache.flex.utils.Language.as(Object(this).constructor, Class); > var /** @type {Object} */ c2 = >org.apache.flex.utils.Language.as(this["constructor"], Class); > >And this happens at runtime: > Uncaught ReferenceError: Class is not defined > > > > > >-- >View this message in context: >http://apache-flex-development.2333347.n4.nabble.com/The-Class-type-tp5209 >6.html >Sent from the Apache Flex Development mailing list archive at Nabble.com.