I'm loading items from a MySQL dbase, and depending on the number of items it creates a number of menuitems (MC with a textfield).
How do I populate the textfield (called Fieldname)? The eval pics up the value of the textfield, but I cant put a value in there.
Code:_root.Numberof = _root.Numberof *1; for(i=0; i<_root.Numberof; i++) { // _root.news +=eval("_root.MenuItem"+i); duplicateMovieClip("ParentMenu", "Menu"+i, (i+1)); tempvar =eval("Menu"+i+".Fieldname"); tempvar = "test"; }




Reply With Quote