nawaray
Joined: 10 Mar 2008 Posts: 2
|
Posted: Mon Mar 10, 2008 7:40 am Post subject: jigsaw button |
|
|
hi,,,
i have a jigsaw puzzle that works fine...
i want to create a button in which when the user finshes the puzzle and want to replay the game he can press the button and the pieces of the jigsaw puzzle will be scattered(spreaded)
how can i do this?
hi,,,
i have a jigsaw puzzle that works fine...
i want to create a button in which when the user finshes the puzzle and want to replay the game he can press the button and the pieces of the jigsaw puzzle will be scattered(spreaded)
how can i do this?
| Code: |
on (press) {
if (this._x!=251.6 &&this._y!=187.1) {
startDrag(this);
}
}
on (release) {
stopDrag();
if (this._x>231.6&&this._x<271.6&&this._y>167.1&&this._y<207.1) {
if (this._x!=251.6&&this._y!=187.1) {
_root.v1 = _root.v1+1;
}
setProperty(this, _x, "251.6");
setProperty(this, _y, "187.1");
}
if (_root.v1=="8") {
setProperty(_root.mabrook, _visible, 1);
firstSound.start(clap);
}
}
|
|
|