I am not 100% clear on what you are trying to accomplish.  However,
it sounds like ViewStack container could be helpful.  Using a view
stack you can toggle easily between multiple alternative UIs based on
user inputs (like CheckBox clicks).

~harris

--- In [email protected], "riku.raisanen"
<[EMAIL PROTECTED]> wrote:
>
> 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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to