Hello NG, (sorry for posting in english
i have the following problem. When i create an empty movie clip i think its
x-y-position is centered. And when i create a text in this movie i think the
x-y-position is on the upper-left corner. Is there a way, to set both (text-
and movieclippositioning) to center or upper left. Ideally i would create a
textfiel in a new movie clip. This movie clip shoud have exactly the
position and size around the textfield...
Thanx a lot!
Peter
Here is the code i use to create the movie and text:
on(release){
_root.createEmptyMovieClip("objekt"+f,f);
_root["objekt"+f]._x = 150;
_root["objekt"+f]._y = 150;
_root["objekt"+f].createTextField("text"+f,1,0,-40,0,0);
_root["objekt"+f]["text"+f].border = false;
_root["objekt"+f]["text"+f].type = "input";
_root["objekt"+f]["text"+f].embedFonts = true;
_root["objekt"+f]["text"+f].autoSize = "center";
myformat = new TextFormat();
myformat.color = 0x000000;
myformat.bullet = false;
myformat.font = "Avenir 55";
myformat.size = 40;
myformat.underline = true;
_root["objekt"+f]["text"+f].text = "avenir55";
_root["objekt"+f]["text"+f].setTextFormat(myformat);
f++;
}