on enterFrame  -- makes no difference if it's exit or prepareframe
  if pMove = true then
    pX1 = the mouseH - pLoc[1]
    pX2 = the mouseV - pLoc[2]
    pRect = pRect.offset(pX1, pX2)
    (the activeWindow).rect = pRect
  end if
end

While it's not a suggestion as to why the window gets sluggish, try only updating its rect when the mouse has moved. So: store the last mouseLoc, check it against the current one and bail out if they're the same. That way you're only telling the window to update its rect when it needs to, as opposed to every frame.



[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to