[Flash Development Notes] Flash execution EXE file

Source: Internet
Author: User
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 .)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.