flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harbs <harbs.li...@gmail.com>
Subject Re: [Falcon]
Date Mon, 21 Nov 2016 07:37:46 GMT
Yes. This code is about 4 or 5 years old and I’ve had no errors to date.

On Nov 21, 2016, at 9:35 AM, Alex Harui <aharui@adobe.com> wrote:

> Are you sure MXMLC compiles your code without error?  MXMLC reported the
> "read-only" error for me.
> 
> -Alex
> 
> On 11/20/16, 10:44 PM, "Harbs" <harbs.lists@gmail.com> wrote:
> 
>> The latest Falcon breaks valid existing code patterns.
>> 
>> I know there was a recent discussion on related, but I can’t find it
>> right now.
>> 
>> I have some code which I migrated from a Flash app:
>> 
>> 		private var _regular:FontVO;
>> 		public function get regular():FontVO
>> 		{
>> 			return _regular;
>> 		}
>> 		private function set regular(value:FontVO):void
>> 		{
>> 			_regular = value;
>> 		}
>> 
>> 
>> Somewhere else in the same class I have the following:
>> 
>> 			if(style.toLowerCase() == "regular" || style.toLowerCase() ==
>> "normal"){
>> 				regular = font;
>> 			}
>> 
>> This code compiled and worked correctly in Flash as well as in Falcon
>> until today. I’m now getting an error:
>> Property regular is read-only.
>> 
>> 				regular = font;
>> 				^
>> 
>> This code is in the same class, but the compiler is not recognizing the
>> private setter.
>> 
>> Thanks,
>> Harbs
>> 
> 


Mime
View raw message