Home arrow Blog arrow exec fscommand bug Flash 9 Mac
exec fscommand bug Flash 9 Mac Print E-mail
Friday, 18 May 2007

There seems to be a bug in Flash 9 Player for Macintosh. The fscommand("exec", "myapp.app") is not working. If you save your movie as a Flash 8 movie and publish it as a Flash 8 projector it works again.

You can download a demo here.


I created a windows application "hello.exe" and a mac application "hello.app". These are little applications that will just display a message box. Both files reside in the "fscommand" folder and should be opened by the fscommand. I also create 2 flash files: exec_demo_fl9.fla to be opened in Flash CS3 and exec_demo_fl8.fla for Flash 8.

The .fla movies have a button with this code:

 open_btn.onRelease = function() {
    if (getVersion().substr(0, 3) == "WIN"){
        fscommand("exec", "hello.exe");
        debug_txt.text = "Trying to open fscommand/hello.exe";
    } else {
        fscommand("exec", "hello.app");
        debug_txt.text = "Trying to open fscommand/hello.app";
    }
}

The button wil issue an fscommand that opens "hello.exe" on Windows platforms and "hello.app" on Mac platforms. 

Now if you publish exec_demo_fl9.fla as a Flash 9 projector, you will see that the Windows version will open "hello.exe", but the Mac version won't open "hello.app". It doesn't matter whether you published the projectors on Mac or Windows. I tested both, it doesn't make any difference.

exec_demo_fl8.fla is a copy of exec_demo_fl9.fla saved in Flash 8 format. If you publish that movie as a Flash 8 projector, the Mac version will open "hello.app".

Comments
If you find an answer to this I'd love to hear it :-( same problem here
  Posted by David, on Monday, 04 June 2007 at 5:34

I cannot get your sample to work even when exporting as version 8. I was messing around and tried creating the mac projector from the PC...and then bringing it back into OS X and it worked for me. This is the actually the only way I've gotten it to work.
  Posted by tito, on Friday, 06 July 2007 at 9:19

Hey, did you manage to get this working using only Flash CS3? What I mean is - is it possible to publish a Mac projector using Flash CS3 that used Flash 8 as it's standard?

I can't seem to get even you sample files to work on a mac when I export from CS3.

Any help would be greatly appreciated.

J.

  Posted by John Lynch, Whose homepage is http://www.oneproductions.com on Tuesday, 24 July 2007 at 3:32

You will have to open and publish the Flash 8 .fla file in the Flash 8 program. If you publish a Flash 8 .fla file in CS3 as a projector, it will still use the Flash 9 player.
  Posted by Johan van Mol, on Tuesday, 24 July 2007 at 6:44

Whats happening with this? Has Adobe issued an update? Is help on the way?
  Posted by Lou, on Monday, 17 September 2007 at 9:25

Any word on a fix for the bug on the Mac?
  Posted by rdas7, Whose homepage is http://ze.ro-one.com/blog on Tuesday, 16 October 2007 at 8:34


 1 
Page 1 of 1 ( 6 comments )
©2005 MosCom

Add your comments to this article exec fscommand bug Flash 9 Mac ...

Name (required)

E-Mail (required)
Your email will not be displayed on the site - only to our administrator
Homepage

Comment