package flash {
import flash.display.MovieClip;
public dynamic class Main extends MovieClip {
public var lProxy;
public var him;
public var her;
private var EventBus;
public function initl(l) : void {
EventBus = l.getVanillaClass("obj.EventBus");
var setPenisLength = (lProxy as Class).createProxy(him, "setPenisLength");
setPenisLength.addPre(setPenisLength_Pre, true);
setPenisLength.hooked = false;
l.updateStatusCol("Penis length and width sliders have been decoupled.", "#00ff00");
}
private function setPenisLength_Pre(newLength:Number) : void {
var widthCoefficient:Number = him.currentPenisWidthScale / him.currentPenisLengthScale;
him.currentPenisLengthScale = him.MIN_PENIS_SIZE + (him.MAX_PENIS_SIZE - him.MIN_PENIS_SIZE) * newLength;
//him.currentPenisWidthScale = Math.max(him.MIN_PENIS_SIZE,Math.min(him.MAX_PENIS_SIZE, widthCoefficient * him.currentPenisLengthScale));
him.penis.scaleX = him.currentPenisLengthScale;
him.penis.scaleY = him.currentPenisWidthScale;
her.hisPenisSizeChanged(him.currentPenisLengthScale * him.currentPenis.length);
EventBus.dispatch("penisTipPosChanged");
}
}
}