# Standard error 1009/1010

**URL:** <https://forum.kirupa.com/t/standard-error-1009-1010/318536>\
**Category:** Uncategorized\
**Created:** [January 23, 2011, 10:56am UTC](https://forum.kirupa.com/t/standard-error-1009-1010/318536 "2011-01-23T10:56:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwalijkje](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kwalijkje](https://forum.kirupa.com/u/kwalijkje)\
**Post date:** [January 23, 2011, 10:56am UTC](https://forum.kirupa.com/t/standard-error-1009-1010/318536/1 "2011-01-23T10:56:54Z")

</div>

Good morning/day/night (wherever you are 🙂

I’ve got a problem with a website I’m designing on Flash. After trawling the internet, I can see it’s quite a common problem. But my knowledge of AS3 is pretty limited.

I have two scenes, enterPage and mainPage. enterPage has one button with the script:

```auto
stop();

enterBtn.addEventListener(MouseEvent.CLICK, enterB);
function enterB(event:MouseEvent):void{
	gotoAndPlay(1,"mainPage");
}

```

mainPage has the script:

```auto
stop();

var myMenuArray=[home,dinnerAtHome,activities,sights,sampleItinery,contact];
for each(var btn in myMenuArray){
	myMenuArray[btn].addEventListener(MouseEvent.CLICK,onBtnClick);
}
function onBtnClick(event:MouseEvent):void{
	pages.gotoAndStop(event.target.name);
	
}

```

The script on mainPage works perfectly when on it’s own, but when enterPage is run first it comes up with this stack trace:

> TypeError: Error #1010: A term is undefined and has no properties.  
> at blahdiblah\_fla::MainTimeline/frame2()  
> at flash.display::MovieClip/gotoAndPlay()  
> at blahdiblah\_fla::MainTimeline/enterB()

and none of the buttons on mainPage work. I’ve tried playing around with it in small ways, and sometimes the error is 1009, but same problems.

I could restructure the entire website, but that would take quite a long time, considering there is a lot of information in the ‘pages’ movieclip on mainPage.

Does anyone know what I’m doing wrong? Without having to restructure the whole stage and timeline.
