package flash
{
import flash.display.MovieClip;
dynamic public class loader extends MovieClip
{
//Auto populating vars.
public var Slider;
public var Checkbox;
public var Label;
public var loader;
public function initl(l) : void
{
var aP = new MovieClip();
var braSlider = new Slider(100, 20);
var braLabel = new Label(40, 20, "BRA:");
var uwSlider = new Slider(100, 20);
var uwLabel = new Label(40, 20, "UW:");
var cbNipple = new Checkbox(20, 20);
braLabel.textFormatting().size = 13;
braLabel.textFormatting().align = "left";
braLabel.updateFormatting();
uwLabel.textFormatting().size = 13;
uwLabel.textFormatting().align = "left";
uwLabel.updateFormatting();
uwSlider.y = braSlider.y + 25;
uwLabel.y = uwLabel.y + 25;
braSlider.x = braLabel.x + 40;
uwSlider.x = uwLabel.x + 40;
braSlider.addEventListener("sliderChanged",braSliderChanged);
uwSlider.addEventListener("sliderChanged",uwSliderChanged);
cbNipple.addEventListener("checkboxClicked", cbNippleToggled);
cbNipple.x = braSlider.x + 105;
aP.x = 30;
aP.y = -15;
aP.addChild(braLabel);
aP.addChild(uwLabel);
aP.addChild(braSlider);
aP.addChild(uwSlider);
aP.addChild(cbNipple);
l.addIn(aP, l.g.inGameMenu.customMenu);
l.unloadMod();
}
private function braSliderChanged(e) : void
{
loader.her.torso.breastCostume.bra.alpha = e.value;
loader.her.torso.braStrap.alpha = e.value;
loader.her.torso.shoulderStrap.alpha = e.value;
loader.her.torso.upperChestCostume.bra.alpha = e.value;
loader.her.torsoBackCostume.breastCostume.bra.alpha = e.value;
}
private function uwSliderChanged(e) : void
{
loader.her.torso.rightThighCostume.panties.alpha = e.value;
loader.her.leftLegContainer.leg.leftThighCostume.panties.alpha = e.value;
loader.her.torso.backUnderCostume.panties.alpha = e.value;
loader.her.torso.chestUnderCostume.panties.alpha = e.value;
loader.her.torsoBackCostume.backsideCostume.panties.alpha = e.value;
}
private function cbNippleToggled(e) : void
{
loader.her.torsoBack.leftBreast.nipple.visible = e.checked;
loader.her.torso.midLayer.rightBreast.nipple.visible = e.checked;
}
}
}