I’m trying to nest two buttons within a menu that pops up from the bottom of the screen. I believe my problem is known as a propagation issue due to flash only registering the parent movie clip but not a child movie clip (not allowing me to click on the text links that appear in the menu), but I’m not exactly sure how to solve it.
Everything is done using movie clips, allowing for the menu to pop back down once the mouse rolls off of the popped up tab.
I made a movie clip that houses both the animation for the pop up menu and it also holds the text links that appear .25 seconds into the animation to try and circumvent the problem but since I have gotoAndPlay running on both the parent movie (housing the text and the tab animation movie) and the tab animation movie I’m probably shooting myself in the foot right there.
Here’s the code I’m currently using in Scene1
this.hit_tab.onMouseMove = function() {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
//Open Menu
if (icetwo._currentframe == 1) {
icetwo.gotoAndPlay(1);
}
if (icetwo.ice._currentframe == 1) {
icetwo.ice.gotoAndPlay(1);
}
}
};
icetwo.onRollOut=function(){
icetwo.gotoAndPlay(6);
icetwo.ice.gotoAndPlay(6);
}
icetwo.text1.onRelease = function() {
//Button event
trace("text1");
};
I switched over from onRollOver to the hitTest code to try and solve the issue but it didn’t appear to help. I apologize for the probably messy code. If anyone is able to point me in the right direction it would be very much appreciated.
I’ve attached the file I’m working with, which I hope helps.