I'm trying to an group that can only be moved up and down. until this point i've been doing just fine using the following:
Code: Select all
on mouseDown
grab group "boxes"
end mouseDown
thanks in advance for any assistance you can provide!
-Sean
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseDown
grab group "boxes"
end mouseDown
Code: Select all
on mouseMove x,y
put the left of grc "vLine" into h
put the top of grc "hLine" into v
put H & "," & v into origin
put abs(x-h) into hWindow
put abs(y-v) into vWindow
switch
case vWindow < 10 and hWindow < 10
set the loc of me to origin
break
case vWindow <= 10
set the loc of me to x & "," & v
break
case hWindow <= 10
set the loc of me to h & "," & y
break
case hWindow > 10 and vWindow > 10
set the loc of me to the mouseLoc
break
end switch
end mouseMove