3 Replies - 2799 Views - Last Post: 29 November 2008 - 03:54 AM

#1 candyme  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 12
  • Joined: 28-November 08

Flash quiz

Posted 28 November 2008 - 06:03 AM

Can I know if flash could develop a quiz that could randomly generate 10 questions out of 20 questions that do not require any database and internet connectiion? I do not know how to begin as I am new to flash,can anyone help? Thx!
Is This A Good Question/Topic? 0
  • +

Replies To: Flash quiz

#2 theRemix  Icon User is offline

  • D.I.C Regular

Reputation: 15
  • View blog
  • Posts: 440
  • Joined: 19-October 05

Re: Flash quiz

Posted 28 November 2008 - 04:09 PM

View Postcandyme, on 28 Nov, 2008 - 05:03 AM, said:

Can I know if flash could develop a quiz that could randomly generate 10 questions out of 20 questions that do not require any database and internet connectiion? I do not know how to begin as I am new to flash,can anyone help? Thx!


yes it can...
the way i would do it is create an xml with the appropriate question nodes with answer properties

<quiz>
<question id="1" answer="3">
<content>What color is the sky</content>
<choice id="1">yellow</choice>
<choice id="2">green</choice>
<choice id="3">blue</choice>
<choice id="4">turtle</choice>
</question>
<question id="2" answer="4">
<content>How many fingers am i holding up.</content>
<choice id="1">10</choice>
<choice id="2">3</choice>
<choice id="3">12</choice>
<choice id="4">0 because i'm typing</choice>
</question>
...
</quiz>


then pick 10 random questions, format them, and you have all the data to display, and indicate if they chose correctly or not.


but that's just me.

you can and should do this too, but you'd need to research and practice a lot of Actionscript. View tutorials on Lynda.com or post specific questions (such as: "How do i load and parse an external xml file in actionscript3?") on these boards, and we'll be happy to assist you!

the newbie way to go is to probably create a bunch of movie clips on their own frame on the timeline, this gets unmanageable quickly, and you are limited to what you can do with it, (extend it) now or in the future.

hth
Was This Post Helpful? 0
  • +
  • -

#3 candyme  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 12
  • Joined: 28-November 08

Re: Flash quiz

Posted 29 November 2008 - 03:42 AM

Thx theRemix for your reply and your suggestion! =)
Was This Post Helpful? 0
  • +
  • -

#4 candyme  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 12
  • Joined: 28-November 08

Re: Flash quiz

Posted 29 November 2008 - 03:54 AM

May I know how do you random pick the question, and what do you mesn by format them? Are all these codes written in the flash and not in the "Quiz" xml file? Can I know how do I create a xml file? Is it by using dreamweaver? Thx!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1