Skip to main content
Known Participant
October 23, 2019
Answered

Advanced Actions Help

  • October 23, 2019
  • 2 replies
  • 545 views

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 has been closed for replies.
Correct answer Lilybiri

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.

2 replies

Lilybiri
LilybiriCorrect answer
Legend
October 23, 2019

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.

Known Participant
October 23, 2019

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

Stagprime2687219
Legend
October 23, 2019

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.

Known Participant
October 23, 2019

Thank you