PDA

View Full Version : Embedding Content in Dynamic Text


mikiti
03-30-2005, 10:10 PM
Ok... I've looked everywhere and I need some help. According to books/websites I've read TextFields support the use of the <img> tag to embed Movie Clip content. Unfortunately, I can't find any documentation on how to address movie clips using the <img> tag. Can anyone help me? I just need the syntax to make this call as well as what linkage settings I need to have for the movie clip item in the library.

Thanks in advance!

tris
03-30-2005, 11:37 PM
I found some info in the Flash docs searching for "img" on the page "Supported HTML Tags" there is some info on how to do this + more.

Basically you just have to give a movie clip an Identifier (under Linkage) and then reference that identifier in the img tag
e.g.
_txt.htmlText = "<img src='YOUR_MOVIE_IDENTIFIER_HERE'>";

mikiti
03-31-2005, 08:17 PM
Works great.... I just wish that Flash wouldn't line break when embedding the movie clip into the text field as it makes positioning the imported clip a pain.