IDE :: Fscommand Exec - Open A Word .doc From Within A Flash Exe Projector
Nov 9, 2009
I am having trouble getting even a trivial example of fscommand("exec", "..."); to work. I just need to open a Word .doc from within a flash exe projector. Eventually this needs to be on a cross-platform CD, but I'd be happy to see it work from the desktop of my PC at this point! I've attached a really simple sample.
I could succesfully open a external pdf with the following command in Flash cs3 on a Mac: fscommand("exec", "test.app");test.app (inside an fscommand folder) is an apple script that opens the pdf inside the fscommand folder, to make it work I needed to copy the fscommand folder into the MacOs Folder of the Mac Projector File. The same steps don't seem to work with Flash cs5. I can't downgrade my cs5 project to cs3.Is this problem a bug in Flash cs5?
My problem is I have a projector that i want to open a word doc that resides in the assets folder (on the cd) when a person clicks on a button. How can I accomplish this?
When publishing a mac projector (app) from Flash CS3 on PC,in order to use the fscommand("exec", appToLaunch) function, itseems as though the fscommand folder containing appToLaunch must berelative to the "Flash Player" app in the projector package. For example, if I create a mac projector called projector.appwhich calls fscommand("exec", "myOtherProjector"), and I putmyOtherProjector in the fscommand folder in the same directory,sitting next to projector.app - when I fun the projector thefscommand fails.
However, if I move the fscommand folder containingmyOtherProjector to the Contents>MacOS folder in the app folder(on mac right click, go to "show package contents"), next to "FlashPlayer" then run projector.app, the fscommand works and everythingis good.It looks to me like the fscommand folder needs to be relativeto the Flash Player and not to the projector. This means that the contents of the fscommand folder need tobe doubled on cross-platform projects. That's not good when you'repushing the limits of file space on a cd
I normally do a CD for a convention twice a year, and this year was different. As usual things gets down to the very last minute with changes, but normally we don't encounter any problems with the opening of powerpoint presentations from within a flash, with the fscommand, as long as all the presentations and software are on the fscommand folder.
But yesterday I just couldn't make it work. I thought at first that was a vista thing, that wont let you run a cmd.exe window from flash, but then I realized it was happening, even after burning the CD in almost any enviroment. I tried changing the publishing parameters to flash player 7, 8 and 9, and try to publish it with action script 1 and action script 2 in all the possible combinations. Then i got smart and republished one I knew that worked, and it stop working.
i was playing with the fscommand for a few times now but i havent made the exec command execute a file(in a subfolder)... a directory with a movie and a folder with sample exec file
can somebody explain me a little bit fscommand exec function I created a folder fscommand and put some exe and succedded to run it but in other folders above it with ../ and subfolders I couldn't get it to run exe files
Determine if Mac or PC within a flash projector? (for use with FSCommand) How do I determine if a computer is Mac or PC within a flash projector? I need this because I've got several FSCommands I need to use within a projector (such as launching an application or file) and need to have different commands for Mac and PC.
I created a swf movie which contains a button with this action:
[Code]...
then i published this movie to an *.exe program (projector). In it's folder i've created another folder named 'extra', which contains program 'start1.exe'. but program 'start1.exe' doesn't load, when i click the button.. is there something i don't know?
I am calling some processing sketches(java exe) from as3
Code: btngametwo.addEventListener(MouseEvent.MOUSE_DOWN,btngametwoClick); function btngametwoClick(e:MouseEvent):void { if (btnLockOut == 0)
[Code].....
using a bat I get the command window up for a few secs--I do not want that but I need to have each sketch in a subfolder in "fscommand " folder--if I do not use subfolders I can not have multible games.....anyway I can not seem to use a path to the .exe in the fscommand line that works
I have created a one application in flash cs3.in that application i have to open a pdf file in acrobat reader. i have done with this.to open a dairect file i use a this code.
openPdf1.addEventListener (MouseEvent.CLICK, function ():void {
[code]....
but now when i am going to mac os then this code is not working. means file is not open so how can i open file in mac using this codes.
Is there a fscommand that allow the resize of the projector window? Or that send a kind of event to the window itself that make the window "blinking" in the task bar (like when you are receiving a message in MSN and your window in minimized)?
Is there a fscommand that allow the resize of the projector window? Or that send a kind of event to the window itself that make the window "blinking" in the task bar (like when you are receiving a message in MSN and your window in minimized)?
how to open pdf, swf file in flash 8 projector? i am using exec command which was used earlier in flash 8 but its only working for exe files after keeping the files in folder named fscommand....
I am creating a Flash projector to work on a CD for a client to distribute. There has to be a listing of their PDF's in the flash program, that when clicked, will open the actual PDF in a separate window. I found one comment in this site to use "GetURL", but found out it is ONLY for HTML. There was mention of setting up the FSCommand to open another application, such as a PDF file, but how? I have the files in the same directory and tried putting the file name in the "GetURL" (the PDF file), but just freezes when trying to open. Also, is there a way they can drag and drop the PDF files to the desktop, that has the listings of the PDF's and save to the hard drive?
I was wondering if it is possible to open Microsoft Word through ActionScript 3.0 on Flash CS3? I have tried several different ways so far, but none work. I actually want Word to open (or whatever their default word document may be). I don't want to open it on an internet browser.
im using Flash CS4 slide presentation to make a education CD. In the end of the slides i want to open a pdf file.How can i do it? Is it a east way to do it? I publish the project as a projector file. I tested to use GetURL but the file wont open. I have the pdf-filein the same folder as the projector exe-file.
But when I click on that link in our standalone.exe, on my system "ultraedit" gets opened and it tries to open a path on the local system and the webpage adress after that. "C:ProjectsInflationhttp:\www.google.de".
I have read several posts where people discuss TOPMOST and SWF Studio as options for keeping applications running in the top of the z order.
My question is: Is there a way to create a projector that always stays on top (e.g. even if a windows update occurs) without purchasing SWF Studio? As I understand TOPMOST is only for launched applications, not for the application itself.
I need to make a hybrid CD-Rom that has PDFs. I want to launch the PDF in Acrobat, not a browser (they interactive and have bookmarks etc). I can get it to work on the PC side with no problem but am having trouble on the Mac.
I've made an applescript that works, and have it in the "fscommand" folder.
However, I can't get the Flash projector to launch it. I'm using this code on a button;
quote:
on (release) { fscommand("exec", "testing.app"); }
It's a disk image. I can't work out why it doesn't work and it is driving me insane.