# Problem calling a Function

**URL:** <https://forum.kirupa.com/t/problem-calling-a-function/72658>\
**Category:** Uncategorized\
**Created:** [December 8, 2004, 2:19am UTC](https://forum.kirupa.com/t/problem-calling-a-function/72658 "2004-12-08T02:19:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@Tyler](https://forum.kirupa.com/u/Tyler)\
**Post date:** [December 8, 2004, 2:19am UTC](https://forum.kirupa.com/t/problem-calling-a-function/72658/1 "2004-12-08T02:19:18Z")

</div>

I created a few function and am trying to call them whit the on(release) handler of a button inside a movieClip.

Here is the function code on the main scene, first frame:

[SIZE=1][COLOR=Blue]  
function resetPlatform(){  
trace(“resetPlatform has been called”);  
alreadyUsed=[];  
usedLetters="";  
UserInput.type=“input”;  
myMovieClip1.gotoAndStop(1);  
}  
[/Size][/Color]

I placed myMovieClip1 from the library using attachMovie, and inside this movie clip i placed a button with the following code attached to it:  
[SIZE=1][COLOR=Blue]  
on(release){  
resetPlatform();  
}  
[/SIZE][/COLOR]  
The fucntion is never called properly i think its a level problem and the way am calling it that is wrong.

I need help guys!

Thanks
