Skip to main content
Participant
February 17, 2010
Question

Can I use CSS, htmlTags and Alt tip for text with TLF?

  • February 17, 2010
  • 1 reply
  • 745 views

I want to know if it applicaple to use CSS style sheet to format TLF Text?

is it Applicaple to use html tags instead of text with TLF?

is it applicaple to add alt (tooltip when I over some words) with TLF?

This topic has been closed for replies.

1 reply

Adobe Employee
February 18, 2010

You can style at the component level with RichText in Flex, but there's no ability to style individual text elements in CSS. I think this would be very handy though. We have the underlying architecture for it, if you want to build it yourself, but there's no code that links up the Flex stylesheets to TLF.

There is no "alt" capability for rollovers, either, sorry. That's an interesting suggestion, one I'd not heard before. I'll keep it in mind.

I'm not sure what you are asking for with respect to html. There is the capability to import very simple html, similar to what was done in TextField.htmlText property -- is that what you're looking for? That is available via the TextConverter class.

Hope this helps,

- robin

Participant
February 19, 2010

Thank you Robin for helpull answer, yes that what I meant by html, I will check the TextConverter Class.

I asked about CSS because my Manager want to control the Format of the text inside Flash using The CSS.

is there a way to format the TLF Markup, or what is the best suggestion instead of CSS?

I didn't try before to add any new capapilities to the architecture, if I want  to start adding this what is the place to start from or any done example that demonstrate it.

I am using Flash CS4 not Flash Builder nor Flex.

thank you again for your helpful answer.

Adobe Employee
February 19, 2010

Take a look at this example for how to connect CSS:

http://blogs.adobe.com/tlf/2009/02/iformatresolver-and-using-css-1.html

This CSS engine might be interesting if you find Flash's built in CSS parser to be too limited.

http://fcss.flashartofwar.com/

Hope that helps,

Richard