Multiple buttons on stage targeted by mouse cursor - not working properly
I am new to animate and want to know what I'm missing. I set up a custom mouse cursor to drag around the stage and grab/click multiple buttons on frame 1 where the button clicked disappears and jumps to a movie clip tween. I want the mouse cursor to grab one button after the other on the stage and keep the rest of the buttons active until they are grabbed/clicked by the mouse. If I have only one button on the stage, it works fine but the moment I add two or more buttons, all the buttons disappear after clicking the first button. Can anyone tell me what I am missing for this? Not sure if it would be a timeline layout change or dropping in code to tell the other buttons to stay put until they are "grabbed" by the mouse. Thanks in advance! cmdh
stop();
stage.addChild(ball1_mc);
ball1_mc.mouseEnabled = false;
ball1_mc.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor_5);
function fl_CustomMouseCursor_5(event:Event)
{
ball1_mc.x = stage.mouseX;
ball1_mc.y = stage.mouseY;
}
Mouse.show();
jelly1_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_6);
function fl_MouseClickHandler_6(event:MouseEvent):void
{
}
jelly1_btn.addEventListener(MouseEvent.CLICK, fl_ClickToHide_8);
function fl_ClickToHide_8(event:MouseEvent):void
{
jelly1_btn.visible = false;
}
jelly1_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_4);
function fl_ClickToGoToAndStopAtFrame_4(event:MouseEvent):void
{
gotoAndStop(2);
}
jellypink2_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_10);
function fl_MouseClickHandler_10(event:MouseEvent):void
{
}
jellypink2_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_11);
function fl_MouseClickHandler_11(event:MouseEvent):void
{
}
jellypink2_btn.addEventListener(MouseEvent.CLICK, fl_ClickToHide_9);
function fl_ClickToHide_9(event:MouseEvent):void
{
jellypink2_btn.visible = false;
}
stage.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_12);
function fl_MouseClickHandler_12(event:MouseEvent):void
{
}
jellypink2_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);
function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void
{
gotoAndStop(4);
}
