# Function scope with different levels

**URL:** https://forum.kirupa.com/t/function-scope-with-different-levels/148368
**Category:** Uncategorized
**Created:** [May 19, 2005, 8:40am UTC](https://forum.kirupa.com/t/function-scope-with-different-levels/148368 "2005-05-19T08:40:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DannyBoyInMarse](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@DannyBoyInMarse](https://forum.kirupa.com/u/DannyBoyInMarse)
#### Post date: [May 19, 2005, 8:40am UTC](https://forum.kirupa.com/t/function-scope-with-different-levels/148368/1 "2005-05-19T08:40:42Z")

</div>

Hi all,  
I’m having a problem calling a function from a different level.  
I have my main movie ‘Mymovie.swf’ in which I add a level(with loadMovie) with this code:  
loadMovie(“MyNewMovie.swf”, “\_level1”);  
On a button in MyNewMovie.swf, I try to call a function in ‘Mymovie.swf’, by doing:  
on(release){  
\_root.MyFunction();  
// or even: \_level0.MyFunction();  
}  
I’ve tried several ways to do it and looked in the forums. Can anybody help me please,  
thanks  
Danny  
Long Live The Web
