# Timeline animation, TypeError: Error #1009

**URL:** <https://forum.kirupa.com/t/timeline-animation-typeerror-error-1009/320267>\
**Category:** flash\
**Created:** [March 18, 2011, 4:50pm UTC](https://forum.kirupa.com/t/timeline-animation-typeerror-error-1009/320267 "2011-03-18T16:50:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seasonss](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@seasonss](https://forum.kirupa.com/u/seasonss)\
**Post date:** [March 18, 2011, 4:50pm UTC](https://forum.kirupa.com/t/timeline-animation-typeerror-error-1009/320267/1 "2011-03-18T16:50:05Z")

</div>

I am doing a simple timeline set here, each frame has a movieclip and inside the movieclip is a button called next\_btn, which will take it to the next frame.

Each frame is labelled.

```auto

stop();

/* ------------------ Section A ------------------------------- */

start_btn.addEventListener(MouseEvent.CLICK, goT1);

function goT1(event:MouseEvent){
	gotoAndStop("t1");	
}

t1_mc.next_btn.addEventListener(MouseEvent.CLICK, goT2);

function goT2(event:MouseEvent){
	gotoAndStop("t2");	
}

t2_mc.next_btn.addEventListener(MouseEvent.CLICK, goT3);

function goT3(event:MouseEvent){
	gotoAndStop("t3");	
}

t3_mc.next_btn.addEventListener(MouseEvent.CLICK, goT4);

function goT4(event:MouseEvent){
	gotoAndStop("t4");	
}

t4_mc.next_btn.addEventListener(MouseEvent.CLICK, goT5);

function goT5(event:MouseEvent){
	gotoAndStop("t5");	
}

```

This code is in the main timeline on the first frame.

Why do I still get this OUTPUT error?

TypeError: Error #1009: Cannot access a property or method of a null object reference. at beginner\_fla::MainTimeline/frame1()

Thank you
