Flash Player는 로컬과 네트워크간의 통신을 기본적으로 차단합니다.
또한 윈도우 XP SP2 역시 로컬과 네트워크간의 통신을 차단합니다.
그로 인해 생길수 있는 문제.
로컬상에서 테스트할 시 플래시내부에서 자바스크립트 호출 및 http로 나가는 부분 작동하지 않음
해결방법
1번과 2번은 같은 이슈를 해결하기 위한 방법이므로 둘 중 하나만 써도 무관합니다.
1. 플래시 플레이어 전역보안설정
http://www.macromedia.com/support/documentation/kr/flashplayer/help/settings_manager04.html
위 사이트에서 플래시 플레이어 전역보안설정을 해주세요.
신뢰할 수 있는 파일 및 폴더를 지정해줍니다.
2. trust파일 설치
메모장에 신뢰할수 있는 위치 경로를 지정하여 flashTrust.cfg파일을 작성합니다.
로컬상의 모든 위치를 신뢰한다면
C:\
D:\
E:\
.
(중간생략)
.
Z:\
드라이브를 작성하고 flashTrust.cfg 로 저장합니다.(이름은 상관엄꾸요)
위 파일을 아래 경로에 위치시킵니다.
* Windows 모든 사용자:
<system>\Macromed\Flash\FlashPlayerTrust
EX) c:\Windows\system32\Macromed\Flash\FlashPlayerTrust\
* Windows 단일 사용자:
<app data>\Macromed\Flash Player\#Security\FlashPlayerTrust
EX) c:\Documents and Settings\<사용자이름>\Application Data\Macromedia\Flash Player\Security\FlashPlayerTrust
* Mac OS 모든 사용자:
<app support>/Macromedia/FlashPlayerTrust
EX) /Library/Application Support/Macromedia/FlashPlayerTrust
* Mac OS 단일 사용자:
<app data>/Macromedia/Flash Player/#Security/FlashPlayerTrust
EX) /User/<UserName>/Library/Preferences/Macromedia/Flash Player/#Security/FlashPlayerTrust
CD타이틀을 배포하기 위한 방침으로 인스톨러를 이용해 위 flashTrust.cfg파일을 사용자의 시스템에 인스톨시켜주는 방법을 생각할 수 있습니다.
3. Windows XP SP2에서 생기는 일
Windows XP SP2에서는 로컬에서 파일을 액세스할 때 Active X 및 javascript 가 포함된 html이 차단됩니다.
이를 해결하기 위해서 html페이지에 Mark of the web 이라는 코드를 삽입해 줍니다.
<!-- saved from url=(0013)about:internet -->
자세한 내용은 아래 사이트를 참고하세요.
http://www.adobe.com/kr/support/flash/ts/documents/xpsp2.htm
또 있을법도 하겠지만...
이정도 설정만 해두면 로컬이든 웹이든 정상적으로 작동을 합니다.
추가로.. 플래시를 로컬로 배포 할때 2번 방법으로 사용하여 자동배포 EXE를 설치하게 만들어주고,
플래시를 띄우도록 하면 간단하게 배포 할수도 있겠습니다.
'프로그래밍 > Flash _ Flex _ ActionScript' 카테고리의 다른 글
Adobe Flash CS4 Professinol.. 간단한 사용 소감.. (0) | 2008.09.24 |
---|---|
Publish 를 하여도 플래시가 반영이 되지 않는 경우.. (1) | 2008.07.16 |
Hello Flex~~~ :D (1) | 2008.07.05 |
Flash 에서 다른 도메인 간의 호출... (1) | 2007.08.24 |
Action Script XML연동 소스... (0) | 2007.08.20 |