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