Submit Tips/Quickies

Application Architecture : Miscellaneous

dynamically load graphic to flash movie....

Submitted By: Chen Hsien Ching
Date: 12/26/01 11:56

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 errorĦI
Please directly upload .swf fileĦI"; } ?>
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


Comments:

No Messages Found

You can post questions/corrections/feedback here

 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.