Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN
Accepted Solution

Inline CSS in As3

Hai

i need to provide color to some html tag. I need to provide by inline.. Have any idea please help me..

 

Thanks

Deepu

 

 

Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: Inline CSS in As3

I got the solution to privide css in as3

Regular Contributor
Posts: 65
Registered: ‎11-21-2011
My Device: Playbook developer
My Carrier: developer

Re: Inline CSS in As3

That's Great,

Can you please add any example for using inline CSS...I iam in very urgent requirement.

Your help will be appreciated,

Thank you.

Developer
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: Inline CSS in As3

myText= myText.replace("<a","<u><font color='#ff60ff '><a");
myText= myText.replace("</a>","</a></font></u>");

In the beginning and end put the appropriate tags.. please provide the text as htmlText. some html tags are supported.. supported tages are
1. anchor tag <a> </a>
2. newline tag <br>
3. font tag <font></font>
4. paragraphy tag <p></p>
5. underline tag <u></u>
6. textfield format tag <textformat></textformat>
7. imgage tag <img></img>