# Passing vars from one .swf to another

**URL:** <https://forum.kirupa.com/t/passing-vars-from-one-swf-to-another/49816>\
**Category:** flash\
**Created:** [April 26, 2004, 9:22pm UTC](https://forum.kirupa.com/t/passing-vars-from-one-swf-to-another/49816 "2004-04-26T21:22:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amdorsey](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@amdorsey](https://forum.kirupa.com/u/amdorsey)\
**Post date:** [April 26, 2004, 9:22pm UTC](https://forum.kirupa.com/t/passing-vars-from-one-swf-to-another/49816/1 "2004-04-26T21:22:21Z")

</div>

I have a main .swf (a shell) that loads in external .swf files. I need to pass a variable from the main shell to an external .swf that is being loaded into a MC in the main timeline.

How do I do this?

loadVarsNum?  
loadVars?

myVar = someVar (in the main timeline)  
loadVarsNum (in the external file)
