• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

321

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

Advisor , 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.

Votes

Translate

Translate
Community Expert , 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:

  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 comp

...

Votes

Translate

Translate
Advisor ,
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.

Votes

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 

Votes

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
Community Expert ,
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.

Votes

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

LATEST

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

Votes

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
Resources
Help resources