Doh! I've figured it out: the Adobe Extension Manager is not just for loading for MXPs. It also *creates* MXPs. Seems you just need to create a file with extension *.mxi in the same folder as the *.swc. Then in Adobe Extension Manager, choose File -> Package Extension, and select the mxi, and save the mxp.

There's info on how to create an mxi (and by extension an mxp) in this excellent post by Mike Jones: http://blog.flashgen.com/components/distribution/distribution-via- mxp/

For my own test, I stripped down the mxi to just this:

<macromedia-extension name="File Transfer Connector" version="1.0.0" type="flashcomponentswc" requires-restart = "false" >
     <author name="Gerry Beauregard - Sonoport.com" />
     <products>
<product name="Flash" version="8" primary="true" required="true"/>
     </products>
     <description>
          <![CDATA[Description of what the heck this thing is.]]>
     </description>
     <ui-access>
          <![CDATA[Some info on how to use it.]]>
     </ui-access>
     <license-agreement>
          <![CDATA[License agreement text goes here]]>
     </license-agreement>
     <files>
<file source = "TestSWC.swc" destination = "$flash/ Components/Sonoport.com" shared="false"/>
     </files>
</macromedia-extension>

That simple mxi plus the swc was enough for the Extension Manager to create an mxp, which I could then add by choosing File -> Install Extension.

Does anybody know offhand whether an mxp is as easily decompiled as a swc?


On 2009-05-11  , at 14:39 , Gerry Beauregard wrote:

I'm development a library of interactive sound effects in Action Script 3 using Flex Builder. I've got loads of experience with audio coding on various platforms in various languages (especially C++). However, I'm relatively new to Flash development, so I have some (perhaps naive) questions about how to package the library. Perhaps some of you can help.

Until now, I've been thinking of packaging the library as a SWC, but after some investigation, it seems that flash components are normally packaged & sold as MXP files, e.g. on sites like flashloaded.com. As far as I can tell, Flex Builder doesn't provide any way to directly create an MXP.

Is there some extra plugin for Flex Builder for creating an MXP? Or is there some separate tool that can create an MXP from a SWC?

I've seen the Adobe Extension Manager mentioned in the context of MXPs... but from what I've read so far, it sounds like it manages loading of MXPs, rather than their creation. I've seen some docs on MXI files, which appear to simply be XML files for defining what goes into an MXP... but I still haven't figured out what tool will read in an MXI and files to which it refers to generate an MXP... any tips would be most welcome!

I'm developing on a Mac, btw, but can easily switch to using Windows if the tools available on Windows are better.


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to