htmltext

displaying an image inline in TextArea.htmlText

I would like to display some smiley's inbetween text in my chatbox but when i add an image it gets displayed on a seperate line... Any ideas? <mx:TextArea id="myChat" width="271" height="238" backgroundColor="#ffffff" borderThickness="0" editable="false" enabled="true" horizontalScrollPolicy="off" wordWrap="true"> <mx:htmlText> ...

Flex. Embeded images in htmlText

Images can be included in TextArea control using htmlText property: ta.htmlText = '<img src="http://..."/&gt;'; How can i reference embeded images? An example: <mx:TextArea xmlns:mx="http://www.adobe.com/2006/mxml"&gt; <mx:Script> <![CDATA[ [Embed(source='../assets/img.gif')] public var img:Class;...

Flex. Images aligning in htmlText

I set htmlText property of a TextArea to the following value: <img src="img.gif" />Some text<br><img src="img.gif" />Some text The top edge of "Some text" is aligned to the top edge of the corresponging image. How to align it by bottom edges (the bottom of the text to the bottom of the image)? Is it possible? Remark: image's height ...

Flex3: Canvas over TextArea

There are two issues with TextArea htmlText that I posted as single questions: embeded images and images aligning. It's just impossible to solve this problem using only TextArea component. One of the solutions is to use images layer over TextArea. <mx:Canvas> <mx:TextArea id="content" width="100%" height="100%" /> <mx:Canvas i...

Flex: How to call an actionscript function from htmlText anchor

Is there any way to call an action script function from an anchor which defined in TextArea component's htmlText property. Thank you ...

htmltext as object in flex

Hi Guys, is it possible to convert htmltext in object and move that object in textarea? Regards, Shivang ...

Can I control the context menu on a link in htmlText when using Flex?

I created a Flex application with a textArea. I'm populating the textArea's htmlText property. I have a context menu on the textArea, but I don't see how to make a different context menu when the user right clicks on a <a href...>link</a>. Can I control the context menu for a link displayed inside of the htmlText of a mx:TextArea? ...

ActionScript 3 TextArea htmlText styling using <span> tag

According to this webpage, the htmlText property in TextArea can handle CSS text style if using span tag. I want to format multiple tags in my code. Something like: var tags:TextArea = new TextArea(); tags.htmlText = "<span style='color: rgb(165, 150, -90); font-size: 0.955882610016677em'>street</span>, <span style='color: rgb(168...

Change UIWebView's color while loading content

I have a UIWebView in my app that shows some html-formatted text (loaded from a .plist file from my bundle). The UIWebView takes about 1 second to render the text on the screen and during that second the whole UIWebView is white. I have tried setting the backgronud color of the view to clear or black but that did not do anything. I also ...

How can I reference only a portion of a TextArea's htmlText block?

I have a number of very poor-quality pdf documents that look like 80's photocopies, which I'm rebuilding in Flash (Flex Builder 3 MXML application), representing paragraphs of text in TextAreas so that selected portions can be bold or italic, or whatever I need. I need a way to apply toolTips or event listeners to individual words withi...

How Do I handle IOErrors From HTML Enabled Text Fieds in AS3

If I'm loading images via the <img> tag in a dynamic text field and an IOError is thrown, what would I attach the event listener too? the text field? I tried this... var textField:TextField = new TextField(); textField.htmlText = "here is some text <img src='image.jpg'> and then some more"; textField.addEventListener(IOErrorEvent.IOErr...

Broken htmlText in Actionscript 3.0 - funky display from incremented display using string.substring

This is an issue with textField.htmlText in actionScript 3.0 and the class I'm making for it. In an attempt not to post my whole class, I've managed to boil down the problem to what seems like a silly and almost impossible-to-overcome issue. It seems that TextFields (specifically, ones created with ActionScript) have an unbearably hard ...

Is there a negative for Courier new font?

I want to make a text highlight in flex textArea but its htmlText doesn't support <font bgcolor='#FFFF00'> part of my text </font> so I'm searching for a font witch is the opposite of Courier new, when I embed it in flash, and write with that color I get highlight effect for that part of my text , as I type <font family="negativeOfCouri...

htmltext of TextArea in Flex 3 disappears when embedding fonts!

hello, I have textArea which gets the text through user input in runtime. User input comes through Richtexteditor so it is html I save the html text from Richtexteditor to textArea's htmltext property. everything seems to be fine! till I try to embed fonts!! (I need to embed fonts because I apply a fade effect to the TextArea.) With em...

[AS3] htmlText not showing bold or italics font

So I have a MovieClip asset with a dynamic textfield sitting inside of it. I export my .fla as a .swc to use within Flash Builder 4, and create instances of the asset with code, populating the text dynamically from XML. My issue is that even though I have htmlText enabled, bold and italics tags don't appear to be working. I have a fee...

Flex 4 htmlText - <a> with <img> doesnt work

Wow - I cant believe I actually have a question for Stack O'Flow! Been here many times but never needed to ask till now so thanks in advance! I have a Flex 4 app that I want to embed htmlText with an anchor tag and an image. The image does not display no matter what I do. I have even tried textflow with no luck. The image simply will ...

Flash AS3 and XML: way to fix line breaks in htmlText that uses <b> tags in the xml?

I'm importing text in from an xml file and i'm using htmlText to try to keep some styling with tags. I have both the regular and bold face font embedded, and the bolding works fine. The problem is that it ads spaces around the words in bold like a paragraph indent and then makes a line-break after them. What's going on, is there a way t...

how to add image to richTextEditor in flex3?

im trying to add text and images to RTE and on button click the same will posted to mysql thru http service and will b displayed in a text box from DB. only problem is adding image to rte. i have added a button to browse the image file from localfiles.not succeeded. is it possible to add image bcoz i have googled reg this unable to find...

Flash dynamic HTMLText displaying erratically in TextField

Hey, HTMLText is displaying really strangely. I'm displaying a textField with htmlText provided through XML, and in this bulleted list it'll display the first line all on one line, keep going off the end of the textareas size (ie. not do multiline) until the last word of the bullet, then put that word at the start of the next line. And...

tinyMCE to AS3 htmlText

I'm using tinyMCE to edit/markup text in a Zend Framework backend. I'd like to use the generated HTML in a Flash AS3 Application. The problem is that Flash doesn't support attributes in <span>'s, <em> tags, <strong> tags etc. I guess there are two possibilities here: change the tinyMCE config so it uses font-tags instead of span's, <b...