PNG's and Flash

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

when i load some pngs into a flash movie
here is the png
Note: PNG is created from php

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

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