5 Replies Latest reply on Oct 1, 2012 7:51 PM by Ned Murphy

    "Replay Movie" Button is Not Working

    Comp. 792 Level 1

      Hi, Using Flash 5.0.


      Here are instructions I have followed instructions to create a replay button at the end of my flash movie. The button was working fine but now for some strange reason the button is not replaying the movie when it is being clicked. I am totally stumped as to why this is not working.


      Here’s what I did.


      1. I created a layer named "Replay Button”. Then on frame 900 of this layer I placed the “replay.png" button and I named the button instance "replay".


      2. I then created a layer above this layer and named it “actions”. On frame 900 of this actions layer I added this code:


      import flash.events.MouseEvent;



      replay.addEventListener(MouseEvent.CLICK, replay_clickHandler);


      function replay_clickHandler(event:MouseEvent):void {




      When I publish the movie and click the replay button nothing happens but I am getting this error below:


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

                at Holiday_Card_English_fla::MainTimeline/frame900()



      This is frustrating especially since I had it working. I would really appreciate it if someone could please set me straight on this. Thanks. I am using Flash 5 (Actionscript 3.0)