# Functoins (F 5)

**URL:** https://forum.kirupa.com/t/functoins-f-5/10233
**Category:** Uncategorized
**Created:** [December 27, 2002, 3:20pm UTC](https://forum.kirupa.com/t/functoins-f-5/10233 "2002-12-27T15:20:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jazzman121](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jazzman121/32/127_2.png) [@jazzman121](https://forum.kirupa.com/u/jazzman121)
#### Post date: [December 27, 2002, 3:20pm UTC](https://forum.kirupa.com/t/functoins-f-5/10233/1 "2002-12-27T15:20:09Z")

</div>

hey i wanted to know how to execute a funtion automatically ( without havin the user to click… like say on load of a movie clip… or entering a frame…wats the exact code to execute a funtion? please help

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 27, 2002, 5:26pm UTC](https://forum.kirupa.com/t/functoins-f-5/10233/2 "2002-12-27T17:26:19Z")

</div>

functionName()

but you have to know when you want to execute it. Everything in Flash happens according to events. You seem familiar with button events and user clicking, but you can also execute code in a frame event - which is when flash reaches a certian frame, or when a movieclip first appears on the screen in a load event… you just need to know when and how often before you can know where and how.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 27, 2002, 5:28pm UTC](https://forum.kirupa.com/t/functoins-f-5/10233/3 "2002-12-27T17:28:52Z")

</div>

i tried that it dint work… but its ok… i figured it out thou… thanks… I have another question thou…

how do i get a value of a variable… var which is inside a funtion… how do i get it into another movie clip?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [December 28, 2002, 1:04pm UTC](https://forum.kirupa.com/t/functoins-f-5/10233/4 "2002-12-28T13:04:42Z")

</div>

you prolly have to use something like loadFunctionName() or somethin like that  
just a guess im no actionscripter
