[COLOR=#ff4080]Hello everybody[/COLOR], I am having one problem with assigning the values to the input boxes. I explain here in detail i.e., i place a input box inside one movieclip. The inputbox is generated using this code
mcMain.createObject("TextInput", "title_text_tit"+ i, mcMain.getNextHighestDepth(),{_y:90*i+5, _x:200,_width:250,_height:25});
In which the name of the textbox is dynamically created by looping this within the for loop. What’s the problem now is, i have to assign the value’s for the inputbox. Being the name of the input box contains the for loops subscript value ‘i’ . I use the following code to assign the values for the input boxes.
"_root.mcMain.title_text"+i+"_tit" = "hi";
Here, mcMain is the movieclip and title_text+i+ is the name of the inputbox i value is replaced by 0,1 and so on, when it will loops inside the for loop.
We are using the + symbol in the left side of the assignment part. so it shows the error. i try many more combinations like assigning the
sample_text=_root.mcMain.title_text"+i+";
but it won’t work when i assign like
sample_text.text= "hi"
Please help me how to assign the values for the input boxes using the for loop value “i” being the part of the left side in the assignment section.:sen: