View Full Version : a quiz
evride
04-19-2007, 12:27 AM
easily edited via XML
nice looking
do whatever you want with it.
what it does:
asks you a question and u respond by choosing one of three pre-chosen answers (from the XML doc) and then it will loop through the rest of the questions until there are no more. it then displays the result. You can add edit and delete questions in the XML doc. To actually use this u need the XML document inside the same folder as the swf or fla (when you test movie). The xml document will show u the structure.
view swf (http://www.erictek.com/flashfiles/quiz.swf)
download fla file (http://www.erictek.com/flashfiles/quiz.fla)
download the XML document (http://www.erictek.com/flashfiles/questions.xml)
tango88
04-19-2007, 01:47 AM
Hi Evdog,
Well done. I'll give some comments:
On a practical basis, the user needs to wait a long time for the questions to appear. The picture in the background is too bright and distracting. You could reduce the brightness, and put the questions in a white box with the alpha settings adjusted so that it's see-through.
Using an XML file is cool. I played around with quizzes using an array (so the data is not externally loaded, but still easily updated): here: www.flashbynight.com/tunemaster
Also, it can be easier to read from text files. See the quizzes on my other site: www.roadtogrammar.com/welcome Sample questions are here www.roadtogrammar.com/welcome/set1.txt
What is your quiz for? Anything? or just for fun?
evride
04-19-2007, 02:17 AM
i made it for my brother, it was a college project he had to do. He specifically told me what to do and use so i couldn't make it too awesome. Like the background was his (i did darken it a little) and he wanted the question to scroll up. Also this is meant for longer questions so the bottom part of the text box has to pass the top of the stage. I had to make this in about an hour and i just felt like posting it on here to help people start on their ideas. This is a great example of xml use and loops and conditional statements.
dvlnblk
04-19-2007, 05:13 AM
i made it for my brother, it was a college project he had to do. He specifically told me what to do and use so i couldn't make it too awesome. Like the background was his (i did darken it a little) and he wanted the question to scroll up. Also this is meant for longer questions so the bottom part of the text box has to pass the top of the stage. I had to make this in about an hour and i just felt like posting it on here to help people start on their ideas. This is a great example of xml use and loops and conditional statements.
Evedog, I don't want to be critical but if you post something on SiteCheck then you have to be willing to take the heat; Most everyone here are serious devs and when they see something wrong they will point it out. Yes, the XML quiz is cool and how it loops through to find the correct answer is cool...You have, however, not created anything new...Google "the breakup" If you notice there is a quiz there that does the same exact thing. So, while your code is cool it still has usability issues. If you want people to say "wow...great AS" then wrap it in a plane old, non-design shell and don't confuse users with the whole scrolling thing. Because it was confusing. Then you may want to not post it until it is complete in all facets or you will get usability comments. But Kudos to you, I do like the XML functionality. Dvl
evride
04-19-2007, 09:05 PM
i changed what he said to.
im sorry if i sound like a jerk
dvlnblk
04-19-2007, 09:08 PM
Haha, I didnt say you sounded like a jerk just a little "defensive" and I totally understand that because when we create something it becomes our baby and we don't want to see people be critical of our baby. I get that way sometimes too. But I do like the XML/AS code. :)
evride
04-19-2007, 09:14 PM
i updated it, and then i updated it again 2 minutes ago.
its uploading to the site right now. it no longer has the scrolling thing
also i can find that site
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.