728x90
반응형

브라우져의 내용을 화면 전체로 보여주기위한 내용이다.

일단 예제 화면은 아래 주소를 참조 하면 좋을것 같다.

EX>

SOURCE>

지금 현재 지도에 관련된 작업테스트를 하는 도중 찾게된것인데, 내가 소스를 만들어서 실행하니 안됬다.

근데 다운받은 소스를 실행하니..된다..ㅡ.ㅡ;;;

굉장히 당황해서 소스를 좀 수정해보니... toggleFullScreen() 함수 부분에서 예외가 발생하였다.

에러 메세지는...

SecurityError: Error #2152: Full screen mode is not allowed.
at flash.display::Stage/set displayState()

풀스크린모드를 사용할수 없다...;;;;

뭔지 모르고 이것 저것 찾다보니 해외에서 답을 찾았다.

다음 글을 참조하면 좋을듯 하다. [참조글]

FLEX 3 빌더에서 자동으로 만들어지는 html-template 폴더의 index.template.html 파일에 
allowFullScreen의 값을 지정하지 않아서 발생하는 문제다.

자동으로 생성된 index.template.html을 열고 수정을 해주면 문제는 해결된다.

아래는 참고 소스

... 생략 ...

if ( hasProductInstall && !hasRequestedVersion ) {
// DO NOT MODIFY THE FOLLOWING FOUR LINES
// Location visited after installation is complete if installation is required
var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
var MMredirectURL = window.location;
    document.title = document.title.slice(0, 47) + " - Flash Player Installation";
    var MMdoctitle = document.title;

AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowScriptAccess","sameDomain",
"allowFullScreen", "true",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "${swf}",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowScriptAccess","sameDomain",
"allowFullScreen", "true",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);

... 중략 ...

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="${application}" width="${width}" height="${height}"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="${swf}.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="${bgcolor}" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<embed src="${swf}.swf" quality="high" bgcolor="${bgcolor}"
width="${width}" height="${height}" name="${application}" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
allowFullScreen="true"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>



728x90
반응형

+ Recent posts