PDA

View Full Version : Can you run your CD drive via actionscript?


Graeme Moodie
08-15-2006, 04:21 PM
Can you run your CD / DVD drive via actionscript?:confused:
if you had a game cd or a dvd in it, can you get it to start up and run with a command from a swf or an exe made in flash?

Def Gie
08-15-2006, 05:09 PM
I think you could access the files by specifying the path to the CD drive with things like loadVariables and stuff. Anything that loads an external something-or-other. Maybe not though.

CyanBlue
08-15-2006, 05:19 PM
Howdy... :)

Flash won't be able to detect whether you have your CD drive set to E or Z... What I am saying is that Flash alone cannot do the job... Go check out those third party projectot tools such as Zinc, mProjector, SWF Studio or Screenweaver to see if they can help...

northcode
08-16-2006, 12:30 AM
This will get you the drive letter of the CD/DVD your Flash projector is running from....

drv = _url.substr(8,1);

Once you know that (assuming you know the layout of your own CD) you can construct absolute paths to content for loadMovie XML.load, etc.

Graeme Moodie
08-16-2006, 09:21 AM
sorry if I wasn't clear - I want to create a sort of free standing exe, acting as a menu that will launch applications & games installed on local harddrive, run the cd drive,run the dvd drive - can flash do it? can ANYTHING do it? . . . . easily?? :confused:

northcode
08-17-2006, 09:11 PM
There are a number of third party projector tools that will extend what you can do in Flash. You still write your interface in Flash, but then you use one of these tools to turn your SWF into an EXE (instead of using Flash to do that). What that buys you is a LOT of added functionality like being able to access the local drives, files and folders. Here's a list of candidates to get you started.

SWF Studio http://www.northcode.com (my baby)
Jugglor http://www.jugglor.com
mProjector http://www.screentime.com
SWFKit http://www.swfkit.com
SWiSH Studio http://www.swishzone.com
Zinc http://www.multidmedia.com

Graeme Moodie
08-18-2006, 11:24 AM
Thanks northcode - that's a good help
I'm seeing that flash alone maybe can't do it

squadronleader_181st
08-22-2006, 08:39 PM
sorry if I wasn't clear - I want to create a sort of free standing exe, acting as a menu that will launch applications & games installed on local harddrive, run the cd drive,run the dvd drive - can flash do it? can ANYTHING do it? . . . . easily?? :confused:

Well if you want it to able to run any Cd, i know this wouldn't work for a lot of things but for games you can always point to the autorun.exe file.