PDA

View Full Version : Multiple <img> tags don't appear in text field


younify
09-26-2004, 06:21 AM
Hi,
I'm loading html text from an external xml file into a dynamic text field.
I can get multiple paragraphs and one image appearing.. no problem.
But the Flash Player seems unwilling to every display more than one image.
Has anyone come across this? Any ideas?
Cheers,
Y

farafiro
09-26-2004, 06:45 AM
Nop, it diplays allof them but you should spacify a place for the image (_x,_y), so it's better to use CSS ti format the textfield to load the text and arrange the images

younify
09-26-2004, 07:39 AM
Hi, thanks for the reply.. so you mean the unseen images are being displayed outside of the text field boundaries?
I'd really appreciate it if you could post some example code, or link, to help with the positioning of multiple images and text.
Thanks!
B

farafiro
09-26-2004, 07:50 AM
nop, not outside the boundries, just over the other image
try thistheText.htmlText = "this is the first image <img src='image1.jpg' align='left'> <br>and the second <img src='image2.jpg' align='right'>"

disseny_s
09-27-2004, 10:18 AM
younify,

I'm having lots of trouble loading html text in xml file...flash just keeps printing html code instead of parsing (or rendering?) it...could you show me an example of your source XML file? just with the XML declaration and some node with html would do.... I would realy apreciate that....

thx

S.

post here
or mail:

santi@aboutmarla.com

farafiro
09-27-2004, 10:26 AM
disseny_s
http://www.actionscript.org/tutorials/beginner/XML-Formatted_Content/index.shtml
http://www.actionscript.org/tutorials/beginner/css_in_flash/index.shtml

disseny_s
09-28-2004, 12:34 AM
thx farafiro....the tutorials are great they realy helped me :p