# PNG's and Flash

**URL:** <https://forum.kirupa.com/t/pngs-and-flash/245043>\
**Category:** flash\
**Created:** [November 25, 2007, 7:13pm UTC](https://forum.kirupa.com/t/pngs-and-flash/245043 "2007-11-25T19:13:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joran420](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joran420/32/2329_2.png) [@joran420](https://forum.kirupa.com/u/joran420)\
**Post date:** [November 25, 2007, 7:13pm UTC](https://forum.kirupa.com/t/pngs-and-flash/245043/1 "2007-11-25T19:13:54Z")

</div>

Why does this happen?(Ive never seen this problem before)

[http://www.kinvault.net/LOTRO\_bank/Lab/DJ/images/badpng.swf](http://www.kinvault.net/LOTRO_bank/Lab/DJ/images/badpng.swf)

when i load some pngs into a flash movie  
here is the png  
[http://www.kinvault.net/LOTRO\_bank/Lab/DJ/images/png-8passes.png](http://www.kinvault.net/LOTRO_bank/Lab/DJ/images/png-8passes.png)  
Note: PNG is created from php

```php

$image = imagecreatefrompng($file_tmp);
                imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
                @unlink($filename);
                 imagepng($image_p,$filename);

```

so the png is valid but it loads into the swf as a red square  
[edit] oh yeah heres my code

createEmptyMovieClip("\_mc",1)  
\_mc.loadMovie(“[http://www.kinvault.net/LOTRO\_bank/Lab/DJ/images/png-8passes.png](http://www.kinvault.net/LOTRO_bank/Lab/DJ/images/png-8passes.png)”)
