Code: Select all
on mouseUp
put the width of this card into tWidth
put the height of this card into tHeight
put tWidth / 2 into tHorizontalMiddle
put tHeight / 2 into tVerticalMiddle
put 0 & "," & tVerticalMiddle into Point1
put tHorizontalMiddle /2 & "," & tVerticalMiddle into Point2
put tHorizontalMiddle & "," & tVerticalMiddle into Point3
put tHorizontalMiddle *2 & "," & tVerticalMiddle into Point4
put tWidth & "," & tVerticalMiddle into Point5
put the movieControllerID of player player1 into moco1
qtSetTrackBalance moco1, "", -128
start player player1
Repeat for 2 times
move graphic UFO from point1 to point2 in .5 seconds
qtSetTrackBalance moco1, "", -65
move graphic UFO from point2 to point3 in .5 seconds
qtSetTrackBalance moco1, "", 0
move graphic UFO from point3 to point4 in .5 seconds
qtSetTrackBalance moco1, "", 65
move graphic UFO from point4 to point5 in .5 seconds
qtSetTrackBalance moco1, "", 127
-- Reverse Direction
move graphic UFO from point5 to point4 in .5 seconds
qtSetTrackBalance moco1, "", 65
move graphic UFO from point4 to point3 in .5 seconds
qtSetTrackBalance moco1, "", 0
move graphic UFO from point3 to point2 in .5 seconds
qtSetTrackBalance moco1, "", -65
move graphic UFO from point2 to point1 in .5 seconds
qtSetTrackBalance moco1, "", -128
end repeat
stop player player1
end mouseUp
B.J.