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



RSS Twitter
Tips Application Architecture

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 : http://wahlers.de/webcam.html

executing jpeg2swf in php:
<?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:

http://openswf.org/links.html

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Chen Hsien Ching

Comment:



Comment:

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