It should work.  What if you use the normal variable but don’t assign the 0 when you declare it.  Instead assign it to 0 in your initialize or something.  Then see what happens when you update it.

 

Don’t put [ChangeEvent] on it if it’s a var.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of JesterXL
Sent: Saturday, June 18, 2005 10:14 AM
To: Flexcoders
Subject: [flexcoders] Binding Internally?

 

Ok, I can't bind a Label's text property to a public property of my MXML
like so:

public var constitution:Number = 0;

<mx:Label text="{constitution}" />

It starts off at 0, but doens't change at a later date, ChangeEvent metatag
or not.

Getter/Setters don't work either.

However, the <mx:Number tag with an id of "constitution" does....

wtf?  What if I, for this one time, don't want to use a tag?  How can I bind
to an AS defined property?

--JesterXL





Yahoo! Groups Links

Reply via email to