Skip to main content
Known Participant
Oct 23, 2019 3:03 PM UTC
Answered

Advanced Actions Help

I have four buttons that each display text when clicked. but the issue is, I dont know how to get the text to go away when another button is clicked. All of the text ended up being piled up on one another after I clicked all the buttons in the preview. 

 

 
 
 
 
 
 
 
This topic is closed to new replies. Start a new post to keep the conversation going.
Lilybiri
LilybiriCorrect answer
Legend
Oct 23, 2019 3:16 PM UTC

You don't mention the version you are using.Unless you have a very old version,  this is the easiest way:

  1. Instead of multiple text objects, create one multistate object. Use a shape, where the Normal state is 'invisible' because you set both Alpha and Stroke to 0. Add states with the text, one state for each text.
  2. Instead of show and hide when clicking a button, use the command 'Chang stae of... to'. That way old text will automatically disappear when another button is clicked.

BTW I have compared this solution with Hide and Show in two blog posts, one for non-responsive and one for responsive projects. They are in the eLearning portal.

4 replies

Lilybiri
LilybiriCorrect answer
Legend
Oct 23, 2019 3:16 PM UTC

You don't mention the version you are using.Unless you have a very old version,  this is the easiest way:

  1. Instead of multiple text objects, create one multistate object. Use a shape, where the Normal state is 'invisible' because you set both Alpha and Stroke to 0. Add states with the text, one state for each text.
  2. Instead of show and hide when clicking a button, use the command 'Chang stae of... to'. That way old text will automatically disappear when another button is clicked.

BTW I have compared this solution with Hide and Show in two blog posts, one for non-responsive and one for responsive projects. They are in the eLearning portal.

Translate
Known Participant
Oct 23, 2019 3:29 PM UTC

Thank you I tried this and it worked. It was version 9 

Translate
Stagprime2687219
Legend
Oct 23, 2019 3:14 PM UTC

I would add actions to hide all the other text boxes with each of the button presses and show the one that corresponds with the button being pressed.

Or have a single smartshape text object and make states and have each button simply show the correct state.

Translate
Known Participant
Oct 23, 2019 3:28 PM UTC

Thank you 

Translate