PDA

View Full Version : On Clickd:/files/program.exe



astrazx
08-08-2004, 10:42 PM
I am trying to get my buttons to load programs from a promo cd that I am making. When I click on a button I want it to execute or install a program lets say goge toolbar for example. I have tried several methods but Flash keeps insisting on changing my file path. Can someone please help.

NTD
08-10-2004, 05:02 PM
Hi,

I am not certain of what you are trying to achieve. For executing an .exe from a CD, you would use the fscommand on a button method. Using the 'exec' command, you can specify another application file to be run concurrently with the Flash projector. In this way, you can use Flash projectors as front-ends to software installers. For this scenario, you would include the software installer .exe file on the same CD-ROM or floppy containing the projector. For example, if you had a software installer named 'setup.exe', you could add the following AS to an install button in the Flash projector...



on (release) {
fscommand ('exec', 'setup.exe');
}


Hope it helps
NTD

astrazx
08-25-2004, 10:03 PM
For what ever reason some of the buttons work and others give me errors, I'm not sure why I'm using the same command on all the buttons. Any Idea?


Scene=Scene 1, Layer=layer 1, Frame=1: Line 2: ')' or ',' expected
getURL("blobs.exe, "_blank");

Scene=Scene 1, Layer=layer 1, Frame=1: Line 3: ';' expected
}

Scene=Scene 1, Layer=layer 1, Frame=1: Line 1: Invalid mouse event specified.
on (pressgetURL(spamfighter.exe);

Scene=Scene 1, Layer=layer 1, Frame=1: Line 2: Unexpected ')' encountered
) {

Scene=Scene 1, Layer=layer 1, Frame=1: Line 3: Unexpected '}' encountered
}

NTD
08-26-2004, 08:58 AM
Hi,

You can get errors like that if your code is not formatted correctly. Make sure your code contains all the brackets it needs. One too few or one too many anywhere in your code and errors like that appear. One other thing I notice is your using getURL to launch the .exe. This would require the opening of a browser window to accomplish the task. The fscommand will execute an exe without a browser window.

NTD