Flex Mobile 4.6 introduces Stage Text - how do you render HTML text with it?

I have a little chat component in a Flex Mobile app that I just upgraded to SDK 4.6.  The chat component has a text area displaying messages and they are HTML formatted via the following:
StyleableTextField(textArea).htmlText += myHTMLText;
Worked in SDK 4.5 but StyleableTextField is not a part of the new Stage Text framework introduced in SDK 4.6.
How do I HTML format the messages in my chat text area now?

Thanks much for your response.
Hmmm...  That appears to work but also causes a runtime exception where there was none before the 4.6 upgrade.  It occurs when I autoscroll on receiving a new message in the chat, something that worked fine in 4.5.
I guess I'm kind of wondering what the best practice is here.  Maybe I'm just doing this wrong altogether.  I'm finding it very difficult to implement probably one of the most basic features one would find in any collaborative app - something that was very easy in Flex 3 - the chat pane.  I've had one functioning fine for about 3 years.  Not so much in Flex mobile.
Chat is very simple functionality.  When you receive a new message from afar...
1.  add it to a TextArea with some nice formatting
2.  auto scroll far enough so the user can see the new message in its entirety. 
Nothing difficult at all.
Why are these two things difficult to find in the TextArea in Flex mobile?  It almost seems as though it's something we're not supposed to be doing? 
The answer here seems to be don't use Stage Text.  Revert to an older TextArea skin.  Why?  What text area doesn't need formatting as an option?  What text area doesn't need to be auto scrolled here and there?  Or am I just going about this wrong?  Maybe using the wrong components?
I guess for now I can revert to 4.5 skin, but now the code I used to auto scroll on receiving a new message throws a null pointer exception.  I've been using the valueCommit property to auto scroll, as follows:
valueCommit="textArea.scroller.verticalScrollBar.value = textArea.scroller.verticalScrollBar.maximum"
Haven't had a problem prevously.  But this now throws:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at com.components::ChatWindow/__textArea_valueCommit()
What's the best practice to accomplish this and also to be able to take advantage of the latest and greatest?

Similar Messages

  • How do you send group texts, how do you send group texts

    recently bought I phone 5 but none of my friends can show me nor can I work out how to send group texts

    Are you dragging the group to the BCC: field?
    How many are in this group?

  • HT1107 Since Mobile Me is moving to iCloud, how do you publish a domain in iweb with iCloud?

    Hello,
    I am trying to set up iWeb to publish to my own domain, and see info about doing that with Mobile Me, but since Mobile Me is moving to iCloud, how do you set it up with iCloud?  I just want to be able to publish my website directly to my own domain with iWeb.  Thanks!

    As you now know iWeb and iDVD have been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. HOWEVER, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    Currently if the site is published directly from iWeb to the 3rd party server the RSS feed and slideshow subscription features will work. However, if the site is first published to a folder on the hard drive and then uploaded to the sever with a 3rd party FTP client those two features will be broken.
    All of these features can be replaced with 3rd party options.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    However, Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: iW14 - Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    NOTE: the iLife 11 boxed version Is no longer available at the online Apple Store.  To get a copy you'll have to try Amazon.com or eBay.com.
    This may be of interest to you: Life After MobileMe.
    OT

  • How do you forward a text message with pictures to another mobile user

    How do you forward a text message with pictures to another mobile device?

    Howdy Greg,
    It sounds like you have some texts with images attached you would like to forward to another device. If the it can receive text messages, use these steps:
    Send messages with your iPhone, iPad, or iPod touch
    How do I forward a message?
    To forward a message, tap and hold the message bubble, then tap More.
    Tap to select the message you want to forward, then tap  and select the person to send it to.
    If the receiving device does not have the ability to receive text messages, you can also email them to an account setup on it by first saving the message to your phone:
    How do I save a photo from a message?
    Tap the photo, then tap .
    Then emailing it to an account setup on the device from the Photos app:
    Other ways to share photos and videos - iPhone
    Save or share a photo or video you receive.
    Email:  Tap to download it if necessary, then touch and hold the item to see sharing and other options.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • How do you get your text messages to not show on the screen when they come in

    How do you get your text messages to show on the screen when then come in?  My iphone 3s would just say the persons name and text message.  This says the persons name and the whole message

    Settings > Notifications > Messages > Show Preview - Turn to OFF

  • How do you set the text of a Hyperlink component in code

    I am using Visual Web pack in NB 6.0. How do you set the text of a hyperlink component in code?
    Please see screenshots at
    http://coba.usf.edu/departments/isds/faculty/agrawal/projects/java/
    I have a hyperlink in a grid panel. I am using
    hyperlink1.setText("Hello"); in prerender(),
    but the Hyperlink shows up with the text "Hyperlink", whereas I was expecting "Hello". However,
    hyperlink1.setUrl("http://www.usf.edu"); works as expected.
    I tried nesting a static text in the hyperlink as suggested in the Creator guide (ed 2, Google project). I deleted the "Hyperlink" text in the properties editor but then the page turned out blank.
    Thanks
    Manish

    Hi Manish,
    Great to know you were able to fix your issue. The following blog entry has the list of resources you would like to look at for future.
    http://blogs.sun.com/NetBeansSupport/entry/useful_resources_for_visual_web
    Thanks
    K

  • How do you change the text font on the Droid Global Phone

    How do you change the text font on the Droid Global Phone. I would like it to be darker (like bold)

    Hi.  
    Below I have provided you with the steps to change your font settings.
    From the main menu
    Select Settings
    Select Display Settings
    Select Font Style
    You can select from what is available, 
    Or you select [Get Fonts Online] to find something you want.
    Thank you,

  • How do you change the text color in your junk mail folder

    How do you change the text color in your junk mail folder?

    Try Mail Preferences/Junk tab and under " When Junk Mail Arrives" click Performe Custom Action then advanced
    you will see the option for colors.
    Hope this helps

  • How do you change the text color in io7 from white to black?

    How do you change the text color on the home page in iO7 from white to black?  I tried to invert the color but that reverses everything inclufing pictures.

    Yes, you can. If you change your wallpaper to a very light or white color the text turns black.

  • How do you change the text in portrait mode.

    How do you change the text in portrait mode.  I can edit it in landscape, but when I change the view the Latin and photos can't be edited and swapped with my material.  Thanks

    iBA should be approached like this:
    layout in landscape
    edit in portrait
    - -  check in both on your device
    Use the 'disable portrait orientation' option (Inspector/Document) for layouts you just don't see working in any manner but landscape.

  • How do you take off text field

    How do you take off text field

    Hi again, sounds like you accidently hey CMD+F5 & turned on Voice Over, try CMD+F5 again, or see this...
    I think the issue is caused by the Apple Voiceover Utility. Part of its function for the visually impaired is to highlight the button or text item that it is going to speak. i suggest you turn off Voice over either going to System Preferences -> Universal Access and Making sure that voiceover is turned off. Alternatively press Apple(Command) F5 to turn it on & off. The black rectangles should go away. If you want voiceover but not the black rectangles. You can open the voice over utility and change the settings to the text is still spoken but without the highlighting.
    https://discussions.apple.com/message/5786829#5786829

  • How do you un-highlight text highlighted in error in Reader?

    How do you un-highlight text highlighted in error in Reader?
    Also How can you change the color of the highlighting?

    Yes i saw, but what i don't understand is that i don't see "Allow Page Breaks within Content" on my textfields :
    Maybe i am using an older version of livecycle.
    In an other order of idea, have you checked if the page was set to allow page breaks?

  • HT3529 If you have an IPod touch, how do you change the text tones???

    How do you change the text tone on the IPod's Message???

    Open settings, go to sounds, and then your text tone settings should be there

  • How do you get the text box text properties dialog box to appear on a MAC?

    how do you get the text box text properties dialog box to appear in Adobe Reader XI on a MAC? I know windows is Ctrl-E but can't figure out what to hit for Mac.

    Right-click the toolbar and you should find it there (including the short-cut, which is probably Cmd+E).

  • How do you edit document text in pdf in Acrobat Pro 11 Mac?

    How do you edit document text in pdf in Acrobat Pro 11 Mac? I know I can do it in the Windows version, but can't find same tool in Mac.

    Should be the same but it isn't. I have included a screenshot of my tools choices in both my Mac and PC versions - they are totally different.
    Mac version
    PC Version

Maybe you are looking for