incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Smith <gosm...@adobe.com>
Subject RE: [jira] [Updated] (FLEX-51) Please check support for ExactValue initializer
Date Mon, 30 Apr 2012 23:06:11 GMT
What does it do with

<s:TextInput text="@Whatever"/>

?

- Gordon

-----Original Message-----
From: Justin Mclean [mailto:justin@classsoftware.com] 
Sent: Monday, April 30, 2012 3:44 PM
To: flex-dev@incubator.apache.org
Subject: Re: [jira] [Updated] (FLEX-51) Please check support for ExactValue initializer

Hi

Was just looking into this and creating a few test and I notice that under the current compiler
this give a slightly unexpected result:

[Bindable] protected var initial:String = "Hello";

<s:TextInput text="@Once{initial}" />

The initial string value is "@OnceHello". I would of expected it to not compile (or at least
a warning) as it doesn't understand @Once.

Binding expression like this are valid, so I assume that what it is going with.

<s:TextInput text="You have {noApples} Apples" />

Anyone think this is a bug? Or that at the very least a warning should be issued?

Thanks,
Justin




Mime
View raw message