Conditional Statement

Hello,

I’m currently working on a puzzle.

The objective of the puzzle is to place the numbers in
order from 1 - 10

Once the puzzle is complete you’re taken to a specific frame.

However, I want to be able to go to 1 of 2 frames
depending on how long it takes to complete the puzzle.

Each number has the following code:

on (press) {
startDrag(this, true);
}
on (release) {
stopDrag();
if (this._droptarget == “/box1”) {
_root.corSound.start();
_root.count = _root.count+1;
_root.cnt = _root.count;
this._visible = false;
tellTarget ("/box1") {
gotoAndStop(“pic”);
_alpha = 100;
}
if (_root.count >= 10) {
tellTarget ("/") {
_root.gotoAndStop(4);
}
}
} else {
_root.wrSound.start();
}
}