TLF not ready yet?
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
