Skip to main content
lashondrac51319316
Known Participant
June 8, 2017
Answered

How to make an object vanish when it is clicked but also make another object appear

  • June 8, 2017
  • 1 reply
  • 1190 views

Hey! How do I make an object vanish when it is clicked but also make another object appear at the same time?

This topic has been closed for replies.
Correct answer Lilybiri

You don't tell what type of 'object' you mean? If you talk about an image, you will have to fill a shape with that image, turn the shape in a button (Click Use as Button in the Properties panel). You now have an interactive object, which has an Actions tab in the Properties panel. You'll need to create an advanced action with two commandas and attach this to the Success event in the Actions tab. That action will have three commands

    Hide SB_object               which is the name I gave to that shape button

    Show Object2                  the object to be shown, which has to be invisible in output to start with

Since I don't know which version you are using, cannot show you a screenshot of that action i the actions dialog box because it is different inCP2017 from previous versions.

1 reply

Lilybiri
LilybiriCorrect answer
Legend
June 8, 2017

You don't tell what type of 'object' you mean? If you talk about an image, you will have to fill a shape with that image, turn the shape in a button (Click Use as Button in the Properties panel). You now have an interactive object, which has an Actions tab in the Properties panel. You'll need to create an advanced action with two commandas and attach this to the Success event in the Actions tab. That action will have three commands

    Hide SB_object               which is the name I gave to that shape button

    Show Object2                  the object to be shown, which has to be invisible in output to start with

Since I don't know which version you are using, cannot show you a screenshot of that action i the actions dialog box because it is different inCP2017 from previous versions.

lashondrac51319316
Known Participant
June 9, 2017

Thank you so much!