View Full Version : [AS3] help in opening a folder
melvinace5
02-13-2009, 03:02 PM
can someone help me in actionscript 3.0?
where in a can open a folder? :confused:
please reply asap..
thanks in advance.. :)
northcode
02-13-2009, 08:01 PM
If you're restricted to a pure ActionScript solution you'll have to use getURL("file://c:\\windows") but that will use your default browser to open the folder. If you use fscommands then you have more options. The easiest is to put the following line in a BAT file, put the BAT file in your fscommand folder (beside your EXE) and then EXEC the BATfile from Flash. If you need to open different locations you can create a different BAT file for each folder you want to open and EXEC it when you need to open that folder.
explorer.exe c:\windows
melvinace5
02-17-2009, 01:26 PM
how can i call the folder without calling any drives?
hope someone can help... thx in advance
northcode
02-17-2009, 03:24 PM
I just used C:\windows because it was an easy example but the folder has to be on a drive somewhere. You can use relative paths in the BAT file. Just remember that the paths are relative to the location of the BAT file, not relative to your EXE.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.