2010년 3월 14일 일요일

Flash 크기 및 위치 고정하기

액션에 아래 코드를 넣어주면 플래쉬창의 크기가 변하더라도 플래쉬의 크기는 변하지 않는다.

[code]fscommand("fullscreen", false); fscommand("allowscale", false); Stage.showMenu = false; Stage.scaleMode = "noScale"; Stage.align = "LT"; // 위치고정[/code]

 

Stage.align 의 값이 고정될 위치를 결정한다.

Value Vertical Horizontal
"T" top center
"B" bottom center
"L" center left
"R" center right
"TL" top left
"TR" top right
"BL" bottom left
"BR" bottom right

댓글 없음:

댓글 쓰기