I have a game, where kids have drag some labels onto a map. There’s 9 labels, and 9 target areas.
Once all the labels are placed on a target area, a button should appear so that when they click on it, the computer can mark their answers.
Any correct labels stay in their place and turn green, any incorrect ones flip back to their original position, and you have another go.
The problem I’m having is getting the computer to recognise when all 9 labels are in place. So far, I’ve got the following code on each button inside each mc, that checks to see if the label is placed on a target. If it is, it’ll centre itself, if not it’ll go back to the side:
on (press) {
        this.startDrag("", 0, 0, 740, 420);
}
on (release) {
        this.stopdrag();
        drop = this._droptarget;
        if (drop == “/targete”) {
                this._x = 357.4;
                this._y = 220.9;
        } else if (drop == “/targetemid”) {
                this._x = 320.5;
                this._y = 180;
        } else if (drop == “/targethumber”) {
                this._x = 315.5;
                this._y = 137;
        } else if (drop == “/targetlondon”) {
                this._x = 407.4;
                this._y = 263;
        } else if (drop == “/targetne”) {
                this._x = 278.5;
                this._y = 80;
        } else if (drop == “/targetnw”) {
                this._x = 186.5;
                this._y = 142;
        } else if (drop == “/targetse”) {
                this._x = 324.5;
                this._y = 306;
        } else if (drop == “/targetsw”) {
                this._x = 181.5;
                this._y = 309;
        } else if (drop == “/targetwmid”) {
                this._x = 186.5;
                this._y = 219;
        } else {
                this._x = 514.5;
                this._y = 276.5;
        }
What I want to do is add on some AS after this so that it’ll check whether all the labels are in a target, and if they are make the mark button mc visible. I’ve got a whole load of if statements, and they work in other areas of the movie, but when I put them after the above code, nothing happened.
Any ideas please???
- Kit