Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic text with on/off state HELP!!!!!

Status
Not open for further replies.

simonekw

Programmer
Nov 27, 2002
9
0
0
GB
Help! I'm working on a movie when a button is pressed text will appear on screen with a 40%transparent background box with the movie still playing behind it. The button needs to be able to turn the text on and off at any point. Do I need any particular scripting? Please help!!!
 
You can use a conditional statement(if..else) to do this.
To clear the text, just say:
sprite(x).member.text = EMPTY

Try out yourself first. If you really cannot figure out how to do this, I have a script ready here.

 
sprite(x).visible = NOT sprite(x).visible

will toggle the text sprite on and off ... changing teh sprite's text itself is

sprite(x).member.text = "New Text Here"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top