PHPBuilder - dynamically load graphic to flash movie....

RSS Twitter

dynamically load graphic to flash movie....

by: Chen Hsien Ching
December 26, 2001

You can grudgingly use jpeg2swf program to dynamically convert jpeg to swf .

download it from :

executing jpeg2swf in php:

passthru("./jpeg2swf -v /test/foo.jpeg /test/anofoo.swf",$stat);

//$stat is unix exit status,zero for success
if($stat) { 
 echo "jpeg2swf execution errorI
Please directly upload .swf fileI"; } ?>
Then using "loadmovie" actionscript to load converted file.

Note:command line style is only for *nix, jpeg2swf for win is graphical app,it's API only called by ASP :-(

As for sound,i haven't find solution,unless you use swf generator,but this require more prerequisite knowledge:

Comment and Contribute

Your comment has been submitted and is pending approval.

Chen Hsien Ching



(Maximum characters: 1200). You have characters left.