以上打包的插件安装后会在Commands命令中发现它,还有一种插件是标准的面板形势,例如新的Align插件,制作这种插件也很简单,仅仅需要修改MXI文件即可,例如我们将刚才的SWF文件另起一个名字,并新建一个MXI文件,内容修改为以下内容:
<macromedia-extension name="MacButtonChanel" 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 Window > MacButtonChanel.]]> </ui-access> <!-- Describe the files that comprise the extension --> <files> <file name="MacButtonChanel.swf" destination="$fireworks/configuration/command panels/bitgenius/" /> </files> <!-- Describe the changes to the configuration --> <configuration-changes> </configuration-changes> </macromedia-extension>
重新打包并安装后,你会在Windows命令下发现新增了一个Bitgenius>MacButtonChanel命令,启动后即为标准的命令面板形势,同样也可以拖动并与其他面板成组。如下图所示:

需要注意的是有些插件针对的是选择对象,也就是说你必须先选择一个或多个对象,然后才可以执行此命令,则这种插件最好打包成Command形式,并在插件中添加选择判断,当有选择对象时才执行此命令。而不要打包成面板形式插件。还有就是如果你希望开发的是一个面板形式的插件,一定要注意他的宽度,否则太宽的面板会影响其它面板的布局。
此时你就可以把这个MXP文件与其他人分享了,当他们的到此插件文件后,可以在Fireworks MX中启动Extension Manage管理器,然后执行File>Install Extension,选择此MXP文件,插件就自动安装到原先设定的目录中。
出处:
责任编辑:蓝色
上一页 打包你的插件 下一页 结束语
◎进入论坛Photoshop、Fireworks版块参加讨论
|