PDA

View Full Version : Bring text into view


seminole14
07-16-2004, 06:12 PM
When a frame is loaded, how can I make text in a dynamic text box not be seen? I would like to have it load invisible, but then after a button is pushed, have it come into view. This should be fairly simple. Do you have to set the alpha value to 0. If the box is named txt1, can I just use txt1._alpha=0? Thanks.

binkyboo
07-16-2004, 06:34 PM
1. Create a variable to hold your text

var content = "Here I have some text!"

2. Create a textfield with an instance name of 'myText'

3. On the button place this code:

on (release){
myText.text = content;
}

Your textfield should now be populated with your text. If you wanted to then erase the content (make it invisible) you'd simply set myText.text = ""; This should give you enough information to accomplish what you're after.