all groups > flash actionscript > march 2004 >
You're in the

flash actionscript

group:

get local file from CD


get local file from CD Rosa-lee
3/9/2004 8:52:38 PM
flash actionscript: I need to be able to load a file, which is an .exe, when someone clicks on the
button. The .exe file is also on the CD with the flash movie. I have tried
getURL, which doesn what I want, brings up the save as box, but it also brings
up a browser window, which I don't want. What would the action script be to
bring just the save as window up? Thanks
Re: get local file from CD ShadowKnyte
3/10/2004 12:53:59 AM
[b]fscommand(command, parameters)

command = "exec" (to executes an application from within the projector.)
parameters = Path to application[/b]

(see flash help documentation for a further details)


Re: get local file from CD ShadowKnyte
3/10/2004 12:54:03 AM
[b]fscommand(command, parameters)

command = "exec" (to executes an application from within the projector.)
parameters = Path to application[/b]

(see flash help documentation for a further details)


Re: get local file from CD Rosa-lee Moore
3/10/2004 1:55:48 PM
couple of questions:

do I still need the on(release)...is that the fscommand part of your
statement? also, what is the [b] for? would this be the correct code:

on(release) (exec, download.exe)

what am I missing? thanks





[quoted text, click to view]
Re: get local file from CD Rosa-lee Moore
3/10/2004 2:04:18 PM
ok, I used this code:

on(release) {fscommand("exec",flashplayer7_win.exe);}

when I didn't put on(release) the code said I had to have an on type, I
also had to add thd { because it said it needed handles. what is wrong
with the above code? thanks so much for your help.



[quoted text, click to view]
Re: get local file from CD ShadowKnyte
3/10/2004 10:19:53 PM
I was merely pointing you in the right direction as you said getURL() wasn't
what you were after. I didn't see it neccessary to write all the code to do it
for you.
It is far better to learn and implement than have someone else do it all for
you.
Re: get local file from CD ShadowKnyte
3/10/2004 10:23:40 PM
[q]on(release) {fscommand("exec",flashplayer7_win.exe);}[/q]

You need double quotes around the file name.

AddThis Social Bookmark Button