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>
...
Images can be included in TextArea control using htmlText property:
ta.htmlText = '<img src="http://..."/>';
How can i reference embeded images?
An example:
<mx:TextArea xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
[Embed(source='../assets/img.gif')]
public var img:Class;...
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 ...
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...
Is there any way to call an action script function from an anchor which defined in TextArea component's htmlText property.
Thank you
...
Hi Guys,
is it possible to convert htmltext in object and move that object in textarea?
Regards,
Shivang
...
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?
...
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...
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 ...
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...
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...
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 ...
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...
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...
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...
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 ...
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...
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...
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...
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...