What does it do with

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

?

- Gordon

-----Original Message-----
From: Justin Mclean [mailto:jus...@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



Reply via email to