스위시세상/스위시 맥스

Enter로 full 만들기

어린양01 2012. 12. 18. 21:01

    1.button삽입( b1.2.3..) 모두선택 movie clip 이름을 button 다시movie clip 이름을but button=20F-stop b1.2.3..21F - fade in 2.Enter button 1).Text "enter"삽입 1F에 -looping-co..-Rainbow slow whirl(50) movie clip하고 이름을 enter 2).enter에 script ①.Add script-button-on(press) ②.Add script에서MovieControl-GotoandPlay-gotoAndPlay(Frame) Target에세 but.button.선택하고 Frame:21 3).Add script에서Statements-Funtion target:_root Arge:stage Funtion:toggleFullScreen 4).Add script에서MovieControl-Gotoandstop-gotoAndstop(Frame) target:_root 3).enter를 image 아래 놓는다 scene-1에 script 소스를 넣어야 한다 onFrame (1) { toggleFullScreen=function () {if (Stage.displayState == "normal") { Stage.displayState = "fullScreen"; } else { Stage.displayState = "normal";}}; Stage.scaleMode = "noScale"; } 잔소리:디시 full를 넣지않으면 ESC 키로 꺼야한다.