Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


jigsaw button



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
nawaray



Joined: 10 Mar 2008
Posts: 2

PostPosted: Mon Mar 10, 2008 7:40 am    Post subject: jigsaw button Reply with quote

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);
 
 
 }
}

 
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap