Section 1
//Symbol1_1 (SDTMod_fla.Symbol1_1)
package SDTMod_fla {
import SDTMods.*;
import flash.display.*;
public dynamic class Symbol1_1 extends MovieClip {
public var modType:String;
public var targetElement:String;
public var overwrite:Boolean;
public function Symbol1_1(){
addFrameScript(0, this.frame1);
}
function frame1(){
this.modType = ModTypes.BACKGROUND;
this.targetElement = ModElements.BACKGROUND;
this.overwrite = true;
}
}
}//package SDTMod_fla
Section 2
//ModElements (SDTMods.ModElements)
package SDTMods {
public class ModElements {
public static const BACKGROUND:String = "background";
public static const HAIR_TOP:String = "staticHairTop";
public static const HAIR_UNDER:String = "staticHairUnder";
public static const HAIR_BOTTOM:String = "staticHairBottom";
public static const HAIR_BACK:String = "staticHairBack";
public static const DYNAMIC_HAIR_OVER:String = "dynamicHairOver";
public static const DYNAMIC_HAIR_BETWEEN:String = "dynamicHairBetween";
public static const DYNAMIC_HAIR_UNDER:String = "dynamicHairUnder";
public static const DYNAMIC_HAIR_BACK:String = "dynamicHairBack";
public static const HAIR_COSTUME_OVER:String = "hairCostumeOver";
public static const HAIR_COSTUME_UNDEROVER:String = "hairCostumeBetween";
public static const HAIR_COSTUME_UNDER:String = "hairCostumeUnder";
public static const HAIR_COSTUME_BACK:String = "hairCostumeBack";
public static const GAG_FRONT:String = "costumeGagFront";
public static const GAG_BACK:String = "costumeGagBack";
public static const COLLAR:String = "costumeCollar";
public static const EYEWEAR:String = "costumeEyewear";
public function ModElements():void{
}
}
}//package SDTMods
Section 3
//ModPackage (SDTMods.ModPackage)
package SDTMods {
import flash.events.*;
import flash.display.*;
import flash.media.*;
public class ModPackage extends MovieClip {
public const MOD_VERSION:String = "SDTMOD_0.1";
public var beach:MovieClip;
public var modType:String;// = "ModPackage"
private var _mods:Array;
public var modName:String;// = ""
public var modCreator:String;// = "anon"
public var charData:String;
public var targetElement:String;
public var overwrite:Boolean;
private var warningsGenerated:Boolean;// = false
public function ModPackage():void{
this._mods = new Array();
addFrameScript(0, this.frame1);
this.modType = ModTypes.MOD_PACKAGE;
var _local1:* = new SplashScreen();
addChild(_local1);
addEventListener(Event.ENTER_FRAME, this.onFirstFrame);
}
private function onFirstFrame(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, this.onFirstFrame);
this.checkMod();
}
public function registerMod(_arg1):void{
this._mods.push(_arg1);
}
public function get mods():Array{
return (this._mods);
}
public function checkMod():void{
var _local1:uint;
var _local2:String;
trace("Checking mod...");
var _local3:* = this._mods.length;
var _local4:uint;
while (_local4 < _local3) {
_local1 = (_local4 + 1);
if ((this._mods[_local4] is DisplayObjectContainer)){
if (this._mods[_local4].numChildren == 0){
this.warn((((("Mod " + _local1) + " (") + this._mods[_local4].modType) + ") is empty."));
} else {
trace(("Registered mod: " + this._mods[_local4].modType));
};
} else {
if ((this._mods[_local4] is String)){
this.warn((("Mod " + _local1) + " seems to be a String. Make sure there are no quote marks in your registerMod call."));
} else {
if (!(this._mods[_local4] is Sound)){
this.warn((("Mod " + _local1) + " is not a DisplayObjectContainer. Make sure there are no typos in your registerMod call, and that you're registering a named mod that is on the main timeline."));
};
};
};
_local4 = (_local4 + 1);
};
if (_local3 == 0){
this.warn("No mods registered. Make sure you've registered your mods on the main timeline Settings layer.");
} else {
_local2 = ((this._mods.length == 1)) ? "" : "s";
trace((((this._mods.length + " mod") + _local2) + " registered"));
};
if (!this.warningsGenerated){
trace("Mod checks okay!");
};
}
private function warn(_arg1:String):void{
trace(("WARNING: " + _arg1));
this.warningsGenerated = true;
}
function frame1(){
this.registerMod(this.beach);
this.charData = "";
this.modName = "beach";
this.modCreator = "anon";
}
}
}//package SDTMods
Section 4
//ModTypes (SDTMods.ModTypes)
package SDTMods {
public class ModTypes {
public static const MOD_PACKAGE:String = "ModPackage";
public static const BACKGROUND:String = "Background";
public static const HAIR:String = "StaticHair";
public static const DYNAMIC_HAIR:String = "DynamicHair";
public static const HAIR_COSTUME:String = "HairCostume";
public static const GAG:String = "CostumeGag";
public static const COLLAR:String = "CostumeCollar";
public static const EYEWEAR:String = "CostumeEyewear";
public function ModTypes():void{
}
}
}//package SDTMods
Section 5
//SplashScreen (SplashScreen)
package {
import flash.display.*;
public dynamic class SplashScreen extends MovieClip {
}
}//package