A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: button........have a question........i need your help.

  1. #1
    Member
    Join Date
    Sep 2004
    Posts
    50

    button........have a question........i need your help.

    hi, i have one question,
    how can i check if the buttons is preesed. and get the variable inside the button script, for example, there are two hints buttons and one submit button, how can i check if either or both hints buttons are preesed, and use varible which is in the hints button script to the submit buttons, such as, "a1=6"is in the first hints buttons, and "a2=8"in the second hints button script, after pressing either or both hints buttons, in the submit buttons , there are "sum=a1+a2".

    who can help me, urgent.

  2. #2
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    Have variables set up on the timeiline set to false. When a button is cliked, change it's refering variable to true. To find out if the buttons have been pressed, check to see if the variables are true.

    XFM

  3. #3
    Member
    Join Date
    Sep 2004
    Posts
    50
    can you show my some example.

  4. #4
    Member
    Join Date
    Sep 2004
    Posts
    50
    my requirement is there are 10 ten box, if you can answer all of them correct, after pressing the submit button, you can get 10 marks. if you don't know one answer, and press the small button, you will deduce one mark , if you don't know the second answer, and press another hint button, you will deduce two mark. the computer will take down how much marks you will be duduced. after pressing the submit button, you only can get 8 marks.flash

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