Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Mar 2010
    Posts
    4
    Member #
    21325
    I have created a gallery in Flash and I keep getting this error in the output tab:

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at gallery_fla::MainTimeline/frame1()[gallery_fla.MainTimeline::frame1:2]
    at flash.display::MovieClip/gotoAndStop()
    at gallery_fla::MainTimeline/play1()[gallery_fla.MainTimeline::frame1:4]

    The below is my code, please tell me what I am doing wrong here!!
    Thank you,

    stop();
    btn1a.addEventListener(MouseEvent.CLICK,play1);
    function play1(event:MouseEvent):void{
    gotoAndStop ("image1a")
    }
    btn2a.addEventListener(MouseEvent.CLICK,play2);
    function play2(event:MouseEvent):void{
    gotoAndStop ("image2a")
    }
    btn3a.addEventListener(MouseEvent.CLICK,play3);
    function play3(event:MouseEvent):void{
    gotoAndStop ("image3a")
    }
    btn4a.addEventListener(MouseEvent.CLICK,play4);
    function play4(event:MouseEvent):void{
    gotoAndStop ("image4a")
    }
    btn5a.addEventListener(MouseEvent.CLICK,play5);
    function play5(event:MouseEvent):void{
    gotoAndStop ("image5a")
    }

    btn6a.addEventListener(MouseEvent.CLICK,play6);
    function play6(event:MouseEvent):void{
    gotoAndStop ("image6a")
    }
    btn7a.addEventListener(MouseEvent.CLICK,play7);
    function play7(event:MouseEvent):void{
    gotoAndStop ("image7a")
    }
    btn8a.addEventListener(MouseEvent.CLICK,play8);
    function play8(event:MouseEvent):void{
    gotoAndStop ("image8a")
    }
    btn9a.addEventListener(MouseEvent.CLICK,play9);
    function play9(event:MouseEvent):void{
    gotoAndStop ("image9a")
    }
    btn10a.addEventListener(MouseEvent.CLICK,play10);

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:25 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com