You might be able to simply use binding
<mx:NumericStepper id="step1" minimum="1"
maximum="2" value=”{step2.value
== 1 ? 2 : 1}”/>
<mx:NumericStepper id="step2"
minimum="1" maximum="2" value=”{step1.value == 1 ? 2 : 1}”/>
But that also might not be too happy. Otherwise add
a change event listener onto both and in the handler simply switch the other
value.
Matt
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ghislain Simard
Sent: Friday, August 19, 2005
10:19 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] switch value
on numericstepper
Hi,
I have two NumericSteppers where only value 1 or 2
are possible.
The value selection of a numericstepper will
change the other one the
the other value. How to do this?
<mx:NumericStepper id="step1"
minimum="1" maximum="2" />
<mx:NumericStepper id="step2"
minimum="1" maximum="2" />
Thanks
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|