homepage Welcome to WebmasterWorld Guest from 54.227.5.234
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Flash htmlText not displaying jpg's
The htmlText element in flash mx2004 refuses to display jpgs
martinbarlow




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

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>

 

wibble




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

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved