A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Launching Windows Explorer from within Flash

  1. #1
    Junior Member
    Join Date
    Nov 2000
    Posts
    3
    Hello all... I need help!

    I made a Flash movie which will be featured on a CD. When the CD is inserted, the Flash exe will auto-run. In the movie is a button which I would like to launch Windows Explorer when pressed.

    The button, in reality, is a "Browse CD" button. I have figured out how to launch Explorer...

    On (Release)
    FS Command ("exec", "explorer.exe")
    End On

    ... but it does not open Explorer to the CD's view. It opens it to the default.

    Is there a way to open Explorer so that it shows the content of the CD?

    Thanks for your help in advance!

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    252

    Post Opening Explorer

    Just change the code to look like:

    On (Release)
    FS Command ("exec", "explorer.exe d:\")
    End On

    where d:\ is the CD-Rom, this could present a problem on a system that has 2 harddrives where the CD-Rom is maybe e:

    Can anyone help with this little problem?

  3. #3
    Junior Member
    Join Date
    Nov 2000
    Posts
    3

    Smile

    Thank you, threnody... I wasn't sure of the syntax to specify the drive.

    I did sort of anticipate the CD drive having a different letter, though.

    Can anyone help with this?

  4. #4
    Senior Member Olorin's Avatar
    Join Date
    Aug 2000
    Posts
    1,151
    maybe u could use the _url thingy. I haven't tested it, but it should be set to the location of the swf file, so it would also contain the drive letter for the CD. With a little string manipulation you can get a variable which only contains the drive letter and you could use that in your FS command.
    Don't know if it works though, but you could try it...

    Olorin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center