[ascoders] Re: TextField.textwidth > SOLVED!

  • From: "Claus Wahlers" <claus@xxxxxxxx>
  • To: <ascoders@xxxxxxxxxxxxx>
  • Date: Fri, 24 Jan 2003 14:37:54 +0100

> Könnte jetzt suchen, aber hast du einen Link zu dem Thread?

ich hatte das damals sogar als bug gemeldet:

-----Original Message-----
From: Claus Wahlers
Sent: Donnerstag, 11. Juli 2002 16:30
Subject: TextField.textHeight values delayed

hi folks,
first of all congratulations for the airwolf build. it fixes many issues we
still had problems with. very nice!
but there is that issue that bugs me every since (same issue exists in old
players too). after dynamically creating a multiline/wordwrap/embedded
textfield and adding some text to it, the textHeight and _height properties
got a wrong value. the properties only get the right values after the
playhead moved to the next frame.

<frame1>
_root.createTextField("_text", 11, 0, 0, 200, 1);
_root._text.autoSize = "left";
_root._text.html = true;
_root._text.embedFonts = true;
_root._text.selectable = true;
_root._text.multiline = true;
_root._text.wordWrap = true;
_root._text.htmlText = "<font face='arial' size='12'>the quick brown fox the
quick brown fox the quick brown fox the quick brown fox the quick brown fox
the quick brown fox the quick brown fox</font>"
debug.text = "Debug Output:\n";
debug.text += "frame 1: textHeight:" + _root._text.textHeight + ", _height:
" + _root._text._height + "\n";

<frame2>
debug.text += "frame 2: textHeight:" + _root._text.textHeight + ", _height:
" + _root._text._height + "\n";
debug.text += $version;

<output>
frame 1: textHeight:13, _height: 17.35
frame 2: textHeight:53, _height: 57.4
WIN 6,0,39,0

any chance of getting this fixed yet?
cheers,
claus.


------------------------------------------------------
Archiv   : //www.freelists.org/archives/ascoders/
Optionen : //www.freelists.org/list/ascoders
------------------------------------------------------

Other related posts: