Snap images to location....

Patten, John John.Patten at sbcusd.k12.ca.us
Tue Jun 3 18:05:01 EDT 2003


Hi All...

I'm trying to snap an image using the "grab me" comand and a mouse up handler...

as in...

on mouseDown
  grab me
  set the borderWidth of the target to 7
end mouseDown


on mouseUp 
  set the borderWidth of the target to 1
  get the loc of me
  put it into tempLoc
  put item 1 of temploc into theX
  put item 2 of  temploc into theY
  if thex < 160 then
    if thex > 150 then
      if theY < 100 then
        if theY > 85 then
          put "good job"
          else
          if thex < 395 then
            if thex > 370 then
              if theY < 95 then
                if theY > 70 then
                  put "New good job"
                   
                end if
              end if
            end if
          end if
           
        end if
      end if
    end if
 end if
end mouseUp

Obviously, this script is not working... but there must be an easier way that works :-)

TIA!

John Patten
Tech Dept
SBCUSD






More information about the use-livecode mailing list