Skip to main content
Participant
January 24, 2011
Answered

TypeError: Error #1009:

  • January 24, 2011
  • 1 reply
  • 428 views

I am trying to make a eccomerce header with rotating images that are linked in flash CS4. My problem is i get this error #1009 and im not sure why. btn1 works fine but btn2 says its nul and i check spelling and its correct for my instnace for button. it is the same for btn3-5 with the error.

btn1.addEventListener(MouseEvent.MOUSE_UP, goLayersSite);


function goLayersSite(event:MouseEvent):void {
     var slideShow1:URLRequest = new URLRequest ("http://www.URL.com");
     navigateToURL(slideShow1);
}


btn2.addEventListener(MouseEvent.MOUSE_UP, goLayersSite01);

function goLayersSite01(event:MouseEvent):void {
     var slideShow2:URLRequest = new URLRequest ("http://www.url.com");
     navigateToURL(slideShow2);
}


btn3.addEventListener(MouseEvent.MOUSE_UP, goLayersSite02);

function goLayersSite02(event:MouseEvent):void {
     var slideShow3:URLRequest = new URLRequest ("http://www.url.com");
     navigateToURL(slideShow3);
}


btn4.addEventListener(MouseEvent.MOUSE_UP, goLayersSite03);

function goLayersSite03(event:MouseEvent):void {
     var slideShow4:URLRequest = new URLRequest ("http://www.url.com");
     navigateToURL(slideShow4);
}

btn5.addEventListener(MouseEvent.MOUSE_UP, goLayersSite04);

function goLayersSite04(event:MouseEvent):void {
     var slideShow5:URLRequest = new URLRequest ("http://www.url.com");
     navigateToURL(slideShow5);
}

This topic has been closed for replies.
Correct answer Ned Murphy

The buttons need to exist in the same frame as where you execute that code.  Is that not the vase?

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
January 24, 2011

The buttons need to exist in the same frame as where you execute that code.  Is that not the vase?