A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: button only once active...???

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    7

    Lightbulb

    can someone tell me what to make a button active only once

    baali

  2. #2
    Try this. Create two instances of the button. One's behavior will be that of an actual button, and the second will be assigned as a graphic. When the user clicks the real button, have the movie direct them to an identical looking frame where the button is replaced by it's look-a-like graphic. The user won't be able to activate it again.

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Posts
    667
    Much simpler way would be to add this code to the button:

    on (release) {
    if (!inactive) {

    //your code goes here;

    inactive = true;
    }
    }

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