Skip to main content
January 20, 2010
Question

TLF not ready yet?

  • January 20, 2010
  • 1 reply
  • 1909 views

Greets.

So, i've downloaded the lastest stable Flex4 sdk and cut out the textLayout.swc so that i could run throught some tests with it.

Here's my first test that made me go O_O

my test code
import flashx.textLayout.controls.TLFTextField;
  
var css:StyleSheet = new StyleSheet();
css.setStyle("a", {fontFamily: "Trebuchet MS", fontSize: 12, textDecoration:"underline"});
css.setStyle("a:hover", {fontFamily: "Trebuchet MS", fontSize: 12, textDecoration:"none"});
css.setStyle(".test", {fontFamily: "Verdana", fontSize: 10, textDecoration:"underline"});
      
var tf:TLFTextField = new TLFTextField();
tf.multiline = true;
tf.border = true;
tf.wordWrap = true;
tf.styleSheet = css;
tf.autoSize = TextFieldAutoSize.LEFT;
tf.htmlText = "<span class='test'>test</span><img src='http://www.adobe.com/ubi/globalnav/include/adobe-lq.png' /><b>test</b><br/><a href='http://'>Another test</a>";
addChild(tf);
  
tf.selectable = true;
trace(tf.selectable); // false ?! O_O

The results:

1. set styleSheet() method doesn't work (css doesn't apply to the text)
2. images embedded with the <img> tag do not appear at all.
3. set selectable() method doesn't work (always returns "false")

I've decided to look into the source with ASV and what i've discovered there?

Almost all methods are not implemented. 60% of all methods just throw an exception like this one:  throw (new Error(this.notImplemented("bla-bla-bla")));

So, my question is "when will the TLF be 100% finished so that i could implement it into my app?"

Much appreciate.

Cheers

This topic has been closed for replies.

1 reply

January 20, 2010

TLF between the last stable build and the current nightly build are very

different under the hood.  If you want to check out what TLF is going to be

like, I'd suggest the nightly.  I'm pretty sure it's supposed to be finished

by the launch of Flex 4 (which is supposed to be done "early this year" and

one rumor sets the release date in March).  I'm not sure of the exact

feature set TLFTextField is supposed to implement but this page might help:

http://opensource.adobe.com/wiki/display/flexsdk/FTE+and+TLF+text+in+MX+components

- Daniel Freiman

January 20, 2010

As said here, the TLFTextField was renamed to FTETextField

Well, i couldn't manage to find any docs related to the FTETextField nor the class itself (via swc view)

Btw here're the only docs they have currently online related to the TLF http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/controls/TLFTextField.html

There's only TLFTextField, to add, the search results on "FTETextField" give me zero results.

Guess i'll just have to wait till adobe releases the Flex4

January 20, 2010

The livedocs you're looking at are for the stable builds of adobe products.  Since FTETextField is in the nightly builds, you'll need the docs for the beta technologies: http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/index.html?filter_flex=4&filter_flashplayer=10.1&filter_air=2