Guest User

Untitled

a guest
Apr 25th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.14 KB | None | 0 0
  1. import flash.events.Event;
  2. import com.whirled.AvatarControl;
  3.  
  4. if (_ctrl == null) {
  5. _ctrl = new AvatarControl(this);
  6. _ctrl.setHotSpot(275, 365, 280);
  7. _ctrl.setMoveSpeed(110);
  8. _body = new ConfigXPBody(_ctrl, this, 540);
  9.  
  10.  
  11. _body.registerOption("linkhair1Color", ConfigXPBody.OPTION_COLOR_ALL, 0x936D48);
  12. _body.registerOption("clothingColor", ConfigXPBody.OPTION_COLOR_ALL, 0x015345);
  13. _body.registerOption("OtherclothingColor", ConfigXPBody.OPTION_COLOR_ALL, 0x643936);
  14. _body.registerOption("kawaiiirisColor", ConfigXPBody.OPTION_COLOR_ALL, 0x005580);
  15. _body.registerOption("Armpad1Color", ConfigXPBody.OPTION_COLOR_ALL, 0x7E3E3D);
  16. _body.registerOption("UnderForearmPadColor", ConfigXPBody.OPTION_COLOR_ALL, 0x434346);
  17. _body.registerOption("ElbowClothingColor", ConfigXPBody.OPTION_COLOR_ALL, 0xA38374);
  18. _body.registerOption("bootsColor", ConfigXPBody.OPTION_COLOR_ALL, 0x834A46);
  19. _body.registerOption("ShieldBaseColor", ConfigXPBody.OPTION_COLOR_ALL, 0xAC9DE7);
  20. _body.registerOption("ShieldTrimColor", ConfigXPBody.OPTION_COLOR_ALL, 0x990000);
  21.  
  22.  
  23. _body.registerOption("LHandNumber", ConfigXPBody.OPTION_DROPDOWN, 1,
  24. [ "None", "Mastersword" ]);
  25.  
  26.  
  27. _body.registerOption("WeaponNumber", ConfigXPBody.OPTION_DROPDOWN, 1,
  28. [ "None", "Mastersword" ]);
  29.  
  30. _body.registerOption("ShieldNumber", ConfigXPBody.OPTION_DROPDOWN, 1,
  31. [ "None", "Deku", "Hylian", "Mirrior" ]);
  32.  
  33. _body.registerOption("ForearmPadNumber", ConfigXPBody.OPTION_DROPDOWN, 1,
  34. [ "None", "Arm Pad" ]);
  35.  
  36. _body.setRecolorFrames("ShieldBaseColor",
  37. [ "RForearm","Shield","DekuShield","ShieldBase" ],
  38. [ "RForearm","Shield","HyruleShield","HalfHyruleShield","ShieldBase" ],
  39. [ "RForearm","Shield","HyruleShield","HalfHyruleShield2","ShieldBase" ],
  40. [ "RForearm","Shield","MirriorShield","MirriorShield2","MirriorShield3","ShieldBase" ],
  41. [ "RForearm","Shield","MirriorShield","MirriorShield2","MirriorShield32","ShieldBase" ]);
  42.  
  43. _body.setRecolorFrames("ShieldTrimColor",
  44. [ "RForearm","Shield","HyruleShield","HalfHyruleShield","ShieldTrim" ],
  45. [ "RForearm","Shield","HyruleShield","HalfHyruleShield2","ShieldTrim" ],
  46. [ "RForearm","Shield","MirriorShield","MirriorShield2","MirriorShield3","ShieldTrim" ],
  47. [ "RForearm","Shield","MirriorShield","MirriorShield2","MirriorShield32","ShieldTrim" ]);
  48.  
  49. _body.setRecolorFrames("bootsColor",
  50. [ "RFoot","boots" ],
  51. [ "LFoot","boots" ],
  52. [ "RShin","boots" ],
  53. [ "LShin","boots" ],
  54. [ "RThigh","boots" ],
  55. [ "LThigh","boots" ]);
  56.  
  57. _body.setRecolorFrames("OtherclothingColor",
  58. [ "RBicep","IRBicep","Otherclothing" ],
  59. [ "LBicep","IRBicep","Otherclothing" ],
  60. [ "Pelvis","belt1","Otherclothing" ],
  61. [ "Body","Otherclothing" ],
  62. [ "Pelvis","Loin1","Loin2","Otherclothing" ]);
  63.  
  64. _body.setRecolorFrames("ElbowClothingColor",
  65. ["RBicep","IRBicep","ElbowClothing"],
  66. ["LBicep","IRBicep","ElbowClothing"],
  67. ["RThigh","ElbowClothing"],
  68. ["LThigh","ElbowClothing"],
  69. ["RForearm","ElbowClothing"],
  70. ["LForearm","ForearmPad","ForearmPad2","ElbowClothing"],
  71. ["LForearm","ElbowClothing"]);
  72.  
  73. _body.setRecolorFrames("kawaiiirisColor",
  74. ["theface","theface2","Iris","kawaiiiris"],
  75. ["theface","theface2","Iris2","kawaiiiris"]);
  76.  
  77. _body.setRecolorFrames("Armpad1Color",
  78. ["RForearm","ForearmPad","Armpad1"],
  79. ["LForearm","ForearmPad","Armpad1"]);
  80.  
  81. _body.setRecolorFrames("UnderForearmPadColor",
  82. ["RForearm","ForearmPad","UnderForearmPad"],
  83. ["LForearm","ForearmPad","UnderForearmPad"]);
  84.  
  85. _body.setRecolorFrames("clothingColor",
  86. [ "RBicep","IRBicep","clothing" ],
  87. [ "Body","clothing" ],
  88. [ "LBicep","IRBicep","clothing" ],
  89. [ "Belly","clothing" ],
  90. [ "Pelvis","Stomach","clothing" ],
  91. [ "Pelvis","Loin1","Loin2","clothing" ],
  92. [ "BHair", "clothing" ]);
  93.  
  94. _body.setRecolorFrames("linkhair1Color",
  95. [ "FHair", "linkhair1" ],
  96. [ "Skull", "linkhair1" ],
  97. [ "theface", "theface2","linkhair2","linkhair1"],
  98. [ "theface", "theface2","linkhair1"]);
  99.  
  100.  
  101. _body.setImageConfigFrames("LHandNumber",
  102. [ "LHand" ]);
  103.  
  104. _body.setImageConfigFrames("WeaponNumber",
  105. [ "RHand","Weapon" ],
  106. [ "LHand","Weapon" ]);
  107.  
  108. _body.setImageConfigFrames("ShieldNumber",
  109. [ "RForearm","Shield" ]);
  110.  
  111. _body.setImageConfigFrames("ForearmPadNumber",
  112. [ "RForearm","ForearmPad" ],
  113. [ "LForearm","ForearmPad" ]);
  114.  
  115. _body.completeConfig();
  116.  
  117. addEventListener(Event.UNLOAD, handleUnload);
  118. function handleUnload (... ignored) :void {
  119. _body.shutdown();
  120. }
  121. }
  122.  
  123. var _ctrl :AvatarControl;
  124. var _body :ConfigXPBody;
Add Comment
Please, Sign In to add comment