[Xerte] toggle button

Mary Ann Ahearn maryann at moberg.com
Mon Apr 12 18:38:16 BST 2010


Hi everyone.
I've been preparing desktop xerte models to use in projects where a 
group of us will need to produce large amounts of content in short 
amounts of time.  I want to make & save a model of a button 
interaction where the button is a toggle to display/hide a panel 
containing text and sometimes a graphic. Very simple.

Since a button's mission seems to be to display a response when 
clicked, I've been struggling to get it to act as a toggle and hide 
the response when clicked again.  If I put a script on the button to 
always reverse the visibility of its child icons, I can't seem to get 
it to overcome its desire to make them visible.

If the panel/text/graphic are siblings of the interaction icon which 
contains the button rather than its children, the toggle works 
perfectly, but then we lose the ability to save the interaction icon 
as a tidy model with everything needed contained inside.

Is there a way to disable or replace a button's default behavior 
regarding it's children?

Thanks so much!
ma



More information about the Xerte mailing list