PDA

View Full Version : Open windows explorer from the flash projector


Alida
10-24-2008, 10:04 AM
Hello everybody,

I have an unfinished project that I need to complete, and unfotunally I don't know Actionscript 3.0 too well.

The whole project is a DVD that autoruns the flash (exe), and what I need is a button that will just open the root directory (or a specified folder in the CD, it doesn't matter) with the windows explorer.

I've been googling it for so long now, I really hope someone can help me find the proper script for it...
(:

Thanks a lot!

Alida:rolleyes:

Alida
10-24-2008, 12:06 PM
plz help someone?

I know my question is annoying, but plz plz plz!

I found the code for AS2:

on(release){
getURL("..//mydir")
}

but how do I do that in AS3..?

I hope someone knows...

Thanks in advance

matbury
10-24-2008, 12:31 PM
You could try:
var request:URLRequest = new URLRequest("..//mydir");
navigateToURL(request);

But for the kind of thing you're trying to do, I'd recommend considering using Adobe AIR. It's a free extension to Flash CS3/CS4. You can read more about it here: http://www.adobe.com/devnet/air/

Alida
10-24-2008, 06:51 PM
Thanks Matbury,

Finally someone pointed me to the right direction..
I already had the right code, apparently, (but of course thinking it's wrong, due to un-workingness :p),
And installing some update and the tools made it all to work.

sorry for the stupid question, but i just installed flash for the first time like 2 days ago (:

Have a good one,

Alida

matbury
10-25-2008, 12:02 AM
You're welcome, and remember, the only stupid question is the one you don't ask!

Happy coding! :)

melvinace5
02-13-2009, 02:28 PM
can u send me that code? please.. help me.. thanks..