-
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?
-
Registered User
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|