Advanced Actions Help

New Here ,
Oct 23, 2019 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. 

 

 
 
 
 
 
 
 
TOPICS
Advanced, Advanced actions

Views

207

Likes

translate

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
community guidelines

correct answers 2 Correct Answers

Advocate , Oct 23, 2019 Oct 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.

Likes

translate

Translate

Translate
Most Valuable Participant , Oct 23, 2019 Oct 23, 2019
You don't mention the version you are using.Unless you have a very old version,  this is the easiest way: 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.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 compare...

Likes

translate

Translate

Translate
Advocate ,
Oct 23, 2019 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

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
community guidelines
New Here ,
Oct 23, 2019 Oct 23, 2019

Copy link to clipboard

Copied

Thank you 

Likes

translate

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
community guidelines
Most Valuable Participant ,
Oct 23, 2019 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

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
community guidelines
New Here ,
Oct 23, 2019 Oct 23, 2019

Copy link to clipboard

Copied

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

Likes

translate

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
community guidelines