# How to pass variable to main swf to his child

**URL:** <https://forum.kirupa.com/t/how-to-pass-variable-to-main-swf-to-his-child/315732>\
**Category:** flash\
**Created:** [November 3, 2010, 4:13am UTC](https://forum.kirupa.com/t/how-to-pass-variable-to-main-swf-to-his-child/315732 "2010-11-03T04:13:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xelaxam](https://avatars.discourse-cdn.com/v4/letter/x/5e9695/32.png) [@xelaxam](https://forum.kirupa.com/u/xelaxam)\
**Post date:** [November 3, 2010, 4:13am UTC](https://forum.kirupa.com/t/how-to-pass-variable-to-main-swf-to-his-child/315732/1 "2010-11-03T04:13:27Z")

</div>

I want to do something simple.

I’ll have a xml with thumnail and XMLlink.

When we click on a thumbnail (which each thumbnail has his own XMLlink variable) in the mains swf: it load a new swf.

This new swf take the variable from the thumbnail and load the xml.

So instead of haveing lot of swf I have only 2…

How do I do that

thx in advance
