A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: An "eject" command?

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Posts
    11

    An "eject" command?

    Is it possable to make a button with the action to "eject" the cd-rom drive?

  2. #2
    Senior Member Penleeki's Avatar
    Join Date
    Mar 2003
    Location
    England
    Posts
    223
    I should hope not, otherwise some annoying ad banner might find it funny to make your cd-rom drive dance in order to get your attention.

  3. #3
    Junior Member
    Join Date
    Mar 2003
    Posts
    11

    well...

    Well in my case i want to make a juke box interface... not some evil banner from beyond... :-D

  4. #4
    Senior Member
    Join Date
    Mar 2001
    Posts
    351
    No... it's not possible, unless you use an active-x command script embedded in the html to manipulate the auto-detect function on the operating system. This obviously is frowned upon, and then it would only work if the user had not disabled auto-insert, or disabled active-x (you'll find alot do).
    So really.. no...

    Now you CAN create a virtual jukebox and have IT eject... that's up to you
    "If you can't beat em, join em"

    Sorry no banner, Tripod deleted my account :-(
    Can't be chewed to sort out another account :-)

  5. #5
    It always rains here!
    Join Date
    Jul 2002
    Location
    UK
    Posts
    371
    Not sure about Flash, but here's some VB script that you just need to embed into the head content of a basic html page to do this:

    -------------------------

    <SCRIPT language=VBScript>
    <!--
    MsgBox "Click to open CD rom drive",64,"CD Rom Opener"
    Set oWMP = CreateObject("WMPlayer.OCX.7" )
    Set colCDROMs = oWMP.cdromCollection
    if colCDROMs.Count >= 1 then
    For i = 0 to colCDROMs.Count - 1
    colCDROMs.Item(i).Eject
    Next ' cdrom
    End If
    -->
    </SCRIPT>

    -------------------------

    Not sure if this helps you?

  6. #6
    Junior Member
    Join Date
    Mar 2003
    Posts
    11

    Dang

    Well to bad I can't do it in Flsh but I'll look into the VB script. Thanks for your help guys!

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