Loading .png files dynamically?

Hi all,

First off is there a way to load the .png files like avatars?
I know you can with .jpg but really need to retain the transparency of the .png also the imgs will be link to rather than on my local machine. I thought maybe running a php script to copy the img from www.somewhere.com/img.png and save it to my folder so my swf could actually use them in the movie then.
this is what I have so far any help would be appreciated.
Thanks

<?php

$filedest= “C:\Inetpub\wwwroot”
$file = fopen (“http://www.blahblah.com/img.png”, “r”);
copy($file,$filedest);

?>

The only dynamically importable image file type is .jpg.

:frowning:

Hello,

A conversion to jpg from png can be done with PHP. But, you lose the transparency.

The good news is that you could also dynamically pick up whatever background color you need and use that in the new image through PHP. A kind of “faux” transparency.

Hope that helps
Karen

Convert png to swf, then load swf!