This content has been marked as final. Show 6 replies
This is an html problem. you need to wrap the image tag with its own a href tag. Something like this might be what you want:
I tried your recommendation, but unfortunately it does not work when you add square brackets 
it works without them, but I need to use them.
Do you have any suggestion?
No, it is a Flash file.
I got the answer below from another forum. Do you know if there is any way to work around this? Thanks
from the help docs:
In general, an image embedded in a text field appears on the line following the <img> tag. However, when the <img> tag is the first character in the text field, the image appears on the first line of the text field."
this means that if you say:
textfield.htmlText = "<img src='image.jpg'>Text";
it'll show the image then text directly to the right of it. however, if you put ANYTHING before the image tag, it'll cause the whole thing to break on lines, including the "Text" afterward that had previously appeared to the right.
I just tried an example using AS2 and I get an image with text next to it using <p> tags for the text. I made no difference whether I add anchor tags or not.
I have no idea what purpose the brackets perform unless you just want to see them on the screen.
Where did that help docs quote come from?
The brackets are only to see them on the screen.
The Help quote is from:
Learning ActionScript 2.0 in Adobe Flash
Working with Text and Strings > Using HTML-formatted text > About embedding images, SWF files, and movie clips in text fields