This content has been marked as final. Show 4 replies
Create a text field and give it an instance name e.g. tTextField.
set its html property to true. e.g. tTextField.html = true;
set the html text to use your node. e.g. tTextField.htmlText = yourNode
you could use an img tag to embed the image in the text field or maybe add bear.jpg as an attribute to your fulltext node. e.g. <fulltext image="bear.jpg"> then retrieve it from there.
You may want to consider looking at this... http://www.informit.com/guides/content.asp?g=flash&seqNum=393&rl=1
Flash can use HTML - (though basic) and render it in a text field - including images. You can even style it with CSS.
There are sample files for download and it's pretty easy to change what you want.
I used a simplier version of this on the following site: http://www.msnsportsnet.com/whywv
Hope it helps.
Never needed to have a childnode inside of html. But when I need to include html and I don't want Flash to think that the html is child nodes I use CDATA tags around the html text.
How do you plan to let Flash know what the <smallimage> part means? AFAIK that isn't a standard HTML tag and certainly it isn't one that Flash understands.
<smallImage srce="bears.jpg" />
<p>once upon a time there was a<b>bear</b></p>
<p>this bear was <i>huge</i></p>
Perhaps something like the above is what I would design, but I'm not sure. It all depends upon exactly what you are trying to do.
great many thanks for all your responses, i've got some good leads to go on, esp the embedding images in text fields idea.