# Communication between caller and called swf

**URL:** <https://forum.kirupa.com/t/communication-between-caller-and-called-swf/27663>\
**Category:** flash\
**Created:** [August 5, 2003, 7:38am UTC](https://forum.kirupa.com/t/communication-between-caller-and-called-swf/27663 "2003-08-05T07:38:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wadoodahmed](https://avatars.discourse-cdn.com/v4/letter/w/b487fb/32.png) [@wadoodahmed](https://forum.kirupa.com/u/wadoodahmed)\
**Post date:** [August 5, 2003, 7:38am UTC](https://forum.kirupa.com/t/communication-between-caller-and-called-swf/27663/1 "2003-08-05T07:38:18Z")

</div>

Hi fellows I am still waiting  
Here what i am doing I load a swf using loadMovieNum now I want to do

1. Somehow pass the values to the called swf from the caller swf
2. Another thing I want is that I want to get the currentframes of caller swf  
that means I need to have two way communication between caller and called swf. i.e. caller should know what the called status is and vice versa

---

<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:** [August 5, 2003, 7:46am UTC](https://forum.kirupa.com/t/communication-between-caller-and-called-swf/27663/2 "2003-08-05T07:46:46Z")

</div>

Just put a var in \_root, and when the called movie is loaded inside the caller, they share \_root. So they can both read and write vars in \_root, which you can use to let them ‘communicate’.

---

<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:** [August 5, 2003, 4:39pm UTC](https://forum.kirupa.com/t/communication-between-caller-and-called-swf/27663/3 "2003-08-05T16:39:50Z")

</div>

Since you’re using loadMovieNum I assume you’re loading movies into different levels then want to communicate between levels. If this is the case you can use the \_levelX. It’s used in the same way \_root is but \_root, refers to the root timeline of the current level. \_levelX refers to the main timeline of the X level.

So if there’s a variable called timer on the main timeline of the movie in level 3, and you want to acces it from a movie in level 10 use \_level3.timer
