1 Reply Latest reply on Dec 28, 2011 7:56 AM by drkstr_1

    Regarding styling text and other components

    jai2011

      Hi,

       

      I am making an mobile app where I want to get different color for each words in my text.

      Is this possible?Then please suggest me the way.

       

      One more question How to give gradient to a text using css for mobile view?

       

       

      Thanks in advance,

       

      Any help will be appreciated,

        • 1. Re: Regarding styling text and other components
          drkstr_1 Level 4

          I hope no one actually has to read this text...  jk

           

          I don't think it's possible with CSS. You will probably have to use some kind of color transform to apply a gradient to the display object containing the text, or perhaps you can parse the FTE textLines and apply the transform there (could be more or less efficient depending on your needs).

           

          As for the different color of each word, you will have to parse the TextFlow and apply a TextFormat for each word boundary in the flow. Its hard to give specifics without knowing anything about your requirements.