Code: Select all
on mouseUp
if the flag of me is empty then set the flag of me to false
set the flag of me to not the flag of me --toggle the boolean flag which is a custom property
If the flag of me then
Rotatehand
RotatehandB
end if
end mouseUp
On rotatehand
set the angle of image"JAS39" to the angle of image"JAS39"+10
if the flag of me then
send rotatehand to me in 500 millisecs
end if
end rotatehand
On rotatehandB
rotate image"JAS39B" by 10
if the flag of me then
send rotatehandB to me in 500 millisecs
end if
end rotatehandB
best wishes
Simon