CSD Unit 3, Lesson 17 Create Your Own Card

One other thing i’ve done in the past is to declare the text itself as a variable and then you can change the variable itself when need to be an empty string (ie. “”).

Here’s an example.

When the mouse is down, the text changes to be “” (nothing), so it disappears. If you wanted the text to stay hidden, you just remove the “else” part of the “if” statement.

Mike

3 Likes