# AS2 passing variables from external swfs to main and vice versa

**URL:** <https://forum.kirupa.com/t/as2-passing-variables-from-external-swfs-to-main-and-vice-versa/303024>\
**Category:** flash\
**Created:** [January 12, 2010, 5:41pm UTC](https://forum.kirupa.com/t/as2-passing-variables-from-external-swfs-to-main-and-vice-versa/303024 "2010-01-12T17:41:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeremiahGoogly](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@JeremiahGoogly](https://forum.kirupa.com/u/JeremiahGoogly)\
**Post date:** [January 12, 2010, 5:41pm UTC](https://forum.kirupa.com/t/as2-passing-variables-from-external-swfs-to-main-and-vice-versa/303024/1 "2010-01-12T17:41:06Z")

</div>

Good Day! 🙂

I wonder if it is possible to pass values from external .swf files to the main projector (.exe) file.?  
I would also like to know how a button of an external swf file can control the playhead of the main .exe file.

for example,

I have this map of tasks. and each map have these houses which when clicked will take you to a certain task(external swf). and when accomplished should have a button to take you back to the map(main swf), and also the button to send a value to the main swf that the task is accomplished.

I hope you can help me…

thank you very much in advance :)…
