A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Enabled Buttons

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    45

    Enabled Buttons

    Hi!
    I know the "enabled" (true and false) option for buttons in flash 6... but there are any script to enabled or disabled a movie clip which contains a lot of buttons?
    thanks!
    maga

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    No, enabled, can be used on a movie clip, but only a movie clip that is used as a button. The only way to disable all the buttons inside a movie clip is to use _visible = 0; on it.

  3. #3
    AFX == P. Forsberg
    Join Date
    Nov 2001
    Posts
    439

    yes

    nest the button action (function) in an if statement....

    if (x=="enabled"){
    do some cool stuff;
    x = "disabled";
    }

    you will need to set x="enabled" somewhere to reactivate it... but there you go.

    This technique also allows mulitple states to be assoctiated with the clip, more than just enabled or not.

    Good luck,
    1M.

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