A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: ::: make a Test :::

  1. #1
    Member
    Join Date
    Jan 2003
    Location
    CPU
    Posts
    38

    ::: make a Test :::

    Hi!
    happy 2 meet u!

    i've 2 make a test..

    it's quite simple:

    in every frame i put a question...and the guy have to answer if it's true or false [2 buttons]...

    at the end we have the list of how much error he makes and the time it spend 2 do the test. The question have to be randomly presented....

    how can i do it?

    thanx



  2. #2
    Member
    Join Date
    Nov 2002
    Posts
    78
    You use actionsript. You know how to use actionscript right?

  3. #3
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006
    Hi there:-

    That would be one of those programmes that never end.

    It would be a fair task for anyone with a good knowledge
    of Action script.

    You would need to enter questions and answers into arrays.
    Script would need to keep track of wrong / right replies.
    and the timing part could be quite tricky.

    You could start here:-

    http://www.macromedia.com/support/fl...quiz_tutorial/

    I do believe when you open a new project in Flash MX, there are
    some templates for quizes. But they are basic, not random,
    and as far as I can remember, it does not give any timings.
    If someone tells you it can't be done,
    it's probally because they don't know how.

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

  5. #5
    Standrard flasher
    Join Date
    Jul 2002
    Location
    Stockholm
    Posts
    342
    actually it's not that hard att all. you need very little actionscript. if you have 2 buttons, one will take you to the next question, and the other will set a variable, we'll call it "errors" to what it was previously + 1. and then on the final page you have a dynamic texfield with the variable "errors".

  6. #6
    Standrard flasher
    Join Date
    Jul 2002
    Location
    Stockholm
    Posts
    342
    i'm not sure how to do the random questions though.. maybe you could have one mc for every question, all placed on the stage with visibilty = false, and then the press of a button will make a random question mc visible...

  7. #7
    Living Proof mave_the_rave's Avatar
    Join Date
    May 2002
    Location
    East Dulwich
    Posts
    1,006
    Originally posted by erik_a_olsson
    i'm not sure how to do the random questions though.. maybe you could have one mc for every question, all placed on the stage with visibilty = false, and then the press of a button will make a random question mc visible...
    The random bit is not too much of a problem in it's self,
    but to make the quiz interesting you would need at least 100
    questions, set in arrays which you could use you random element
    to select.

    But as I said, these programs never end, you are always adding
    new elements. Like question catergories, highest score, fastest
    finger / answer. Beat the clock.

    You also have to consider the graphic elements, to make the
    thing look good.
    If someone tells you it can't be done,
    it's probally because they don't know how.

  8. #8
    Member
    Join Date
    Jan 2003
    Location
    CPU
    Posts
    38
    Originally posted by mave_the_rave
    The random bit is not too much of a problem in it's self,
    but to make the quiz interesting you would need at least 100
    questions, set in arrays which you could use you random element
    to select.

    But as I said, these programs never end, you are always adding
    new elements. Like question catergories, highest score, fastest
    finger / answer. Beat the clock.

    You also have to consider the graphic elements, to make the
    thing look good.
    Thanx Everybody!

    i think there're some tricks 2 make things simplier:
    for example i could make one question in one scene and simply make a random goto and Play on the "next question" botton" []

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center