How to open any format file in a flash animation

Source: Internet
Author: User
Tags exit
Flash Animation

In Flash, you can call the following statement to open the file. The method is simple, but there is a big defect. is to open the executable file only:

Flcommand ("exec", "");

Now that you can open an executable file, is it possible to open the file that we want to open by opening an executable A and then using a? Below, we can use the bat file to do this executable file a bar.

1. Write the following statement in ActionScript in Flash:

On (release) {
Fscommand ("exec", "Action.bat")
}

2, the following to write a bat file, open Notepad, enter the following code:

@echo off
Start file name. suffix
Exit

File names can use relative paths and absolute paths, and if you want to open a file called "Delphi.pdf" in the same directory, you can write this:

@echo off
Start Delphi.pdf
Exit

Then save the file as a onen.bat, of course, and flash to put the same directory.



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.