Welcome to WebmasterWorld Guest from 54.197.94.141

Forum Moderators: open

Message Too Old, No Replies

Flash htmlText not displaying jpg's

The htmlText element in flash mx2004 refuses to display jpgs

   
2:12 pm on Mar 17, 2004 (gmt 0)

10+ Year Member



In flashMX 2004 there is a new feature that allows you to link jpg's and swf's directly in the htmlText elements. Unfortunately, it wont dislay the jpg. All other html entities work fine.

I have a htmltext that displays html tags, but not images. It displays in the following example "a b". (bold a)

The image is non-progressive, and in the same directory. I have tried locally and on the server. If you guys can offer any advice I would be most appreciative. thanks in advance

It loads it from the file with the following script

script
----------------------------------------------
DynText = new LoadVars();
DynText.load("host.html");
DynText.onLoad = function (success){
if (success){
hosts.html = true;
hosts.htmlText = DynText.host
trace(hosts.htmlText);
}else{
trace ("not loaded");
}
}
----------------------------------------------

hosts.html
----------------------------------------------
host=<b>a</b><IMG SRC="picture.jpg">b
----------------------------------------------

trace
----------------------------------------------
<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#172B84"><B>a</B><FONT SIZE="2"><IMG SRC="picture.jpg"> <FONT SIZE="14">b</FONT></FONT></FONT></P></TEXTFORMAT>

2:45 pm on Mar 17, 2004 (gmt 0)

10+ Year Member



i don't think it allows you to load in the images via html, you can load jpgs dynamically but you have to create movieclips and load the jpegs into them in order to display them using flash mx.