Programming/Flash

FScommand 로 스크립트 링크걸기

달나라민군 2010. 5. 3. 08:40

 if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub isMenu_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call isMenu_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
}

function isMenu_DoFSCommand(command, args){
  if(command == "FMshow()") {
    FMshow();
  }else if(command == "FMhide()"){
    FMhide();
  }
}


플래시 내에서 getURL("deny_script:test();"); <-- 요로케 넘기면 페이지에서 딱딱 소리가 나니..
fscommand("FMshow()",true); 이러케 넘기면 된다.