Re: Odd undefined property via reference to static type compilation error

2012-07-09 Thread Jeff Dyer
Yes, that is because strict mode punts on index expressions, because it doesn't in general know the string value of the index. That'll be workaround #3. Jeff On Mon, Jul 9, 2012 at 2:53 PM, Om wrote: > On Mon, Jul 9, 2012 at 2:40 PM, Jeff Dyer wrote: > > > This is probably a compiler bug, if n

Re: Odd undefined property via reference to static type compilation error

2012-07-09 Thread Om
On Mon, Jul 9, 2012 at 2:40 PM, Jeff Dyer wrote: > This is probably a compiler bug, if not a language bug. Instance > initializers were ill defined in AS3. In the draft ES4 spec we pinned them > down to be scoped to the class static scope, so references to 'this' or > instance variables would not

Re: Odd undefined property via reference to static type compilation error

2012-07-09 Thread Jeff Dyer
This is probably a compiler bug, if not a language bug. Instance initializers were ill defined in AS3. In the draft ES4 spec we pinned them down to be scoped to the class static scope, so references to 'this' or instance variables would not be resolved in instance initializers. That said, AS3 did a

Re: Odd undefined property via reference to static type compilation error

2012-07-09 Thread Harbs
private String s2 =s3; > >private static String s3 = "jpm"; >private String s2 = this.s3; > > Thanks, > Ashish > > > -Original Message- > From: omup...@gmail.com [mailto:omup...@gmail.com] On Behalf Of Om > Sent: Monday, July 09, 2012

RE: Odd undefined property via reference to static type compilation error

2012-07-09 Thread Desai, Ashish S
lf Of Om Sent: Monday, July 09, 2012 3:05 PM To: flex-dev@incubator.apache.org Subject: Re: Odd undefined property via reference to static type compilation error FWIW, I ran the compiled code through a decompiler and this is how the same code gets converted as: *Source*: package { public cla

Re: Odd undefined property via reference to static type compilation error

2012-07-09 Thread Om
FWIW, I ran the compiled code through a decompiler and this is how the same code gets converted as: *Source*: package { public class A { public var minHeight:Number = 9; public var minHeight2:Number = minHeight; } } *After decompilation*: package { public c

Re: Odd undefined property via reference to static type compilation error

2012-07-09 Thread Ryan Frishberg
In ActionScript, it looks like this doesn't work: class A { public var minHeight:Number = 9; protected var minHeight2:Number = this.minHeight; } Someone who knows ActionScript in more detail can probably explain why the compilter/runtime can't figure out what "this" should refer to when initia

Re: Odd undefined property via reference to static type compilation error

2012-07-04 Thread Justin Mclean
Hi, > BTW, is this an issue in Adobe Flex 4.6 as well? Yep issue with both 4.6 and 4.8 and couldn't find an existing JIRA report for it. Justin

Re: Odd undefined property via reference to static type compilation error

2012-07-04 Thread Alex Harui
On 7/4/12 3:43 AM, "Justin Mclean" wrote: > Hi, > >> The generated actionscript should shed some light on the mystery. Have >> you taken a look yet? > I tired using Flash Builder but it died on me - sigh. BTW, is this an issue in Adobe Flex 4.6 as well? -- Alex Harui Flex SDK Team Adobe

Re: Odd undefined property via reference to static type compilation error

2012-07-04 Thread Justin Mclean
Hi, > The generated actionscript should shed some light on the mystery. Have > you taken a look yet? I tired using Flash Builder but it died on me - sigh. Justin

Re: Odd undefined property via reference to static type compilation error

2012-07-03 Thread OmPrakash Muppirala
The generated actionscript should shed some light on the mystery. Have you taken a look yet? Om On Jul 3, 2012 6:58 PM, "Justin Mclean" wrote: > Hi, > > Anyone have an idea why this: > > http://ns.adobe.com/mxml/2009"; >xmlns:s="library://ns.adobe.com/flex/spark" >