Flash
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Tutorialized Forums2D GraphicsFlash

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 5th, 2008, 02:03 AM
drisos drisos is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 4 drisos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 8 m 34 sec
Reputation Power: 0
Exit and Restart buttons

Hi there.

I've just finished a quiz game and my only problem now is the Exit and Restart Game buttons, so a player to have the change to choose either to close the program or to play again.
Any ideas what code do I have to use for these two buttons?

Thanks in advance.

Reply With Quote
  #2  
Old May 5th, 2008, 08:32 AM
Banjo Banjo is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 7 Banjo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 25 m 22 sec
Reputation Power: 0
not quite sure but try adding this code on you restart button;

Code:
on (release) {
	gotoAndStop(*);
}


and "*" being the frame that your quiz starts at.

and for the Exit button try this;
Code:
on (release) {
	fscommand("quit")
}


unloadMovieNum(0); if your going to upload the game to a site since fscommand("quit") quits the player.

At least that's what i think

Good luck

Last edited by Banjo : May 5th, 2008 at 08:46 AM.

Reply With Quote
  #3  
Old May 5th, 2008, 03:34 PM
drisos drisos is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 4 drisos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 8 m 34 sec
Reputation Power: 0
Banjo, thanks for the quick replay.

The Exit button works perfectly!!

Concerning the restart code you propose, I’ve already tried it and it doesn’t work. It starts the game from the beginning but it doesn’t clear the player’s previous lifes, points etc. It’s something like the player continues to play from the point he stopped.
Thanks again for your help.
Drisos

Reply With Quote
  #4  
Old May 5th, 2008, 04:59 PM
Banjo Banjo is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 7 Banjo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 25 m 22 sec
Reputation Power: 0
Code:
on (release) {
	gotoAndStop(*);
	score = "0";
}


Try this one, 'score' being the Var name of your dynamic text(i guess that's what you are using as a score counter?)
and some more that looks just like it e.x 'life = "100";'
etc etc..

Hope it helps.

good luck.

Last edited by Banjo : May 5th, 2008 at 05:10 PM.

Reply With Quote
  #5  
Old May 6th, 2008, 06:26 AM
drisos drisos is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 4 drisos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 8 m 34 sec
Reputation Power: 0
Thanks a lot, Banjo. It works fine!!!

Reply With Quote
  #6  
Old May 6th, 2008, 06:27 AM
Banjo Banjo is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 7 Banjo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 25 m 22 sec
Reputation Power: 0
No problems, glad it worked out for you =)

Reply With Quote
Reply

Viewing: Tutorialized Forums2D GraphicsFlash > Exit and Restart buttons


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway