# Menu button with a TypeError: Error #1009

**URL:** <https://forum.kirupa.com/t/menu-button-with-a-typeerror-error-1009/304184>\
**Category:** Uncategorized\
**Created:** [February 2, 2010, 10:22pm UTC](https://forum.kirupa.com/t/menu-button-with-a-typeerror-error-1009/304184 "2010-02-02T22:22:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brown22](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@brown22](https://forum.kirupa.com/u/brown22)\
**Post date:** [February 2, 2010, 10:22pm UTC](https://forum.kirupa.com/t/menu-button-with-a-typeerror-error-1009/304184/1 "2010-02-02T22:22:49Z")

</div>

Hi everybody,

I’m working on a Flash CS4 presentation which has a menu page as well as a navigation bar (with a timer) that appears for 5 seconds and then disappears until the user moves the mouse again.

The play and stop buttons are working fine but when I click on the menu button it takes me back to the menu page but then I get this Flash error message:

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

TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at ADAGIO\_3\_fla::MainTimeline/hidemenu()  
at flash.events::EventDispatcher/dispatchEventFunction()  
at flash.events::EventDispatcher/dispatchEvent()  
at flash.utils::Timer/tick()

I don’t know if it’s an issue with the timer or something else that’s missing.

I posted the fla here if anyone can check it out.

[http://rapidshare.com/files/345010518/ADAGIO\_3test.fla](http://rapidshare.com/files/345010518/ADAGIO_3test.fla)

For now only the 3rd menu button is active until I’m finished.

Thanks in advance
