|
|
MIAW Event Leak
Added on 4/4/2000
|
Detect if a mouseover event is leaking from a MIAW to a button on the stage.
Before doing anything on a mouseover event check for the MIAWEventLeak() if it comes back TRUE cancel any action.
on MIAWEventLeak
vMouse = the mouseLoc
vMouse = point((getAt(vMouse,1) + getAt((the stage).rect, 1)), (getAt(vMouse,2) + getAt((the stage).rect, 2)))
if count(the windowList) > 0 then
repeat with vWindow in (the windowList)
if vWindow.visible = TRUE then
if inside(vMouse, (vWindow).rect) then
return TRUE
end if
end if
end repeat
end if
return FALSE
end
|
|