The following section will go over the creation of Partigen Emitter Libraries. This requires knowledge of the .pel format found here.
- First open the text editor of your choice and create a new xml file. Save this as filename.pel
- Next, copy and past the template found here into your new file.
- Fill in as much information as you can at this stage: library name, author, version, pgversion, and require8.
Your file should look something like the following:
- Now open Flash and select the emitter with the configuration you want to save in the PEL file. Open the parameters for it and open the Config section, then click "Generate":
- Right click in the text box and "Select All" then right click again and "Copy" or "Cut". You now have the entire configuration for that emitter in your clipboard. How easy is that!
- Now go back to your .pel file and paste the contents in the config attributes under emitter.
- Copy the source from the config line and paste it in the source attribute as well. Name your preset and group if you haven't already as well.
- Repeat as needed for groups and emitters.
You should end up with a file that resembles the following:
- If you have any custom particles, be sure to export those as well in order for proper function.
That's it for creating a Partigen Emitter Library. When distributing the library, be sure to include the .pel file, as well as both the .swf and the .swc files for each needed custom particle for it to work with the Partigen Library.
To include your custom library in the Partigen Library, you need to place the .ple file in the Partigen Emitter Library folder. This can be found in the configuration folder for Flash:
- Windows: C:\Documents and Settings\user name\Local Settings\Application Data\Macromedia\Flash 8\language\Configuration\Components\Partigen Emitter Library\
- Macintosh: Macintosh HD/Users/user name/Library/Application Support/Macromedia/Flash 8/language/Configuration/Components/Partigen Emitter Library/
Once all required file are in place, all you have to do* is click "Reload" on the Partigen Library panel to load the new particles and presets. No need to restart Flash!
*In Flash MX2004, you have to manually reload the Components panel, but not in Flash 8 or higher.