incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Mclean <jus...@classsoftware.com>
Subject Odd undefined property via reference to static type compilation error
Date Wed, 04 Jul 2012 01:57:35 GMT
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