A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: probably an easy answer????

  1. #1
    Senior Member
    Join Date
    Oct 2002
    Posts
    129

    probably an easy answer????

    Hi
    What I am doing is I have a menu that has a button over it and when you "release" the menu tweens into a larger menue. Same width, just height changes. I also am using a button on the larger menu to tween it back to original size when "released".

    My problem is that when my menu opens up I still have the first button registering. How do I get my first button to disappear and leave my second button( close menu button) registering, and then when menu closes have original (open menu) button registering again?

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    if you're using mx, so you can assign the button an instance name: myButton.

    when you click the button:
    Code:
    on(release){
     _visible=false;
    }
    then, when you want it to reappear, trigger this:
    Code:
    myButton._visible=true;
    if you aren't using mx, you may consider converting the button to a movieClip, and use this code.

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