# Functions

**URL:** <https://forum.kirupa.com/t/functions/231674>\
**Category:** Uncategorized\
**Created:** [July 6, 2007, 3:32pm UTC](https://forum.kirupa.com/t/functions/231674 "2007-07-06T15:32:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![craig\_clayton](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@craig\_clayton](https://forum.kirupa.com/u/craig_clayton)\
**Post date:** [July 6, 2007, 3:32pm UTC](https://forum.kirupa.com/t/functions/231674/1 "2007-07-06T15:32:00Z")

</div>

Ok I have created a function below and my problem is Im trying to make it go to a certain point on the movieclip thats called. I am not to familar with creating functions for frame labels so any guidance would be great. clipboard\_mc.gotoAndStop(“frameLabel”); is where I want to add the code but when I code the button below it doesnt go to the frame that I want it to.

MY CODE:

function btnRelease(myBtns:MovieClip, frameLabel:String):Void {  
myBtns.onRelease = function() {  
clipboardIn();  
noBtns();  
}  
clipboard\_mc.gotoAndStop(frameLabel);  
}

BUTTON CODE:

btnRelease(hand, “hand”);
