I don't know if I am doing this correctly. Please help me. I am trying to move the two images back and forth on the screen to make it look like it's closing and opening.
while (x>=1) {
var customFrame1 = Laser1.frame
if isImageLeftSide {
customFrame1.origin.x = customFrame1.origin.x + 25
}
else {
customFrame1.origin.x = customFrame1.origin.x - 25
}
var customFrame2 = Laser2.frame
if isImageLeftSide {
customFrame2.origin.x = customFrame2.origin.x + 25
}
else {
customFrame2.origin.x = customFrame2.origin.x - 25
}
x += 1
}
