Skip to main content
December 9, 2013
Question

Help - Flash 1009 Error

  • December 9, 2013
  • 1 reply
  • 724 views

Hi,

I'm using CS5.5. My script is prompting a 1009 error:

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

          at _111513Superv4_fla::MainTimeline/kentuckyOut()[_111513Superv4_fla.MainTimeline::frame1:7704]

I see that the error should be in frame 1 of the main timeline on line 7704, but I don't havea line 7704 in that frame. Here is the script for that frame:

stop();

          readmore_state_txt.mouseEnabled=false;

          readmore_state_txt.visible=true;

          state_link.visible=true;

 

 

          state_link.addEventListener(MouseEvent.CLICK,linkstateStart);

          function linkstateStart(e:MouseEvent){

                    var nationalReport:URLRequest = new URLRequest("http://www.testsite.org/assets/UnitedStates2014.pdf");

                    navigateToURL(nationalReport,"_blank");

          }

 

          state_link.addEventListener(MouseEvent.MOUSE_OVER, linkstateStartOver);

          function linkstateStartOver (event:MouseEvent):void{

          var myInputTextFormat = new TextFormat();

                     myInputTextFormat.underline=true;

                      readmore_state_txt.setTextFormat(myInputTextFormat);

          }

          state_link.addEventListener(MouseEvent.MOUSE_OUT, linkstateStartOut);

          function linkstateStartOut (event:MouseEvent):void{

          var myInputTextFormat = new TextFormat();

                     myInputTextFormat.underline=false;

                      readmore_state_txt.setTextFormat(myInputTextFormat);

          }

 

          testsite_btn.addEventListener(MouseEvent.CLICK, testsiteStartClick);

          singledistrict_btn.addEventListener(MouseEvent.CLICK, singledistrictStartClick);

          function singledistrictStartClick (event:MouseEvent):void{

                    readmore_state_txt.visible=true;

                    state_link.visible=true;

          }

          function testsiteStartClick (event:MouseEvent):void{

                    readmore_state_txt.visible=false;

                    state_link.visible=false;

          }

Help would be appreciated!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 9, 2013

is there a kenuckyOut() in your fla?

if not, are you using a custom component?

December 9, 2013

There is not a kentuckyOut() in the .fla that I know of. I didn't create the original file, am working from someone else's work and modifying as I go.

If custom components were made/used, I don't know where to find them..

kglad
Community Expert
Community Expert
December 9, 2013

there errors not in the code you posted.

you should check with the original author or you'll need someone to download and check your file for you.