5 Replies Latest reply on Jul 13, 2010 4:40 AM by Ned Murphy

    Button event not working correctly

    bradt8

      I'm creating a project with a number of different sections. I've created a index menu with invisible buttons on that takes you to the different sections. This works fine. In each section I wonted a means to get back to this index, so created a index button that is present throughout each section. I've put the event handler in the actions layer on the same frame that the button instance is on (frame 15).

       

       

      idex_bt.addEventListener(MouseEvent.CLICK, indexBack);

       

      function indexBack(e:MouseEvent):void{

      gotoAndStop(10);

      }

       

       

      The problem is that the button only works at this point if you move to any other section it does not. I can see no reason for this. The invisible buttons that jump you to each section work an all the frames they are present on, but the index button does not.

       

      I feel like I'm missing something very simple, any ideas?