A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Changing Var # on button click

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    5

    Post Changing Var # on button click

    I was wondering how do i change the Var # on button click like say

    Var = 100 is the highest it can go then after the button press it goes down to like Var = 90

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Just decrease the variable in the function that handles the event when a button is clicked.
    What code to use depends on the ActionScript version you are using (AS1 / AS3) and the kind of button (a component or a button you have drawn yourself using the gui).

  3. #3
    Junior Member
    Join Date
    Aug 2011
    Posts
    5
    Problem is i am not sure how to do that i am still new to AS Scripting

  4. #4
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    What kind of button do you want to use ?

Tags for this Thread

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