Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Play/ Pause/ Stop/ Rewind a Flash Sprite
Universal serial port behavior
DirectMedia Xtra 2
Quiz engine
Set the blend of Sprite
ScreenCapture
Windows For Shockwave
Delete one or more items
macromedia.director.lingo
Allowing Users to Skew an Image
 

 

 

Behavior MIAW Event Leak

Added on 4/4/2000

 

Compatibilities:
D7 PC Script

Rating:

Author: Thomas (website)

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail