# Help with error message

**URL:** <https://forum.kirupa.com/t/help-with-error-message/203034>\
**Category:** flash\
**Created:** [October 6, 2006, 6:52pm UTC](https://forum.kirupa.com/t/help-with-error-message/203034 "2006-10-06T18:52:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dunkyb123](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@dunkyb123](https://forum.kirupa.com/u/dunkyb123)\
**Post date:** [October 6, 2006, 6:52pm UTC](https://forum.kirupa.com/t/help-with-error-message/203034/1 "2006-10-06T18:52:52Z")

</div>

Hello all

I am having a problem with an erroe code and im not sure what i have done wrong

\*\*Error code : \*\ ***Error** Symbol=MembersBackground\_mc, layer=Buttons1, frame=77:Line 1: Statement must appear within on handler  
Dunkyb123\_btn.onRelease = function () {

Total ActionScript Errors: 1 Reported Errors: 1

**Here is my code :** Dunkyb123\_btn.onRelease = function () {  
\_parent.ClanMember\_mc.gotoAndPlay(“dunkyb123”)  
}

I am trying to get a button in a movie clip called MembersBackground\_mc to play a label called dunkyb123 in movie clip called Clanmemer\_mc

Can anyone help on this

Thanks

Dunky

P.S. not sure if i have posted in the right forum
