现在的位置: 首页 > 综合 > 正文

http://sourceforge.net/projects/ming/

2012年09月14日 ⁄ 综合 ⁄ 共 2406字 ⁄ 字号 评论关闭

http://sourceforge.net/projects/ming/

http://www.ibm.com/developerworks/cn/opensource/os-php-flash/index.html?S_TACT=105AGX52&S_CMP=techcsdn#author

=========================================================
http://www.roading.net/blog/post_205.html
找来资料

以前开发项目中也为如何可以用户可以自定义生成出SWF而头大

ming(http://ming.sourceforge.net/) 和swftools(http://www.swftools.org/) 都是开源的项目,都是用c编写的.都可以用来生成swf文件,包括在swf文件内增加图片,声音,视频等素材,也可以在文件内增加代码,使用滤镜.
区别是:
ming:使用起来更方便,资料更多(我所看到的),as支持更好,就是更新太慢.
swftools:工具更齐全(有十多种工具,见下文).但是资料不多.

ming(可以使用php,perl,python生成swf文件,php5安装的时候自带,php5帮助里面用完整的函数说明):
sf: http://ming.sourceforge.net/
更新信息:
http://www.libming.net/moin.cgi/%e6%9c%80%e6%96%b0%e6%94%b9%e5%8a%a8
最近版0.4beta4:
http://sourceforge.net/project/showfiles.php?group_id=18365&package_id=187304
最新版本信息:
http://www.libming.net/moin.cgi/Releases
使用ming开发的站点列表:
http://www.libming.net/moin.cgi/Websites_using_Ming
大量的ming的php实例和源码(看了这些代码你就知道生成一个swf是多么简单,但是你最好明白每句代码的含义):
http://www.gazbming.com/

swftools:
最近版本0.8.1:http://www.swftools.org/download.html
文档(内容太少了):http://www.swftools.org/documentation.html
工具和介绍:
* PDF2SWF A PDF to SWF Converter. Generates one frame per page. Enables you to have fully formatted text, including tables, formulas etc. inside your Flash Movie. It's based on the xpdf PDF parser from Derek B. Noonburg.
* SWFCombine A tool for inserting SWFs into Wrapper SWFs. (Templates) E.g. for including the pdf2swf SWFs in some sort of Browsing-SWF.
* SWFStrings Scans SWFs for text data.
* SWFDump Prints out various informations about SWFs.
* JPEG2SWF Takes one or more JPEG pictures and generates a SWF slideshow.
* PNG2SWF Like JPEG2SWF, only for PNGs.
* GIF2SWF Converts GIFs to SWF. Also able to handle animated gifs.
* WAV2SWF Converts WAV audio files to SWFs, using the L.A.M.E. MP3 encoder library.
* AVI2SWF Converts AVI animation files to SWF. It supports Flash MX H.263 compression. Some examples can be found at examples.html.
* Font2SWF Converts font files (TTF, Type1) to SWF.
* SWFBBox Allows to readjust SWF bounding boxes.
* SWFC A tool for creating SWF files from simple script files.
* SWFExtract Allows to extract Movieclips, Sounds, Images etc. from SWF files.
* RFXSWF Library A fully featured library which can be used for standalone SWF generation. Includes support for Bitmaps, Buttons, Shapes, Text, Fonts, Sound etc. It also has support for ActionScript using the Ming ActionCompiler.

在PHP/JSP中用MTASC编译AS在线生成SWF的方法与介绍

这个方法说老实话我不喜欢,因为要用SHELL.
MTASC是一种用将.as源文件编译成.swf文件的命令行编译器.
在PHP允许SHELL的情况下可以调用。
http://hossy.net/sssc/
这就是作者的地址。
其实没什么难度,因为工作都是MTASC完成的。不能让PHP独立完成。
除了PHP搭建MTASC外壳还有用JAVA搭建MTASC外壳的
http://www.scotthyndman.ca/?p=73
现在有没有不用MTASC做??

抱歉!评论已关闭.