on mouseUp me
if Event = #mouseup then init me
end
on mouseDown me
if Event = #mouseDown then init me
end
on mouseEnter me
if Event = #mouseEnter then init me
end
on mouseLeave me
if Event = #mouseLeave then init me
end
on enterFrame me
if Event = #enterFrame then init me
end
on exitFrame me
if Event = #exitFrame then init me
end
on init me
if the mode of me = #"close" then
mci "set cdaudio time format tmsf"
MCI "set cdaudio door closed"
else
MCI "set cdaudio door open"
end if
end