Use to close MIAW with a button. Must be used with the WindowShade MIAW behavior.
property pMouseDown
on beginSprite me
set pMouseDown = 0
end
on mouseDown me
set pMouseDown = 1
end
on mouseUp me
if pMouseDown then
set lMovieName = the movieName
repeat with w in the windowList
set lPathToWin = the filename of w
if lPathToWin contains lMovieName then
close w
sendAllSprites(#externalWindowShadeOpen)
exit repeat
end if
end repeat
end if
set pMouseDown = 0
end