In this post I want to share who we can open the psf file in separate window from you flash application with fscommand. Here’s my AS3 code and it DOES CALL THE function and a trace: Code: function launch(event:MouseEvent):void { fscommand(“exec”. as3/tamarin/as3_src/avmglue/classes/ Fetching contributors The Original Code is [Open Source Virtual Machine.]. *. * The Initial Developer.

Author: Dakora Kazigar
Country: Albania
Language: English (Spanish)
Genre: Software
Published (Last): 3 September 2010
Pages: 46
PDF File Size: 10.33 Mb
ePub File Size: 12.28 Mb
ISBN: 444-4-29993-187-3
Downloads: 80240
Price: Free* [*Free Regsitration Required]
Uploader: Vudolkis

A typical requirement you’ll run across when developing CD based Flash projects is the need to open documents from your Flash projector.

You can use getURL to open most documents, but sometimes the document opens behind the projector. 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.

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 as you have to keep in mind when working with the EXEC fscommand and standalone Flash projectors.


If the specified file is not found in the fscommand folder, it won’t run.

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. Your SWF Studio projectors will be able to pass arguments to external applications and you won’t have to put the executables you want to run in the fscommand sandbox folder. fscomand

How To Open PDF File From Flash using Fscommand | Artfans Design

One solution to get around the limitations of fscommabd 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 ope how to make EXE files? You don’t need to be a BAT file wizard to do this, the simple one-liner below let’s call it mydoc.

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: That’s where the proxy utility can help you create a more professional looking end product for your users.

It then looks for a BAT file in the same directory with the same base name, i. If you rename the proxy utility to xyz.


If a BAT file with the same name can’t be found, proxy will just fail silently. By making copies of proxy. Create a BAT file called file1. This is a plain text file that you can create with notepad or your favorite text editor.

Rename the copy of proxy.

actionscript 3 – Opening external exe file via fscommand – Stack Overflow

Place your PDF document called file1. 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. Download the example fsdommand see the proxy utility in action. March 30, Download: Definitely worth a read. About Us Northcode is a software company located in Whitehorse, Canada. We make the best swf2exe tool on the market and oprn create custom software solutions for clients all over the world.

Conquering FSCommand EXEC

Power To Spare Are you on a tight schedule? Do you have a difficult problem you need help with? Contact us today for an hourly or fixed price quote.