# Dynamic HTML Text and images

**URL:** <https://forum.kirupa.com/t/dynamic-html-text-and-images/272503>\
**Category:** flash\
**Created:** [October 6, 2008, 12:02am UTC](https://forum.kirupa.com/t/dynamic-html-text-and-images/272503 "2008-10-06T00:02:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wisptech](https://avatars.discourse-cdn.com/v4/letter/w/9e8a1a/32.png) [@Wisptech](https://forum.kirupa.com/u/Wisptech)\
**Post date:** [October 6, 2008, 12:02am UTC](https://forum.kirupa.com/t/dynamic-html-text-and-images/272503/1 "2008-10-06T00:02:56Z")

</div>

[FONT=Tahoma][COLOR=black]OK, I am relatively a Flash “Newb” but I’ve done lots of programming and troubleshooting and this little problem is just driving me crazy. Here’s the scenario…[/COLOR][/FONT]

[COLOR=black][FONT=Tahoma]I am duplicating a movie clip to show menu items in an explorer window type view.[/FONT] Each menu item consists of one line of htmlText read from an external text file in this format:[/COLOR]

[FONT=Tahoma][COLOR=#ff0000]\<img src=“i\_fldr.jpg”\>\<b\>Folder1\</b\>\<br\>Folder - 0 bytes[/COLOR][/FONT]

[FONT=Tahoma][COLOR=black]This produces a small icon to the left of two lines of text when assigned to window1\_mc.itemtext1.htmlText exactly as it should. Now the problem, assuming that the button I am clicking corresponding to the htmlText field opens a new movieclip on the next assigned layer with another text file as the source, the text displays as it should but sometimes the image shows, sometimes it doesn’t.[/COLOR][/FONT]

[FONT=Tahoma]Images always show if the movie clip is the only repetition of that movieclip. Images sometimes show on the second repetition. The images never show on the third movieclip. it seems to all depend on how many are open. So if I open MC\_A on lvl 100 it’s fine, then MC\_B on 200 it’s fine, then MC\_C on 300 - no pictures. If I open MC\_C directly onto lvl 100 it’s fine. If I open MC\_A on 100 it’s fine then MC\_D on 1000 - no pics again. However if I open MC\_D onto 1000 without MC\_A (B or C) first, it works great.[/FONT]

[FONT=Tahoma]I’ve made sure that each movie clip gets a unique name, so it shouldn’t be a problem with the variables overlapping. Furthermore, if I trace the value it always appears correctly (with the \<img src…) whether the pictures actually show up or not.[/FONT]

[FONT=Tahoma]Please, does anyone have an idea why?[/FONT]
