# How to pass a variable to an externally loaded swf

**URL:** <https://forum.kirupa.com/t/how-to-pass-a-variable-to-an-externally-loaded-swf/279804>\
**Category:** flash\
**Created:** [January 19, 2009, 4:16pm UTC](https://forum.kirupa.com/t/how-to-pass-a-variable-to-an-externally-loaded-swf/279804 "2009-01-19T16:16:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![madfatter](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@madfatter](https://forum.kirupa.com/u/madfatter)\
**Post date:** [January 19, 2009, 4:16pm UTC](https://forum.kirupa.com/t/how-to-pass-a-variable-to-an-externally-loaded-swf/279804/1 "2009-01-19T16:16:12Z")

</div>

Hi,

I’m having trouble finding information of this topic that isn’t for AS2. If someone could point me in the right direction I would really appreciate it.

In my main swf I set a string variable containing the name of the xml file that needs to load into an externally loaded swf file. How do I then pass that information into the external swf once it’s loaded into the main swf?

Thanks for any help.
