I am using ActiveSWF toolkit to produce dynamic Flash movies from XML. I like it, because only I need to produce new dynamic movie is new XML. PHP code is the same. Additionally, it has quite good documentation. See http://www.activeswf.com
![]() | CXXXIII. Shockwave Flash Functions简介PHP offers the ability to create Shockwave Flash files via Paul Haeberli's libswf module.
需求You need the libswf library to compile PHP with support for this extension. You can download libswf at ftp://ftp.sgi.com/sgi/graphics/grafica/flash/. 安装Once you have libswf all you need to do is to configure --with-swf[=DIR] where DIR is a location containing the directories include and lib. The include directory has to contain the swf.h file and the lib directory has to contain the libswf.a file. If you unpack the libswf distribution the two files will be in one directory. Consequently you will have to copy the files to the proper location manually. 运行时配置本扩展模块在 php.ini 中未定义任何配置选项。 资源类型本扩展模块未定义任何资源类型。 预定义常量以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。
范例Once you've successfully installed PHP with Shockwave Flash support you can then go about creating Shockwave files from PHP. You would be surprised at what you can do, take the following code:
![]()
vivid at bwteam dot org
15-Nov-2004 09:52
I am using ActiveSWF toolkit to produce dynamic Flash movies from XML. I like it, because only I need to produce new dynamic movie is new XML. PHP code is the same. Additionally, it has quite good documentation. See http://www.activeswf.com
Mark Dijkman The Netherlands
14-Jan-2004 07:16
Let's not forget to mention there IS another alternative to Swf-lib and Ming. It's called FreeMovie and is created by Jacek Artymiak from O'Reilly. This piece of art is made out of PHP-files only wich makes it suitable for many platforms. The project is also available via SourceForge as freemovie-php.
manuel DOT leiner AT gmx DOT de
29-Jul-2002 07:20
Just to mention for users of SuSE 8.0. libswf is included with the distro with no fonts. Therefore you must "patch" libswf support. As I didn't find the solution here before and I found a solution I am posting this fix:
daemorhedron
07-Mar-2002 02:50
For those having problems with libswf fonts you can add a system wide variable to point to the fonts dir in your shell.
seek at byte-net dot ro
26-Jan-2001 09:06
Hot to make it right.
isu at tozsdeforum dot hu
17-Jan-2001 12:11
This works also! Write into the script:
mike at nux dot co dot uk
20-Dec-2000 11:22
I am using a Generator alternative Turbine - http://www.blue-pac.com - much cheaper than generator with a new version comming soon with builtin php support.
tbma at usa dot net
28-Oct-2000 10:32
Quick patch for php 4.0.2 to enable sound.
ghisha at inwind dot it
05-Sep-2000 11:02
Writing on directory is not required. You can generate a run-time movie .. by replacing swf_openfile("<filename>", .... ) with swf_openfile("php://stdout", ....) and add before that an
adobernig at netway dot at
12-Jul-2000 12:09
There are 2 prerequisites that must be met to run the test program:
kawa at gui dot uva dot es
06-Jul-2000 09:23
Fonts must be in the directory named "fonts". Lets see... if your code is in /www/swf.php4, you sould make a directory /www/fonts. If you use the example above, copy the files dist/fonts/Mod.f and dist/fonts/Mod.l of the source distribution to into /www/fonts/ to use the font Mod. I think you can use also SET_SWF_FONTS or similar
| ![]() |