View Full Version : Age old Question...img tag in dynamic text boxes
Xaser
07-13-2005, 02:38 AM
I think I have officially read every thread on this subject and never found a viable solution to the problem. I have a dynamic textbox that loads text from a .txt file that is html formatted. Everything works beatifully with just about all the html 2.0 tags, except <img src = ..... Alls I get is a blank space... anyone know how to fix this problem.. or has anyone seen somethign on these forums that I haven't? Thanks in advance.....
Rice Cooka
07-13-2005, 02:45 AM
I've only gotten Jpegs to work so if you're trying to bring in gifs or pngs well, good luck! I wasn't able to get them to work!
Another option if you want non-square graphics is to actually import the images into the fla itself, make them movie clips (exported for ActionScript) and then just set the src for the img tags to the name of the clips.
Of course, then you potentially open up another can of worms, as seen in my mostly ignored thread:
http://www.actionscript.org/forums/showthread.php3?t=78500
Xaser
07-13-2005, 02:59 AM
They are jpegs and jpegs are fine, but I can't import them as my flash file is already 1 MB and i don't wan't it getting any bigger. How did you get your jpegs to work?
sleekdigital
07-13-2005, 03:11 AM
jpgs should work, but are you sure they are not progrssive jpgs? Flash cannot load progrssive jpgs
Xaser
07-13-2005, 03:13 AM
ahhh I am not sure I will check real quick
Dont go anywhere plz
Xaser
07-13-2005, 03:17 AM
nope I just made a new one and redid everything and made sure it wasn't progressive... it's baseline(standard) and only 60 x 60 pixels... 16K .....it just flat out doesn't show up... do you have any examples or anything or code I can see?
sleekdigital
07-13-2005, 03:20 AM
I've only done little tests with it myself and although I have seen it working, it was always very buggy at best, so I gave up on it in favor of my "Scroll List" ...
http://www.layer51.com/proto/d.aspx?f=1396
http://www.sleekdigital.com/downloads/scrolllistexample.zip
Xaser
07-13-2005, 03:25 AM
but you are using a scrollpane... I need to know how to do it in a dynamic text box
sleekdigital
07-13-2005, 03:48 AM
I'm just telling you what I chose to do. What I do with my scroll list is make list items with whatever text and image layout I might want. Its not exactly the same as displaying html, but for me, it's better than dealing with the bugs associated with images in text boxes. I'm not sure Flash will ever be that good at displaying HTML, that is not what Flash was made for .. that's what a Web Browser is made for. Even Macromedia admits that sometimes its better to use an HTML page to display things as opposed to Flash.
Xaser
07-13-2005, 03:52 AM
Well unfortunately this is kind of a unique scenario.....I will find a way to make it work!!!!!!!!
Thanks though!
sleekdigital
07-13-2005, 04:00 AM
You might check this out ...
http://sourceforge.net/projects/dengmx/
There are a few other similar projects out there too...
http://sourceforge.net/projects/fpxhtmlrender
Xaser
07-13-2005, 04:10 AM
Coolies.. Good info for me.. Thanks a bunch...
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.