queen.onPress = function() {
this.startDrag(true);
updateAfterEvent();
};
queen.onRelease = function() {
this.stopDrag();
if (this.hitTest(greens)) {
gotoAndPlay("greens over", "greenstart");
}
if (this.hitTest(reds)) {
gotoAndPlay("reds over", "redstart");
}
if (this.hitTest(talls)) {
gotoAndPlay("talls over", "tallstart");
}
if (this.hitTest(pinks)) {
gotoAndPlay("pinks over", "pinkstart");
}
if (this.hitTest(shrooms)) {
gotoAndPlay("shrooms over", "shroomstart");
}
};
No comments:
Post a Comment