6 Replies Latest reply on Jun 17, 2010 5:00 AM by chrcha26

    I've been trying to solve this error for 2 1/2 days now. Please help.


      I have simplified this for the forum. Before I had 20 images, and now only one. I want to click on the thumb (located on frame one) and go to frame 2 showing a larger image. Over the larger image is the close button wich will take you back to frame 1. This is what I do --> Test movie> click on thumb (piano_btn)> go to larger image> click close(close_btn)> error displays and goes back to frame 1> cannot click on thumb anymore.


      Frame 1 script



      piano_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickPiano);


      function clickPiano(eventObject:MouseEvent)




      Frame 2 script

      close_btn.addEventListener(MouseEvent.MOUSE_DOWN, clickClose);


      function clickClose(eventObject:MouseEvent)




      The Error

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at Untitled_fla::MainTimeline/frame1()[Untitled_fla.MainTimeline::frame1:3]
      at flash.display::MovieClip/prevFrame()
      at Untitled_fla::MainTimeline/clickClose()[Untitled_fla.MainTimeline::frame2:4]



      error screen shot.jpg