I am using the following code to create a dynamic textfield which has text from an XML file written to it later on.
The problem I am having is this:
I am creating two text fields, one for a "title" and one for the "body" content. I will attach an image of the layout as I can't show you the actual fla file.
However, I cannot get the real height of the textbox created I assume because it has the autosize/wordwrap property which I need for what I am trying to do.
What I need is to have the title dynamically created(which it is) and the body textfield to be placed on stage according to the title's _y plus _height properties as this would make most sense? Maybe there is a different way to go about this but I am out of ideas, any help would be appreciated.
PHP Code:var btnTitle:MovieClip = _root.createEmptyMovieClip("btnTitle",_root.getNextHighestDepth());
var txtBodyTitle:TextField = btnTitle.createTextField("txtBodyTitle",btnTitle.getNextHighestDepth(),10,btnTitle._y,200,0);
txtBodyTitle.border = false;
txtBodyTitle.autoSize = true;
txtBodyTitle.wordWrap = true;
txtBodyTitle.multiline = true;
txtBodyTitle.selectable = false;




Reply With Quote