incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OmPrakash Muppirala <omup...@gmail.com>
Subject Re: Odd undefined property via reference to static type compilation error
Date Wed, 04 Jul 2012 02:04:16 GMT
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" <justin@classsoftware.com> wrote:

> Hi,
>
> Anyone have an idea why this:
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>                            xmlns:s="library://ns.adobe.com/flex/spark"
>                            xmlns:mx="library://ns.adobe.com/flex/mx">
>         <fx:Script>
>                 <![CDATA[
>                         protected var minimum:Number = this.minHeight;
>                 ]]>
>         </fx:Script>
> </s:Application>
>
> Gives:
> 1119: Access of possibly undefined property minHeight through a reference
> with static type Class.
>
> But if you remove "this." it compiles without error:
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>                            xmlns:s="library://ns.adobe.com/flex/spark"
>                            xmlns:mx="library://ns.adobe.com/flex/mx">
>         <fx:Script>
>                 <![CDATA[
>                         protected var minimum:Number = minHeight;
>                 ]]>
>         </fx:Script>
> </s:Application>
>
> Thanks,
> Justin
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message