Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7074869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:06:35+00:00 2026-05-28T06:06:35+00:00

I get Strings from a server that look something like this: This is normal

  • 0

I get Strings from a server that look something like this:

This is normal text followed by a link;
http://www.google.com
Links might also look like this;
http://google.com/whatever

This Strings are set as the text value in a spark TextArea. What I’d like to achieve is that
A. the text gets highlighted and
B. the user can click it and it opens in the systems browser.

Any help would be much appreciated!

Edit: Using the StyleableTextField throws a typerror on Flex 4.6.
I tried the simplest HTML text like this;

StyleableTextField(newsStoryArea.textDisplay).htmlText = "TextArea <b>bold</b><i>italic</i>."

which throws;

TypeError: Error #1034: Type Coercion failed: cannot convert
spark.components.supportClasses::StyleableStageText@fc3d0a1 to 
spark.components.supportClasses.StyleableTextField.

Edit:
Nice one Adobe!
“htmlText in mobile skins

You cannot use the htmlText property in mobile applications.”

On the same page (http://help.adobe.com/en_US/flex/mobileapps/WS19f279b149e7481c698e85712b3011fe73-7fff.html#WS19f279b149e7481c7c94ce7c12b30152f48-7ffc), they say not to use TLF in mobile skins, so htmlText doesn’t work, and TLF shouldn’t be used.
Basically the two only options (unless there’s a third one I don’t know about) to format links properly are not to be used on mobile devices. Great!

Any recommendations?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:06:36+00:00Added an answer on May 28, 2026 at 6:06 am

    If it throw

    TypeError: Error #1034: Type Coercion failed: cannot convert
    spark.components.supportClasses::StyleableStageText@fc3d0a1 to 
    spark.components.supportClasses.StyleableTextField.
    

    then your component use default skin which use StyleableStageText. And it not support htmlText property.

    Based on name of your component “newsStoryArea” I can suppose that this is spark.components.TextArea. There are two mobile skins for spark.components.TextArea – default (I not remember its full name) and spark.skins.mobile.TextAreaSkin. Class spark.skins.mobile.TextAreaSkin use StyleableTextField which have htmlText property. So you can specify that your text area component use this skin. In result you will able use htmlText.

    Also if textDisplay will be nonselectable then textDisplay will not dispath TextEvent.LINK (if you need this).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write a regex to get the numbers from strings like
I have connection strings that look like: Data Source=mydomain.com;Initial Catalog=DB;Integrated Security=True This works from
I get the following text as a string from an XML-based REST API 'd':4
I use $.ajax() to get some HTML pages from my server. The retrun contains
I need a quick easy way to get a string from a file in
I get a String data from Cursor, but I don't know how to convert
I get an XML string from a certain source. I create a DOMDocument object
I'm trying to get the query string from a string (not the current URL).
I'm using Fluent NHibernate and need to get my Connection String from the connection.connection_string
I've seen somewhere but can not remember. How to get a SQL string from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.