A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Button Actions

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    23

    Exclamation Button Actions

    Hi everyone,

    Really stooopid question from dumb dumb me. So i have a button and when u click it, 1 point is subtracted from your score, and it takes you to frame 2. So i said this:

    on(press){
    gotoAndPlay(2)
    _root.money-=1
    }

    This works okay, but it only plays frame 2 every other time you click it, but adds one to your score everytime you click it. What can i do ?

    please be clear in your answer, as im pretty dumb.

  2. #2
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006
    Location
    gotoAndPlay("Pune");
    Posts
    831
    Quote Originally Posted by maxhammad View Post
    This works okay, but it only plays frame 2 every other time you click it, but adds one to your score everytime you click it. What can i do ?
    please be clear in your answer, as im pretty dumb.
    Can you please explain in detail.... do you mean to say that when ever a button is clicked everytime teh frame 2 is played and also point is incremented instead of a decrement....

    If possible upload your FLA so that we can check!
    As ever,
    Vinayak Kadam

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