Gary
Premium Member
Registered: 22nd Nov 06
Location: West Yorkshire
User status: Offline
|
Making a flash intranet type thing and want to know how to run a local program from flash, tried using the get url actionscript but it dosent wrk right.
Anyone know?
[Edited on 24-01-2007 by glb86]
[Edited on 29-01-2007 by Ian]
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
Geek day....
but not sure you can due to security issues - if you could then it would be possible to start any program with a remote webpage (ie. page downloads a virus program and flash could start running it)
|
Gary
Premium Member
Registered: 22nd Nov 06
Location: West Yorkshire
User status: Offline
|
the intranet will be running a local prog from the comp. Its the in exactly the same directory on each comp so its not running a prog off the tinterweb
|
Rus
Member
Registered: 24th Jan 05
Location: SE London, Kent
User status: Offline
|
i do actionscript for a living, but i have no idea what your on about.
|
liamC
Member
Registered: 28th Feb 04
User status: Offline
|
quote: Originally posted by Rus
i do actionscript for a living, but i have no idea what your on about.
I think he wants to run an application that would be on the persons machine from a button within his flash
So instead of going to http:// whatever he goes to f:\program files\application.exe
I think anyway.
How long did it take you to learn actionscript mate? Do you know the lot?
|
Rus
Member
Registered: 24th Jan 05
Location: SE London, Kent
User status: Offline
|
i've never had a reason to call a program (.exe) from flash. i always use ASP.NET for that kind of thing
started learning flash about 3 years ago at college. But now i'm in the industry, i use flash pretty much everyday for the last 6 months.
i guess i know a fair amount.
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
You can use the geturl.... but make sure you type 'file:///C:/path/' with the ''s....
you can only test this AFTER you have built the file... it won't work in previw mode....
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
still don't think you'll be able to do it - flash doesn't know if you are local or not so (probably) doesn't allow you to do it....
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
also.... the getURL will only work when acompanied by a on function.
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
quote: Originally posted by aPk
still don't think you'll be able to do it - flash doesn't know if you are local or not so (probably) doesn't allow you to do it....
when ever a website/flash sees file:/// it auto asumes you want to run it from the client, not the host....
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
try it... make a file in your C:\ called test.txt and click here >>>> file:///C:/test.txt
[Edited on 24-01-2007 by Antz]
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
yeh, I know that will work but if macromedia had any sense they wouldn't allow flash to run client programs - I honestly don't know 100% but if flash open programs remotely that is highly insecure....
|
Antz
Member
Registered: 28th Jul 03
Location: Leeds Drives: Myself Insane!
User status: Offline
|
how dow you think people make autorun flash start up files and stuff... and if IE can do it why can't Flash??
|
AndyKent
Member
Registered: 3rd Sep 05
User status: Offline
|
Thats different - an autorun flash app is being started by Windows not flash opening something else.....
|
Gary
Premium Member
Registered: 22nd Nov 06
Location: West Yorkshire
User status: Offline
|
ive tried file:///c:..... in geturl, but it loads IE and then starts the prog, i need to to start it without IE
|
waynep
Member
Registered: 20th Apr 02
Location: london
User status: Offline
|
there is a prog called flash jester i use that to call exe files ... search it
|
Gary
Premium Member
Registered: 22nd Nov 06
Location: West Yorkshire
User status: Offline
|
Im not buying it, any chance anyone can make me a .fla with a single button in it that starts a .exe file. Without goind thru IE first. So it just starts, batch files are fine too
|