11 Replies - 12243 Views - Last Post: 03 June 2005 - 04:13 AM

#1 Violator_78  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 25-May 05

Need help with true or false trivia quiz-URGENT!

Posted 25 May 2005 - 02:55 PM

Greetings everyone, my name is Eva, and I am new to this board. I was wondering if someone could help me figure out the coding for a simple true or false trivia game quiz. This is due on Fri. May 27...2 days! I've been trying but to no avail at all. :crazy:
I'm currently finishing a New Media Communications program, and am not very good at programming...more of a visual person.
Basically just a T or F quiz where there are 2 buttons for true and false which the user presses to answer the questions, and i need them to work. LOL
Thank you! :)

Is This A Good Question/Topic? 0
  • +

Replies To: Need help with true or false trivia quiz-URGENT!

#2 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1877
  • View blog
  • Posts: 20,284
  • Joined: 17-March 01

Re: Need help with true or false trivia quiz-URGENT!

Posted 25 May 2005 - 03:03 PM

By work, what do you mean? It sounds like you just need to display a question, 2 button, if they click the right one they get a message saying they were correct, otherwise a message that says try again?!

If this is the case, I would have 3 frames, the first with the question and 2 buttons, the second with the message "You're Correct!", the third with "Sorry, Please try again", the True and False button should have an onclick go to frame action on them.

Do you have any of the code done or anything we can take a look at? Do you have to use some specific function or method to accomplish this?
Was This Post Helpful? 0
  • +
  • -

#3 Violator_78  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 25-May 05

Re: Need help with true or false trivia quiz-URGENT!

Posted 25 May 2005 - 03:12 PM

Actually, I don't really have anything started...so I don't have anything to show you, sorry. Trying to play around with booleans and what not, I keep starting over because I really don't know what to do...basically I really suck at actionscript. lol
But yeah, you described perfectly, the way the game should operate. Any suggestions at all would help me bigtime...thanks!
Was This Post Helpful? 0
  • +
  • -

#4 Violator_78  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 25-May 05

Re: Need help with true or false trivia quiz-URGENT!

Posted 25 May 2005 - 03:14 PM

I forgot to mention that my game has an opening screen with a basic 'start' button that leads into the question screen...where those T or F questions are displayed one by one on each screen...it's for kids.
Was This Post Helpful? 0
  • +
  • -

#5 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1877
  • View blog
  • Posts: 20,284
  • Joined: 17-March 01

Re: Need help with true or false trivia quiz-URGENT!

Posted 25 May 2005 - 03:25 PM

Here is a tutorial on creating a quiz in flash, might be more than you need, but should work fine:

http://actionscript....uiz/index.shtml

The way I was talking was just creating a button/symbol with the following actionscript:

on(release) {
	gotoAndStop(5);
}



That will cause the button to send the player to whatever frame has the proper message (Correct/Not Correct). Really up to you how complex or simple you want to make it.
Was This Post Helpful? 1

#6 Violator_78  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 25-May 05

Re: Need help with true or false trivia quiz-URGENT!

Posted 25 May 2005 - 03:28 PM

Thank you very very much. I mean it. You are a life-saver! :D
Was This Post Helpful? 0
  • +
  • -

#7 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1877
  • View blog
  • Posts: 20,284
  • Joined: 17-March 01

Re: Need help with true or false trivia quiz-URGENT!

Posted 25 May 2005 - 03:32 PM

No problem, that's what we're here for! Welcome to dream.in.code!!

If you run in to any problems, just post what you've got and one of our flash experts will hopefully get a chance to look at it. I personally do not program in Actionscript, just know enough of the basics to get by.
Was This Post Helpful? 0
  • +
  • -

#8 Violator_78  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 25-May 05

Re: Need help with true or false trivia quiz-URGENT!

Posted 03 June 2005 - 12:02 AM

Ok, I'm gonna need the big guns of Flash now...lol Please could someone take a look at what I have and suggest how to go about completing this trivia game? I will forever be indebted... :)

Attached File(s)


Was This Post Helpful? 0
  • +
  • -

#9 Violator_78  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 25-May 05

Re: Need help with true or false trivia quiz-URGENT!

Posted 03 June 2005 - 12:04 AM

Here are a few screen shots of what I'm working on.

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#10 Violator_78  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 25-May 05

Re: Need help with true or false trivia quiz-URGENT!

Posted 03 June 2005 - 12:05 AM

The errors I keep running into...

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

#11 pioSko  Icon User is offline

  • still.dreaming
  • member icon

Reputation: 23
  • View blog
  • Posts: 1,888
  • Joined: 06-June 03

Re: Need help with true or false trivia quiz-URGENT!

Posted 03 June 2005 - 01:58 AM

from the last screen I can tell that you have a script in the wrong place. or used the wrong syntax.

on(press) is used on the actual button... (make sure it is a button, not a movieclip)

if you want to do the actionscript for a button in a timeline frame (NOT the button itself) use :

buttonName.onPress = function(){
   // button action
}


The code that you've attached seems fine. The error must be somewhere else in your movie. I suggest checking all your buttons and their actions...
Was This Post Helpful? 0
  • +
  • -

#12 Violator_78  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 25-May 05

Re: Need help with true or false trivia quiz-URGENT!

Posted 03 June 2005 - 04:13 AM

THank you! :D I'm gonna go and try it again... :crazy: B)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1