Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package {
- import modifications.ModArchive;
- //File should be named ARCH_ShygalMod.as so Flash CC/CS will make the archive the main mod
- public class ARCH_ShygalMod extends ModArchive
- {
- public function ARCH_ShygalMod()
- {
- //Add the character and music mods into the archive.
- modsList.push(new ACHAR_ShygalMod);
- modsList.push(new M_ShygalMusicMod);
- }
- }
- }
- //Note that the other mods and the imports they rely on are outside the the package. This is necessary are AS3 hates when multiple classes are exposed in the same package in the same file. This method gets around that.
- import modifications.AnimatedCharacterMod;
- import modifications.MusicMod;
- //Character mod, note that the class is not public.
- class ACHAR_ShygalMod extends AnimatedCharacterMod{
- public function ACHAR_ShygalMod () {
- initialAnimationContainer = new ShygalAnimations();
- m_menuIcon = new ShygalIcon();
- m_characterName = "Shygal";
- }
- }
- //Music mod. Again, this class is not public
- class M_ShygalMusicMod extends MusicMod{
- public function M_ShygalMusicMod () {
- sourceSound = new ShygalTheme();
- musicName = "ShygalMusic";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment