| Ultrashock Forums
• prob with text filed and var |
Member Blogs | ||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
3 Blog Entries
|
2008-04-04
#2 |
||
|
|
|
2008-04-04
#3 |
||
|
Tnx Holaso, but ist not working , but when im pointing directly to it , its working , so the root is good, Code:
_root.Survey_mc.survey_question.survey_question_notebook.survey_question_singlebutton_05.question_singlebutton_ttlabel = "yewqubhjczxmnjjjjjust a test" /*output yewqubhjczxmnjjjjjust a test */ |
|
|
2008-04-04
#4 |
||
|
Last edited by tiran : 2008-04-04 at 12:12.
Code:
var what_text =_root.Survey_mc.survey_question.survey_question_notebook; //no quotes
for (i=00; i<6; i++) {
what_text['survey_question_singlebutton_' + i].question_singlebutton_ttlabel = _root.question_sigle_list[i];
}
EDIT - Just realized exactly how you were trying to piece together the path...updated the code. |
|
|
2008-04-04
#5 |
||
|
Last edited by tiran : 2008-04-04 at 12:13.
PS. It appears you have given your textfield a "Var" name rather than an instance name. When you give it a Var name you do not use textfieldinstance.text = "" ... you just use textfieldvarname = "" like you were. If I am wrong and you have given it an instance name, then you need to use .text="".
|
|
|
|
2008-04-04
#6 |
||
|
wow , tnx alot , and i was thinking it was not working too , you forgot a zero, lol
what_text['survey_question_singlebutton_0' + i].question_singlebutton_ttlabel = _root.question_sigle_list[i];
yes i have use a a "Var" name(old fashion , lol) again , tnx alot
|
|
|
|
2008-04-11
#7 |
||
|
Hi guys , i got an other question that look similar , luching a function with a var in it , example: Code:
//i need to lunch this.Fquestion_single_up(); but need to replace the "up" by the corect state i got a var that know what state it is "_root.button_states" but i cant make it work ![]() im trying Code:
_root.whatFunction = this.Fquestion _root.whatFunction['_single_' + _root.button_states +'()'] but dosent seem to work more Code:
_root.whatFunction = "this.Fquestion_single_" + _root.button_states +"()" thanks in advance guys ![]() plz and tnx |
|
|
|
2008-04-11
#8 |
||
|
FIX thanks anyway
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|






7 comments
| 240 views

3 Blog Entries
Linear Mode
eval("t").text = _root.question_sigle_list[i]