# Understanding Global Functions

**URL:** https://forum.kirupa.com/t/understanding-global-functions/169172
**Category:** flash
**Created:** [November 14, 2005, 5:43am UTC](https://forum.kirupa.com/t/understanding-global-functions/169172 "2005-11-14T05:43:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![misterpatrick](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@misterpatrick](https://forum.kirupa.com/u/misterpatrick)
#### Post date: [November 14, 2005, 5:43am UTC](https://forum.kirupa.com/t/understanding-global-functions/169172/1 "2005-11-14T05:43:52Z")

</div>

Hey all,

I’m having a little trouble. I am trying to figure out how global functions work and how to write them. Basically calling a function that exisits in the main swf from the loaded swf.

Is the function declared global (and how) or is the call to that function global.

I know it’s best practice to keep everything on the main timeline, but for designing this I need to keep the two seperate for a bit. So where is the \_global called? I’ve searched through the forums but can’t seem to find th solution.

I am using Flash 8 for both swf’s.

Thanks!
