# "There is no method with the name"

**URL:** <https://forum.kirupa.com/t/there-is-no-method-with-the-name/149064>\
**Category:** flash\
**Created:** [May 25, 2005, 6:49pm UTC](https://forum.kirupa.com/t/there-is-no-method-with-the-name/149064 "2005-05-25T18:49:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![l2edsand](https://avatars.discourse-cdn.com/v4/letter/l/ecd19e/32.png) [@l2edsand](https://forum.kirupa.com/u/l2edsand)\
**Post date:** [May 25, 2005, 6:49pm UTC](https://forum.kirupa.com/t/there-is-no-method-with-the-name/149064/1 "2005-05-25T18:49:19Z")

</div>

Hey Guys…

I’m trying to be clever and I came up with a nice formula to solve my navigation problem… here is the peice of code that is meant to bring it all together:

```auto
 on (press) {
 _root.current+"_button".submenu.gotoAndPlay("out");
} 

```

but I keep getting this error:

```auto
 **Error** Symbol=home_nav, layer=invisible, frame=1:Line 16: There is no method with the name 'submenu'.
	 _root.current+"_button".submenu.gotoAndPlay("out");
Total ActionScript Errors: 1 Reported Errors: 1 

```

You any of you be so kind as to let me know how I can execute this line of code properly?

Thank you in advance!

l2eDsanD
