How To Execute Files from Flash 플래시에서 파일을 실행하는 방법
This weekend I spent much time on creating a Flash projector for a menu based installation of Office and other programs. 이번 주말에 나는 플래시 프로젝터을 만들기 위해 많은 시간을 소비 기반 설치를 사무실과 다른 프로그램의 메뉴합니다. The screenshot below explains better what I was trying to accomplish, when someone clicks on the button named Engelsk (Engelsk = English) I wanted setup.exe to launch with a transform file applied to it. 아래에 화면 캡처 더 나은 무엇을 설명 달성하려고했는데, 버튼을 클릭할 때 이름을 영어 사이트 (영어 사이트 = 영어) setup.exe 싶었 그것을 시작으로 변환 파일을 적용합니다.
I spent a lot of time playing around with the FSCommand EXEC, but it would not work. 나는 장난으로 시간을 많이 소비하는 fscommand 실행지만이 작동하지 않을합니다. This was how you did it in previous versions of Flash. 이것은 이전 버전의 플래시 해냈구나하는 방법. So after some trying and failing I started to google the problem and it turned out that the 그래서 어떤 시도와 실패하고 난 후 구글이 문제를 시작하는 것으로 나타났다 FSCommand EXEC is no longer working as it used to in Flash CS3 그것은 더 이상 작동하지 않습니다으로 실행 fscommand를 사용하여 플래시 cs3 . 합니다.
So I needed to find another solution, I then came over a great tool called Proxy from Northcode that solved all my problems and the best thing: It’s free 다른 해결책을 찾기 위해 필요한 그래서, 그런 다음 프록시에서 전화 와서는 훌륭한 도구를 northcode 내 모든 문제를 해결하고 최고의 순간 : itâ € ™의 자유
Here is a summary from Nothcode’s blog about why this tool was developed and how it works; 다음은 블로그에 대한 요약을 nothcodeâ € ™의 개발 및 이유에 대해이 도구는 어떻게 작동;
A typical requirement you’ll run across when developing CD based Flash projects is the need to open documents from your Flash projector. 전형적인 요구 사항을 개발할 때 전체를 실행하면 cd 기반 플래시 프로젝트에서 문서를 열 필요가 귀하의 플래시 프로젝터합니다. You can use getURL to open most documents, but sometimes the document opens behind the projector. 대부분의 문서를 엽니다 geturl를 사용할 수있습니다, 그러나 때로는 프로젝터의 배후 문서를 엽니다. The EXEC fscommand could be used to launch a helper application, but unfortunately the EXEC fscommand doesn’t allow you to pass parameters to external applications so you have no way to tell the outside world which file you want to open. the 실행 fscommand를 시작 도우미 응용 프로그램을 사용할 수있습니다,하지만 유감스럽게도 fscommand 실행 매개 변수를 전달하는 것을 허용하지 않습니다 외부 응용 프로그램을 그래서 외부 세계에 얘기를 전해 줄 수있는 방법이없습니다를 열 파일을 선택합니다.
You can thank the creators of the first Flash virus ( 창조자의 첫번째 플래시하실 수있습니다 감사합니다 바이러스 ( SWF/LFM-926 swf/lfm-926 ) for the fact that every version of the stand-alone Flash player since Flash MX has restricted the use of the EXEC command. )에 서있는 사실을 - 혼자 플래시 플레이어의 모든 버전 플래시 mx는 이후의 사용을 금지 명령을 실행합니다. This change made it impossible for anyone to create any new Flash based viruses, but it also crippled the Flash projector as a tool for legitimate users by instantly rendering many free projector extension tools useless. 이러한 변경 사항을 만든다는 건 불가능 누구를 생성하는 새로운 플래시 기반 바이러스, 그러나 또한 플래시 프로젝터 무력화하기위한 도구로서 합법적인 사용자에 의해 순간적 프로젝터 확장 도구를 쓸모없는 다양한 무료 렌더링합니다.
There are four key restrictions that you have to keep in mind when working with the EXEC fscommand and standalone Flash projectors. 이미 4 개의 키 제한이 있음을 유념해야 fscommand으로 작동하는 경우와 독립 실행형 플래시 프로젝터를 실행합니다. (i) Executables you want to run via the EXEC fscommand have to be in a special sandboxed folder called fscommand in the same directory as the projector. (1)를 실행하는 실행 파일을 통해 원하는 fscommand 실행해야 fscommand라는 폴더를 특별 샌드 박스와 같은 디렉토리에 프로젝터합니다. (ii) You can’t specify a path in the EXEC command, just a filename. (2)이 명령을 실행 경로를 지정할 수없습니다, 그냥 파일명합니다. If the specified file is not found in the fscommand folder, it won’t run. 만약에 지정된 파일을 찾을 수없습니다 fscommand 폴더, 그것이 실행되지 않습니다. (iii) The only argument allowed by the EXEC fscommand is a filename, there is no way to pass arguments to the executables that you want to run. (3)에서 허용되는 유일한 인수는 fscommand 실행 파일 이름을 통과 수있는 방법은없습니다 인수를하고자하는 실행 파일을 실행합니다. (iv) You can’t use EXEC from an SWF file, it will only work from a projector (EXE). (4)를 사용할 수없습니다 swf 파일에서 실행되면를에서만 작동 프로젝터 (exe). The last restriction doesn’t really concern us, but if you’re trying to test your EXEC calls, being aware of it will save you some frustration. 마지막으로 우리에게 관심 규제하지 않아요,하지만 귀하의 실행을 테스트하려는 경우 전화, 좀 불만이 알고있는 그것이 저장됩니다.
One additional restriction you will have to deal with is the fact that 하나의 추가 규제가해야 할 겁니다는 사실을 다루는 Flash 9 projectors can’t launch BAT files on Windows 2000, XP and Vista 9 프로젝터에 플래시 파일을 실행할 수없습니다 박쥐 windows 2000, 그리고 비스타 . 합니다.
One solution to get around the limitations of the EXEC fscommand is to create one exectuable file for each file that you want to open, but what can you do if you don’t know how to make EXE files? 주위의 한계를 하나의 솔루션은 실행 파일을 exectuable를 만들 fscommand가하고자하는 각 파일에 대해 열기, 그러나 무엇을 할 수 있을까요하지 않을 경우 exe 파일을 만드는 방법을 알아? Windows and Flash both consider a BAT file as an executable file so the easy solution is to create a BAT file for each file you want to open and EXEC the BAT file from Flash. 윈도우와 플래시 파일을 실행 파일을 둘 다 고려 박쥐 때문에, 간단한 해결 방법은 방망이를 만들 파일을 열기 및 실행하려는 각 파일에 대해 파일을 플래시 박쥐라고합니다. You don’t need to be a BAT file wizard to do this, the simple one-liner below (let’s call it mydoc.bat) will do the trick: 박쥐가 필요하지 않습니다 파일을 마법사를 수행하려면 다음의 간단한 한 - 라이너 (mydoc.bat라고하자)는 깜쪽같을 :
That example assumes that both mydoc.bat and mydoc.pdf are in the fscommand folder. 이 예제는 mydoc.pdf이 관내에 둘 다 mydoc.bat 및 fscommand 폴더를합니다. You can change the BAT file to launch the PDF file from anywhere you like, as long as you can create a valid path to the file. 박쥐를 변경할 수있습니다 파일을 어디에서든 원하는 파일을 시작합니다 한, 올바른 경로를 파일을 만들 수있습니다. Now all you have to do is create a BAT file for every file you want to open and call it from Flash like this: 지금은이 모든 것들이 방망이가해야 할 일은 파일을 만드는 모든 파일을 선택 플래시에서 전화를 열고 이런 :
The only problem with this approach is that your user is going to see the ugly black DOS box appear every time they open a file. 이러한 접근 방법은 유일하게 문제가 귀하의 사용자가 추악한 검은 도스 상자를 참조하십시오 그들이 파일을 열 때마다 나타납니다. That’s where the proxy utility can help you create a more professional looking end product for your users. Proxy is able to launch BAT files and suppress the ugly DOS box. 거기에서 프록시 유틸리티를 작성을 도와 드릴 수있습니다 제품을 최종 사용자에게보다 전문적인보고합니다. 프록시는 방망이를 시작할 수있습니다 도스 상자에 파일을 억제하는 추악한합니다.
usage: proxy.exe 사용법 : proxy.exe
When you run the proxy utility, the first thing it does is look at its own name, in this case proxy.exe. 프록시 유틸리티를 실행할 때, 우선 그것은 자신의 이름을보고는이 경우에는 proxy.exe합니다. It then looks for a BAT file in the same directory with the same base name, ie proxy.bat, and runs that BAT file. 그런 다음 같은 디렉토리에있는 파일을 찾아 박쥐와 같은 기본 이름, 즉 proxy.bat, 그리고 그 방망이 파일을 실행합니다. If you rename the proxy utility to xyz.exe then the utility will look for and try to run xyz.bat. 프록시 유틸리티를 xyz.exe의 이름을 변경하는 경우 다음 유틸리티가 찾는 xyz.bat를 실행하려고하고있습니다. If a BAT file with the same name can’t be found, proxy will just fail silently. 박쥐 파일과 이름이 같은 경우를 찾을 수없습니다, 프록시은 그들이 실패를 자동으로합니다.
By making copies of proxy.exe with different names and creating multiple BAT files you can run as many “hidden” BAT files as you need, neatly sidestepping the Flash limitation on passing parameters to external applications. proxy.exe 사본을 다른 이름으로 여러 번함으로써 여러 개의 방망이 파일을 만들고 실행되도록하실 수있습니다 많은 "숨김"박쥐 파일이 있으면, 플래시 제한이 제대로 sidestepping 외부 응용 프로그램 매개 변수를 전달합니다.
Here are step by step instructions to use the proxy utility to open a PDF file without the ugly DOS box. 다음은 단계별 지침을 프록시 유틸리티를 사용하여 파일을 열려면 도스 박스없이는 추악한합니다.
- Create a BAT file called file1.bat that contains just the following line. file1.bat 박쥐라는 파일을 생성 단지 다음과 같은 라인을 포함합니다. This is a plain text file that you can create with notepad or your favorite text editor. 이것은 일반 텍스트 파일을 메모장이나 여러분이 좋아하는 텍스트 편집기를 만들 수있습니다.
- Put the BAT file in a folder called fscommand along with a copy of proxy.exe. 그 박쥐과 함께 fscommand라는 폴더에 파일의 사본을 proxy.exe합니다.
- Rename the copy of proxy.exe to file1.exe (same base name as the BAT file you created). 의 복사본 proxy.exe의 이름을 바꿉니다을 file1.exe (동일한 기본 이름으로 방망이 파일이 생성됨).
- Place your PDF document (called file1.pdf) in the fscommand folder with the BAT and EXE files. 장소를 받으실 수있습니다 (전화 file1.pdf)의 방망이와 fscommand 폴더에 exe 파일을합니다. You don’t have to store the files you want to open in the fscommand folder, but for your first test this makes things easier. 필요가없습니다하려는 파일을 저장할 폴더를 fscommand에서 열기,하지만 이것은 일이 쉬울 귀하의 첫 번째 테스트합니다.
- Add the following command to your FLA where you want to open the PDF document (probably on a button release action). 귀하의 fla 다음과 같은 명령을 추가하여 원하는 위치를 열려면 받으실 수있습니다 (아마도에 버튼을 릴리스 동작).
Now put your Flash EXE and the fscommand folder on your desktop and run the Flash EXE. 지금 올려 fscommand 폴더를 바탕 화면에 플래시 exe 및 플래시 exe를 실행합니다. When the EXEC command is called your PDF document should open. 실행 명령을 사용할 때 전화를 받으실 수있습니다가 열립니다.
To read more about proxy or to download it you can go 에 관한 자세한 내용은 그것을 다운로드하는 프록시 또는 이동하실 수있습니다 here 여기에 . 합니다.
Written by Odd-Magne Kristoffersen. 홀수 - magne kristoffersen 지음. Read more great feeds at is source 이 소스에서 더 많은 훌륭한 피드를 읽고 WEBSITE 웹사이트
1 comment 1 개의 덧글 . 합니다.
Read more articles on 더 많은 기사를 읽고 software 소프트웨어 . 합니다.
- [+] Digg [+] digg : Feature this article : 기능이 문서
- [+] Del.icio.us [+] del.icio.us : Bookmark this article : 즐겨찾기에이 기술 자료
- [+] Furl [+] 접는 : Bookmark this article : 즐겨찾기에이 기술 자료





















#1 # 1 . 합니다. February 8th, 2008, at 2:43 PM. 2008년 2월 8일에서 오후 2시 43분합니다.
Is it possible to open a flash projector *exe within a *.swf? 플래시 프로젝터를 열 수 있나요 * exe를 *. swf? I need the flash projector to open an external app using facommand *.exe and *.bat. 플래시 프로젝터가 필요합니다 *. facommand를 엽니다 리눅스를 사용하여 외부 응용 프로그램 *. 박쥐합니다.