function weightMiddle(input:Number, strength:int = 2):Number { if (input < 0.5) return 1 - Math.pow(1 - input, strength) / 2; return 0.5 + Math.pow((input - 0.5) * 2, strength) / 2; }
star.y = weightMiddle(Math.random()) * _mc.stage.stageHeight;