七、打包你的插件。
当一切测试无误,你的插件做好后,你还需要将它与其他朋友分享。由于新版的Fireworks MX支持标准的MXP插件封装格式,因此这里我再简单介绍一下封装你的插件的办法。
安装完Fireworks MX后,在你的Commands命令下会找到Manage Extensions命令,这可以启动插件管理器,封装插件首先需要你准备好你的SWF文件和相应的MXI文件,SWF也就是你在Flash MX中开发的插件,MXI文件包含了关于此插件的说明和相关信息,此文件要求为标准的XML格式,主要内容如下:
<macromedia-extension name="MacButton" version="1.0" type="Command"> <!-- List the required/compatible products --> <products> <product name="Fireworks" version="6" primary="true" /> </products> <!-- Describe the author --> <author name="Mengjue" /> <!-- Describe the extension --> <description> <![CDATA[This command can easy creative Mac style button.]]> </description> <!-- Describe where the extension shows in the UI of the product --> <ui-access> <![CDATA[To use MacButton V1.0, choose Commands > Bitgenius > MacButton.]]> </ui-access> <!-- Describe the files that comprise the extension --> <files> <file name="MacButton.swf" destination="$fireworks/configuration/commands/bitgenius/" /> </files> <!-- Describe the changes to the configuration --> <configuration-changes> </configuration-changes> </macromedia-extension>
你可以很容易看懂其中需要你填写的,插件名称、开发作者、插件说明、执行路径以及插件的安装目录,将他们修改为你自己希望的,并保存为MXI文件。准备好你的SWF和MXI文件并放在同一个目录下,然后就可以打包他们了。
转到Fireworks MX,启动Extensions Manage插件管理器。执行File>Package Extension,选择你刚才写好的MXI文件,并为你最终的插件起一个名字,Extension Manage会将你的SWF文件和MXI文件打包为一个单独的MXP文件,非常简单。
出处:
责任编辑:蓝色
上一页 全部代码 下一页 打包为面板形式
◎进入论坛Photoshop、Fireworks版块参加讨论
|