ich will ein paar textfelder generieren, jeweils in einem eigenen mc, die mc's werden auch erzeugt wie ich das will aber die textfelder nicht. da wird mir nur eines erzeugt. Was läuft da falsch?
PHP-Code:
this.onEnterFrame=function() {
loadVariables("test4.htm","");
if(wert>0)
{
form = new TextFormat();
form.font = "Verdana";
form.size = "12";
form.color = 0x000000;
for(i=1;i<=wert;i++)
{
this.createEmptyMovieClip("naviclip"+i,i);
_root["naviclip"+i]._x = 100;
_root["naviclip"+i]._y = 100+(30*i);
_root["naviclip"+i]._width = 50;
_root["naviclip"+i]._height = 25;
_root["naviclip"+i].createTextField("navi"+i,i,0,0,50,15);
_root["naviclip"+i]["navi"+i].autoSize = true;
_root["naviclip"+i]["navi"+i].html = true;
_root["naviclip"+i]["navi"+i].text = "haaaaaaaaaalo";
_root["naviclip"+i]["navi"+i].type = "dynamic";
_root["naviclip"+i]["navi"+i].selectable = false;
_root["naviclip"+i]["navi"+i].setTextFormat(form);
_root["naviclip"+i]["navi"+i].embedFonts = true;
}
}
}