2 Replies Latest reply on Oct 25, 2007 12:53 PM by Noah_B

    Undefined?

    Noah_B
      Sorry to bug everyone again, but I have exhausted my resources and am totally stumped. It's a button and function problem.

      In the first frame I stated the function:
      function mask2(event:MouseEvent):void {
      MovieClip(root).mask2.gotoAndPlay(20);
      }

      Later down the line I made a button and placed this code in the keyframe:
      image2.addEventListener(MouseEvent.CLICK, mask2);

      The only problem is that every time I click the button I get this wonderfully confusing error.
      TypeError: Error #1010: A term is undefined and has no properties.
      at images_fla::buttons_5/mask2()

      Are you ready for the real kicker? I have another button/function combo with the EXACT same code (well, mask1 and image1), and it works perfectly.

      If anyone has a clue what is happening here I would greatly appreciate your insight.