5 Replies Latest reply: Apr 22, 2012 7:12 PM by kglad RSS

    error 1009 code cant see my buttons


      TypeError: Error #1009: Cannot access a property or method of a null object reference.

                at ife3m_fla::MainTimeline/frame41()[ife3m_fla.MainTimeline::frame41:9]


      Code of frame 41




      line 9 boton2_btn.addEventListener(MouseEvent.MOUSE_DOWN, playSplitDuct);



                     function playSplitDuct(event:MouseEvent):void{




      On the time line i have alone on its layer i have the boton2_btn placed where I need it. It first appears on frame 15 with brightness to the max then i do a classic tween to end up with the button as i want it on frame 19. I have several buttons with that same arrangment none of them can be recognized by the code.


      How can i make sure the buttons are instantiated correctly?

      Could the tween have anything to do with problem?

      Or is ther a problem if i have mc inside my button?


      Thanks f