Hello people :)
I have a simple question.
How can change text in a text box each time i click a different button?
an example also would be helpful
thankx for your help
Printable View
Hello people :)
I have a simple question.
How can change text in a text box each time i click a different button?
an example also would be helpful
thankx for your help
what you meen?
you have few buttons and one text box?
or what?expline more!
thankx for replying ! :)
yes , it is one text box and 5 buttons .. the text inside the text box should change depending on the button that i click
code
content_arr = new Array("This is the text for the button 0 your text",
"This is the text for the button 1 your text",
"This is the text for the button 2 your text",
"This is the text for the button 3 your text",
"This is the text for the button 4 your text");
for (i = 0 ; i < content_arr.length ; i++)
{
_level0["func" + i + "_btn"].num = i;
_level0["func" + i + "_btn"].onPress = function ()
{
content_txt.text = content_arr[this.num];
}
}
the code is nice ! :)
but can you explain what do u want to do a little? i'm lost here :)
please explain your code and idea
this is a fla that i got froum,the other day!
it worked nice
but .. i am sorry i am not into actionscript a lot .. i just have some few questions
what is _level10? u mean the base ?
when does this code excutes? it is just there on a layer