# Where did I go wrong? Basic code check

**URL:** <https://forum.kirupa.com/t/where-did-i-go-wrong-basic-code-check/269732>\
**Category:** Uncategorized\
**Created:** [August 31, 2008, 6:05pm UTC](https://forum.kirupa.com/t/where-did-i-go-wrong-basic-code-check/269732 "2008-08-31T18:05:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asparagus](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Asparagus](https://forum.kirupa.com/u/Asparagus)\
**Post date:** [August 31, 2008, 6:05pm UTC](https://forum.kirupa.com/t/where-did-i-go-wrong-basic-code-check/269732/1 "2008-08-31T18:05:35Z")

</div>

I’ve tried to build up a little menu/breadcrumb, which I thought would be as simple as could be. Buttons with InstanceNames and their corresponding FrameLabel. Home, Portfolio and Contact work, but not the others? I even put a basic trace to see if the onRelease was working, and it wasn’t, even though the code for each button is the same??

Thanks in advance to anyone who can show me what I’ve done wrong.

```auto

stop();
btn_home.onRelease = function() { gotoAndStop('home'); }
btn_portfolio.onRelease = function() { gotoAndStop('portfolio'); }
btn_film.onRelease = function() { gotoAndStop('film'); }
btn_posters.onRelease = function() { gotoAndStop('posters'); }
btn_artwork.onRelease = function() { gotoAndStop('artwork'); }
btn_visualskecthes.onRelease = function() { gotoAndStop('visualskecthes'); }
btn_titlesequences.onRelease = function() { gotoAndStop('titlesequences'); }
btn_salesmaterials.onRelease = function() { gotoAndStop('salesmaterials'); }
btn_music.onRelease = function() { gotoAndStop('music'); }
btn_other.onRelease = function() { gotoAndStop('other'); }
btn_corporateid.onRelease = function() { gotoAndStop('corporateid'); }
btn_publications.onRelease = function() { gotoAndStop('publications'); }
btn_theatre.onRelease = function() { gotoAndStop('theatre'); }
btn_typefaces.onRelease = function() { gotoAndStop('typefaces'); }
btn_contact.onRelease = function() { gotoAndStop('contact'); }

```
