A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] Enable/Disable buttons

  1. #1
    Flash 8 Powered! boost_r6's Avatar
    Join Date
    Nov 2005
    Posts
    221

    [F8] Enable/Disable buttons

    I'm looking to do an alpha visibility transition between movie clips that both have buttons on them... how would I go about enabling/disabling buttons based on whether they are visible or not?
    Always searching for a better way...

  2. #2
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    I don't have the code for the visiabilty parameter for the if statement but thats how it would be done.

    [cod]

    if(btn == visiable){
    btn.enabled = true;
    }
    [/code]

  3. #3
    Flash 8 Powered! boost_r6's Avatar
    Join Date
    Nov 2005
    Posts
    221
    Would the MC and button both need separate visible statements?
    Always searching for a better way...

  4. #4
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    I don't think so just make the button invisible then even if the mc is displayed the button won't show if its invisible......heck try it both ways.

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