dannyboy54
Programmer
Not newbie but limited in action script knowledge
I have made a jigsaw game from scratch and just need a little help in completing it.
below is the script.as file used to control the pieces of the jigsaw:
on (release, releaseOutside) {
if (eval(this._droptarget) == eval("_root."+this._name+"finish")) {
this._x = eval(this._droptarget)._x;
this._y = eval(this._droptarget)._y;
done = true;
}
this.stopDrag();
}
on (press) {
if (done != true) {
this.swapDepths(_root.newDepth);
++_root.newDepth;
this.startDrag();
}
}
what i need to do is detect when the last piece has been put into place so i can make a movie play or make it go to a new frame ect.....
any help would be greatful
thanx loads.
I have made a jigsaw game from scratch and just need a little help in completing it.
below is the script.as file used to control the pieces of the jigsaw:
on (release, releaseOutside) {
if (eval(this._droptarget) == eval("_root."+this._name+"finish")) {
this._x = eval(this._droptarget)._x;
this._y = eval(this._droptarget)._y;
done = true;
}
this.stopDrag();
}
on (press) {
if (done != true) {
this.swapDepths(_root.newDepth);
++_root.newDepth;
this.startDrag();
}
}
what i need to do is detect when the last piece has been put into place so i can make a movie play or make it go to a new frame ect.....
any help would be greatful
thanx loads.