Jump to content
Search Community

Split of HTML dynamic text field

Register test
Moderator Tag

Recommended Posts

Hi,

 

I'm wondering how to achive the following :

Animate a dynamique text field content (HTML) as for exemple

<span style="color: blue; font-size:12px">Promotion</span>
<span style="color: red; font-size:17px">-30</span>
<span style="color: red; font-size:15px">%</span>
<span style="color: green; font-size:14px">Today</span>

The field text is centered, I want that each span appear with different animations (tweening).

 

Thanks,

 

Regards.

 

 

 

 

Link to comment
Share on other sites

Sorry, not sure of an easy way to do that. 

Our SplitTextField utility does not work with htmlText

http://www.greensock.com/splittextfield/

 

I'm quite sure you will have to find a way to create a textField for each individual word.

This can be done manually on the stage or you may be able to create an elaborate data object that stores each word, font-size and color and then run a loop through it to dynamically generate, stylize and position each word. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...