# Call a function inside a movieclip

**URL:** https://forum.kirupa.com/t/call-a-function-inside-a-movieclip/89629
**Category:** flash
**Created:** [May 10, 2005, 7:21am UTC](https://forum.kirupa.com/t/call-a-function-inside-a-movieclip/89629 "2005-05-10T07:21:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Henxon](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@Henxon](https://forum.kirupa.com/u/Henxon)
#### Post date: [May 10, 2005, 7:21am UTC](https://forum.kirupa.com/t/call-a-function-inside-a-movieclip/89629/1 "2005-05-10T07:21:31Z")

</div>

Hello. How can I call a function when I want inside a movie clip? Can’t find any one that suits among onClipEvent() since they go off automaticly from some defined actions… I need to call the function at certain times!

This code is inside a movieclip and I want to be able to change _temp_ when I want to!

```auto
onClipEvent(load){
var temp;
}

```

How can I accomplish that?

regards

/henrik
