Hi Gang!
> My example is a little harder to read at first,
No hard its quit clear.

This works fine for me
but i don't know about the efficiency
Regrads
Gopinath

property onme

on new me, x1,x2,y1,y2
  vButton=[:]
  vButton=[#vleft:x1,#vRight:x2,#vtop:y1,#vbottom:y2]
  --  put vButton
  return vButton
end new

on onme me

  if( the mouseH > me.vleft and ¬
    the mouseH < me.vright and ¬
    the mouseV > me.vtop and ¬
    the mouseV < me. vbottom) then
    cursor 280
    put stat
    return true
    cursor 0
   
  else return false
end if
end onme

****
property onme  
on exitFrame
  
  but1=new(script "vbutton" 385,475,370,393)
  if but1.onme = true then
    cursor 280
    if the mouseDown=True then
      alert("doen")
    else
    end if
    
  end if
  
    but1=new(script "vbutton" 1,100,1,100)
  if but1.onme = true then
    cursor 280
    if the mouseDown=True then
      alert("gotcha")
    else
    end if
    
  end if
  
  go loop
end


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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