180bpm
화면 scale에 따라 리사이징 할 기준 값 본문
반응형
//code start var sh:Number = Stage.width; var sw:Number = Stage.height var swRate:Number = sw < 1280 ? (sw / 1280 * 1) : 1; var shRate:Number = sh < 1024 ? (sh / 1024 * 1) : 1; var scaleRate:Number = (swRate < shRate ? swRate : shRate) * 100; trace( sw + " / " + sh + " / " + scaleRate); sw /= scaleRate / 100; sh /= scaleRate / 100; //혹은 강제로 //Stage.visibleRect.right //code end
반응형
Comments