Advanced Actions Help

New Here ,
Oct 23, 2019

Copy link to clipboard

Copied

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. 

 

 
 
 
 
 
 
 
Most Valuable Participant
Correct answer by Lilybiri | Most Valuable Participant

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.

TOPICS
Advanced, Advanced actions

Views

162

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Advanced Actions Help

New Here ,
Oct 23, 2019

Copy link to clipboard

Copied

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. 

 

 
 
 
 
 
 
 
Most Valuable Participant
Correct answer by Lilybiri | Most Valuable Participant

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.

TOPICS
Advanced, Advanced actions

Views

163

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 23, 2019 0
Advocate ,
Oct 23, 2019

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 23, 2019 0
New Here ,
Oct 23, 2019

Copy link to clipboard

Copied

Thank you 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 23, 2019 0
Most Valuable Participant ,
Oct 23, 2019

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 23, 2019 0
New Here ,
Oct 23, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 23, 2019 0