Return to the Forum Home
 Post New TopicNote: Polls are considered new topics.  If you post a poll, it will be created as a new subject in this forum, not as a reply within this topic.Topic Replies: PopIt!Post A Reply
MyPop™ | register | search | faq | forum home


PreviousGo to the next oldest topic in this forum Go to the next newest topic in this forumNext
 friends of ED » friends of ED forums » Director » source code for quiz

Rating:   5-star Rating
Author Topic:   source code for quiz
salha
new friend of ED
Describes the mood or content of the topic posted Click Here to See the Profile for salha   Reply With QuoteEdit or Delete MessageReport This Post
i need a source code how to make a quiz. the quiz will have 10 qustion. and i also hope u can give the source code how to calculate the the quiz marks and display gred.
Posts: 1 | From: malaysia | Registered: 03-13-06
moiseszaragoza
new friend of ED
Describes the mood or content of the topic posted Click Here to See the Profile for moiseszaragoza   Reply With QuoteEdit or Delete MessageReport This Post
hey Salha
ok to have a quiz what you have to do is:

  • press ctrl+shift+U
  • type:
    global quizCorect, quizIncorecr -- this sets the variables for your quiz

    on startMovie -- do 1 time when director loads
    quizCorect=0 -- set the variable to 0
    quizIncorecr=0-- set the variable to 0
    end
  • on your frame script you are going to write:

    on exitFrame me -- do all the time
    go to the frame -- stay were you are
    end
  • on the corect button you are going to write

    global quizCorect
    on mouuseDown me -- the mouse is down

    quizCorect=quizCorect+1 -- and 1 the your corect anser
    go to the frame +1 -- takes you to the next frame
    end

  • on the incorect button you are going to type

    global quizIncorecr
    on mouuseDown me -- the mouse is down

    quizCorect=quizIncorecr +1 -- and 1 the your incorect anser
    go to the frame +1 -- takes you to the next frame
    end

  • now to finish on frame 11 we are going to put a empty text field names "pass_faild"

  • on frame 11 frame you are going to write:

    global quizCorect, quizIncorecr
    on exitFrame me
    if quizCorect >=quizIncorecr then
    put "you pass" into field "pass_faild"
    else
    put "you did not pass" into field "pass_faild"
    end if
    go to the frame
    end


and that is how you do it

Posts: 1 | From: Ft lauderdale | Registered: 03-15-06
jeddy
new friend of ED
Describes the mood or content of the topic posted Click Here to See the Profile for jeddy   Reply With QuoteEdit or Delete MessageReport This Post
i also need a source code to make a quiz using java programming language. It consist of 8 questions.the user need to answer all questions.hen, a suitable color would appear based on the score the got.plis help me since i am new in this forum... i dun no how to ask question on this site..
Posts: 2 | Registered: 10-20-09

All times are
Post New TopicNote: Polls are considered new topics.  If you post a poll, it will be created as a new subject in this forum, not as a reply within this topic.Post A Reply
Print Page
Printable
Email a Friend
Email a Friend
Topic Replies: PopIt!
PopIt!
MyPop™
MyPop™
Contacts
Contacts
Administrative Links:
Close Topic
Close
Manage Topic
Manage
Delete Topic
Delete
Admin Options
PreviousGo to the next oldest topic in this forum Go to the next newest topic in this forumNext

Rate Topic:

Hop To:

All content copyright 2001-2008 friends of ED. No reuse without permission.

OpenTopic 3.1.0