Tag Archives: HTML

AIR :: TextField bug when resetting HTML text.

I ran into a really strange issue that only occurs within AIR applications (AIR 1.5.1/1.5.2). When I create a TextField control, set it's style, and then assign it HTML text it appears fine. However, if I wish to reset that TextField content and the original content has links, the entire replaced content becomes one HTML link. I think the issue can be better explained with some images and some code samples.
Posted in AIR, Bugs, Flex | Also tagged , , , , | Leave a comment

Flex :: Truncating HTML Text

With Flex truncating text within a Label control is easily done by setting the property “truncateToFit” to true. This parameter doesn’t do much when using the Text or TextArea controls in Flex. To truncate text in these controls you would have to build your own function to count characters and add the ellipses. There is [...]
Posted in AIR, Flex, Flex 3 | Also tagged , , , | 6 Comments

Embedding HTML in Flex with IFrame

When Flex 1.5 came out, Christophe Coenraets created a application that allowed you to embed HTML pages in Flex using an IFrame. Since the Flex 2 update, this application has been broken, until now.   There is a new updated example created bi Brian Deitte.  Get the example and source code at Deitte.com.   Great job Brian!
Posted in Flex News | Tagged | 2 Comments

Flex: Export valid HTML from the RichTextEditor

A recent post on the Flex Coders forum prompted me to create a method to clean up the HTML code produced by the Flex RichTextEditor component. Typically, the code that is produced looks like this from the line: 123456789This is < b > Bold < / b > text. < TEXTFORMAT LEADING="2" > < P [...]
Posted in Flex News | Also tagged , | 53 Comments