Posted on 2006/10/09 12:27
Filed Under Development/Flash

- 풀스크린을 사용하기 위해서 개발자는 object 및 embed 태그에 allowFullScreen 속성을 true로 설정해야 합니다. (기본값 false)

- 풀스크린 모드가 실행되면, 유저에게 풀스크린 모드를 빠져나오는 방법을 설명할 팝업이 나타났다, 사라집니다.

- 오직 마우스 클릭 또는 키프레스에 의해서만 풀스크린 모드를 실행할 수 있습니다. 이외의 경우에는 무시하거나(AS2.0), 예외가 발생(thorw an exception)(AS3.0) 합니다.

- 플스크린 모드를 종료하는 단축키 이외의 모든 키입력 및 키이벤트는 무시됩니다.



ActionScript API

There are new ActionScript methods in ActionScript 2.0 andActionScript 3.0 to initiate or leave full-screen mode, andcorresponding events to notify the movie when full-screen mode beginsor ends. As previously mentioned, the ActionScript to initiatefull-screen mode works only in reaction to a mouse click or keypress

ActionScript 2.0

Stage.displayState:String property

This property is gettable and settable.Possible values are:

  • fullScreen
  • normal

This property is used to check the current state of the movie or to enter or exit full-screen mode.

An event listener on the Stage object provides notification when the movie enters or leaves full-screen mode:

EventListener.onFullScreen = function( bFull:Boolean ){}

Stage.addListener( EventListener );

This method is called when the movie enters or leaves full-screenmode. The Boolean argument to this function indicates whether the moviehas entered (true) or exited (false) full-screen mode.

ActionScript 3.0

flash.display.Stage.displayState:String property

This property is gettable and settable. The valid values are from the class StageDisplayState:

  • StageDisplayState.FULL_SCREEN
  • Stage.DisplayState.NORMAL

This property is used to check the current state of the movie or to enter or exit full-screen mode.

An event listener on the Stage object provides notification when the movie enters or leaves full-screen mode:

fullScreenHandler = function( event:FullScreenEvent ) {}; 

stage.addEventListener( FullScreenEvent.FULL_SCREEN, fullScreenHandler );


The AS3 event received is FullScreenEvent, which extends ActivityEvent. FullScreenEvent has a Boolean fullScreen property, which indicates whether the movie has entered (true) or exited (false) full-screen mode.

ActionScript 3.0 will throw a security error in the plug-in or ActiveX control if the display state is set to StageDisplayState.FULL_SCREEN when it is not permitted by one of the security restrictions listed above.





http://labs.adobe.com/wiki/index.php/Flash_Player:9:Update:Full-Screen_Mode
2006/10/09 12:27 2006/10/09 12:27

트랙백 주소 : http://www.takeone.pe.kr/trackback/70

Counter

· Total
: 371800
· Today
: 43
· Yesterday
: 50