# Trouble loading a PNG...?

**URL:** <https://forum.kirupa.com/t/trouble-loading-a-png/160341>\
**Category:** flash\
**Created:** [August 25, 2005, 7:39am UTC](https://forum.kirupa.com/t/trouble-loading-a-png/160341 "2005-08-25T07:39:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CEOofAEP](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@CEOofAEP](https://forum.kirupa.com/u/CEOofAEP)\
**Post date:** [August 25, 2005, 7:39am UTC](https://forum.kirupa.com/t/trouble-loading-a-png/160341/1 "2005-08-25T07:39:51Z")

</div>

Greetings & Salutations 😃

As far as I know, Flash supports PNGs, doesn’t it?

The problem is, if I import the graphic into the library, it works- but if I load it on the fly, from the same folder the flash file is in, using “htmlText”, it doesn’t display. Any ideas why?

I included the file (icon\_sub.png) in case you get the chance to / feel like testing it yourself 🙂 (because from how it looks to me, it might be a problem with the file, not the code)… The code I use is fairly simple:

```auto
var tickersymbol_string = "<p>_<img src='icon_sub.png' width='22' height='30' hspace='0' vspace='0'></p>";

```

(it’s usually a loop but I distilled it to just this line)

And then:

```auto
TickerDataSymb_txt.htmlText = tickersymbol_string;

```

…yes, the field “TickerDataSymb\_txt” exists and is named. If I use a “JPG” of the same size (dimensions), it works… but I need the transparency of the PNG.

This is bogus… :shifty:
