![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 10
Rep Power: 0
![]() |
html in flash
Ok, im doing a dynamic flash website and i'm getting the text from a text file that uses html tags. Everything works no problem except i cant figure out what tag to use to put in images. the <img> tag doesnt work. Anyone know what does?
|
|
|
|
|
|
#2 |
|
Newbie
Join Date: Apr 2005
Location: Kansas
Posts: 22
Rep Power: 0
![]() |
In flash because your htmlText = ""; is in double quotes, you have to use single quotes. Also I think there might be the issue that you can only use gifs although I'm not positive. it'd look something like this:
fieldName.htmlText=" <img src='path to pic'> "; Hope that helps . I have an example if you want me to post it. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2005
Location: Kansas
Posts: 22
Rep Power: 0
![]() |
I think it takes .jpg and .swf only, not .gif.... Also it is important to note that when pathing, you have to leave a space between '\' and the directory otherwise it will truncate the first letter and it won't work.
e.g.: textField.htmlText="<img src='C:\ Documents and Settings\ Dave\ Desktop\ Files\ website\ forweb\ gifs\ images\ mozilla_prompt.jpg'> |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|