Tracy
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of riku.raisanen
Sent: Thursday, June 01, 2006 2:32 PM
To: [email protected]
Subject: [flexcoders] Using CheckBox to switch states.
I'm trying to use a checkbox to view states. No AS script involved,
here's the code:
<mx:CheckBox label="to stateTwo" id="bar"
click="currentState='otherState'" selected="false" />
and in state 'otherState':
<mx:SetEventHandler target="{belongsToCompany}" name="click"
handler="currentState=''"/>
<mx:SetProperty target="{belongsToCompany}" name="selected"
value="true"/>
For some odd reason, it takes 3 click to uncheck the checkbox. The
states change as they should.
In my case, the other state adds more fields to a form if the customer
checks the checkbox.. No clicking the checkbox twice removes the extra
fields but the checkbox remains checked. Confuses the users, and me.
Has anyone else experienced this? any work-arounds?
-Riku Räisänen
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
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
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

