Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.events.Event;
- import com.whirled.AvatarControl;
- if (_ctrl == null) {
- _ctrl = new AvatarControl(this);
- _ctrl.setHotSpot(275, 365, 280);
- _ctrl.setMoveSpeed(110);
- _body = new ConfigXPBody(_ctrl, this, 540);
- _body.registerOption("linkhair1Color", ConfigXPBody.OPTION_COLOR_ALL, 0x936D48);
- _body.registerOption("clothingColor", ConfigXPBody.OPTION_COLOR_ALL, 0x015345);
- _body.registerOption("OtherclothingColor", ConfigXPBody.OPTION_COLOR_ALL, 0x643936);
- _body.registerOption("kawaiiirisColor", ConfigXPBody.OPTION_COLOR_ALL, 0x005580);
- _body.registerOption("Armpad1Color", ConfigXPBody.OPTION_COLOR_ALL, 0x7E3E3D);
- _body.registerOption("UnderForearmPadColor", ConfigXPBody.OPTION_COLOR_ALL, 0x434346);
- _body.registerOption("ElbowClothingColor", ConfigXPBody.OPTION_COLOR_ALL, 0xA38374);
- _body.registerOption("bootsColor", ConfigXPBody.OPTION_COLOR_ALL, 0x834A46);
- _body.registerOption("ShieldBaseColor", ConfigXPBody.OPTION_COLOR_ALL, 0xAC9DE7);
- _body.registerOption("ShieldTrimColor", ConfigXPBody.OPTION_COLOR_ALL, 0x990000);
- _body.registerOption("LHandNumber", ConfigXPBody.OPTION_DROPDOWN, 1,
- [ "None", "Mastersword" ]);
- _body.registerOption("WeaponNumber", ConfigXPBody.OPTION_DROPDOWN, 1,
- [ "None", "Mastersword" ]);
- _body.registerOption("ShieldNumber", ConfigXPBody.OPTION_DROPDOWN, 1,
- [ "None", "Deku", "Hylian", "Mirrior" ]);
- _body.registerOption("ForearmPadNumber", ConfigXPBody.OPTION_DROPDOWN, 1,
- [ "None", "Arm Pad" ]);
- _body.setRecolorFrames("ShieldBaseColor",
- [ "RForearm","Shield","DekuShield","ShieldBase" ],
- [ "RForearm","Shield","HyruleShield","HalfHyruleShield","ShieldBase" ],
- [ "RForearm","Shield","HyruleShield","HalfHyruleShield2","ShieldBase" ],
- [ "RForearm","Shield","MirriorShield","MirriorShield2","MirriorShield3","ShieldBase" ],
- [ "RForearm","Shield","MirriorShield","MirriorShield2","MirriorShield32","ShieldBase" ]);
- _body.setRecolorFrames("ShieldTrimColor",
- [ "RForearm","Shield","HyruleShield","HalfHyruleShield","ShieldTrim" ],
- [ "RForearm","Shield","HyruleShield","HalfHyruleShield2","ShieldTrim" ],
- [ "RForearm","Shield","MirriorShield","MirriorShield2","MirriorShield3","ShieldTrim" ],
- [ "RForearm","Shield","MirriorShield","MirriorShield2","MirriorShield32","ShieldTrim" ]);
- _body.setRecolorFrames("bootsColor",
- [ "RFoot","boots" ],
- [ "LFoot","boots" ],
- [ "RShin","boots" ],
- [ "LShin","boots" ],
- [ "RThigh","boots" ],
- [ "LThigh","boots" ]);
- _body.setRecolorFrames("OtherclothingColor",
- [ "RBicep","IRBicep","Otherclothing" ],
- [ "LBicep","IRBicep","Otherclothing" ],
- [ "Pelvis","belt1","Otherclothing" ],
- [ "Body","Otherclothing" ],
- [ "Pelvis","Loin1","Loin2","Otherclothing" ]);
- _body.setRecolorFrames("ElbowClothingColor",
- ["RBicep","IRBicep","ElbowClothing"],
- ["LBicep","IRBicep","ElbowClothing"],
- ["RThigh","ElbowClothing"],
- ["LThigh","ElbowClothing"],
- ["RForearm","ElbowClothing"],
- ["LForearm","ForearmPad","ForearmPad2","ElbowClothing"],
- ["LForearm","ElbowClothing"]);
- _body.setRecolorFrames("kawaiiirisColor",
- ["theface","theface2","Iris","kawaiiiris"],
- ["theface","theface2","Iris2","kawaiiiris"]);
- _body.setRecolorFrames("Armpad1Color",
- ["RForearm","ForearmPad","Armpad1"],
- ["LForearm","ForearmPad","Armpad1"]);
- _body.setRecolorFrames("UnderForearmPadColor",
- ["RForearm","ForearmPad","UnderForearmPad"],
- ["LForearm","ForearmPad","UnderForearmPad"]);
- _body.setRecolorFrames("clothingColor",
- [ "RBicep","IRBicep","clothing" ],
- [ "Body","clothing" ],
- [ "LBicep","IRBicep","clothing" ],
- [ "Belly","clothing" ],
- [ "Pelvis","Stomach","clothing" ],
- [ "Pelvis","Loin1","Loin2","clothing" ],
- [ "BHair", "clothing" ]);
- _body.setRecolorFrames("linkhair1Color",
- [ "FHair", "linkhair1" ],
- [ "Skull", "linkhair1" ],
- [ "theface", "theface2","linkhair2","linkhair1"],
- [ "theface", "theface2","linkhair1"]);
- _body.setImageConfigFrames("LHandNumber",
- [ "LHand" ]);
- _body.setImageConfigFrames("WeaponNumber",
- [ "RHand","Weapon" ],
- [ "LHand","Weapon" ]);
- _body.setImageConfigFrames("ShieldNumber",
- [ "RForearm","Shield" ]);
- _body.setImageConfigFrames("ForearmPadNumber",
- [ "RForearm","ForearmPad" ],
- [ "LForearm","ForearmPad" ]);
- _body.completeConfig();
- addEventListener(Event.UNLOAD, handleUnload);
- function handleUnload (... ignored) :void {
- _body.shutdown();
- }
- }
- var _ctrl :AvatarControl;
- var _body :ConfigXPBody;
Add Comment
Please, Sign In to add comment