A Flash Developer Resource Site

Results 1 to 18 of 18

Thread: Is there a way to eject a CD from within Flash?

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    16
    Is there any way to "eject" a CD from within a Flash projector that's on that CD? I know I can use the FSCommand to quit the projector movie, but I was just wondering if you could also have the CD eject from a button within the movie's main interface itself.

    Thanks

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    That's not supported by the SWF format so NO. You can access an otside program from the Projector file with FS commands so that the other program ejects the CD though.

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    16
    Is there some sort of program you know of that would just do that one little thing? Eject the CD, I mean. That's really all I would need it to do. Would I just do an FSCommand 'exec' and follow the path to that program on the CD?

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Yes to the FS command question and I'm not aware of it to the other question although I'm sure there is some source code out there that can be isolated to do just this and compiled into a program.

    Maybe the Master can help with this one.

  5. #5
    Modding with Class JabezStone's Avatar
    Join Date
    Aug 2000
    Location
    Grand Rapids, MI
    Posts
    2,008
    Master,

    This woulb be a great little executable.
    Its only function would be to...
    1.) execute upon the Flash FScommand 'exec'
    2.) eject the CD from the drive the program is running from
    3.) terminate

    Possible? Can you do it?

    Regards,

    Jabez

  6. #6
    Senior Member
    Join Date
    Jun 2000
    Posts
    666
    Yah, you could create a program easily to do it.. I could do a rush job and probally get you a workable program in about 1 to 8 hours (estimate's are so hard) but it's not all that complicated you use the MCI API class.. which allows you to program other cool thing.. like playing .wav's, playing tracks on cd's and of course ejecting the drive

    (an MCI program is planned in the release of Beta 5)

    If you need this program you could probally easily program it in VB, or better yet Delphi or C/C++ (or then again you could just ask me)

  7. #7
    Junior Member
    Join Date
    Dec 2000
    Posts
    16
    Yeah, that's what I was looking for. I would certainly be interested in something like that. I gave a copy of my Flash.exe program to some friends today. (By the way, you guys helped me get it to work right-thanks!), but anyway, they loved it, but were really amazed by the fact that it had an autorun function and that sort of thing. I'm suprised how many people with great computers just don't download much, don't have Winzip, etc, etc... I think an automatic-eject button that could be accessed from within a Flash GUI would be very useful and have a lot of user-friendly appeal to those less daring folks, but I'd rather leave the "real" programming to you. Please let me know, if you come up with something.

  8. #8
    Modding with Class JabezStone's Avatar
    Join Date
    Aug 2000
    Location
    Grand Rapids, MI
    Posts
    2,008
    Master, I have to say that you are an invaluable source on this board.

    Thanks for all your help.

    regards,

    Jabez

    P.S.

    please look at a post I am about to make regarding creating text files from standalone 'without an external app'!

  9. #9
    Senior Member
    Join Date
    Jun 2000
    Posts
    666
    Well it wouldn't be accessed within the Flash interface (that require's a whole new programming process.. of which I am not going down that road yet)

    But this would be a external applications that would take command line calls just like Flash Tools Beta 4

    If you say you want it.. (hint, hint) I'll make it today.. I have some spare time

  10. #10
    Modding with Class JabezStone's Avatar
    Join Date
    Aug 2000
    Location
    Grand Rapids, MI
    Posts
    2,008

    yes, yes... please, please!!

    If you do have some spare time, it'd be great... don't put yourself out.

    Thanks alot,

    Jabez

  11. #11
    Senior Member
    Join Date
    Jun 2000
    Posts
    666
    Consider it done..

  12. #12
    Junior Member
    Join Date
    Dec 2000
    Posts
    16

    Re: yes, yes... please, please!!

    Thanks also from Music City, USA and this humble member of TMUG. The TN Macromedia User's Group. The Master rocks!

  13. #13
    Senior Member
    Join Date
    Jun 2000
    Posts
    666
    Here you go..
    http://theemaster.bizland.com/ftoolmci.zip

    The command set is as follows

    ftoolmci set cdaudio door open
    ftoolmci set cdaudio door closed

    If you need more functionality then that.. you'll have to let me know

    One thing of notice.. I have no idea how this program will work on multiple cdrom drives (ie. more then 1 cdrom drive in a computer)

    (This little program can do a lot more then what is documented here.. but since I haven't had much time to play with the MCI command set this is all I know..)

  14. #14
    Modding with Class JabezStone's Avatar
    Join Date
    Aug 2000
    Location
    Grand Rapids, MI
    Posts
    2,008
    Master,

    You are the greatest.
    Just so you know, I am using windows 95 with Flash5. I loaded you FLA and exported it to a Flash5 standalone, and it works great.

    Very nice work!

    I hope I can be of some assistance to you some time... you have been a tremendous resource.

    Regards,

    Jabez

  15. #15
    Junior Member
    Join Date
    Dec 2000
    Posts
    16
    Just walked in the door. Tried it out and it works like a charm. Awesome. I love it. I knew if anyone could do it, you would. Muchas Gracias!!!Thanks a million. By the way, I'm running Windows 98 and it's smooth as can be on that platform. Great job!

  16. #16
    Old dog learning new tricks

    Join Date
    Dec 2000
    Posts
    1,498

    Master oh Master

    Since the link doesn't work anymore is it possible to upload this magic program somewhere else?

  17. #17
    Member
    Join Date
    Aug 2000
    Posts
    74

    Yeah how about Master??

    I could really use that program too... Please??

  18. #18
    Senior Member
    Join Date
    Jun 2000
    Posts
    666
    This tool is now available as ftoolmci it's here in this thread..
    http://board.flashkit.com/board/show...threadid=88493

    In case the coding is a little complicated it's now
    ftoolmci set$cdaudio$door$open
    ftoolmci set$cdaudio$door$closed


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