We all know that in flash
FscommandCommand to start/execute external applicationsProgram, As shown in the following figure.Code:
On(Release){
Fscommand ("EXEC", "abc.exe");
}
This was well executed in earlier versions. However, this approach failed after flash 7. In flash, no specific instructions were found (maybe I am too stupid ).
It turns out that after flash 7, Flash Player has enhanced security and has some requirements:
1. Flash files must be compiled into EXE files, and SWF files cannot be executed;
2. Create a "fscommand" folder under the same directory of the Flash file and put the EXE file to be executed;
After the preceding conditions are met, the command syntax remains unchanged: fscommand ("EXEC", "abc.exe");Without a path, the system automatically searches for the file to be executed in the fscommand folder;
So how to publish flash into an EXE file? It is actually very simple:
Select File> release Settings> Format> Windows projector file (.exe), and click Publish.
Download the sample file (created in Flash 8, the size is 1.29 MB)>
(Run "1.exe" after the download, and then click the button on the interface to start a train time query program .)