# Pass variable to main .swf

**URL:** <https://forum.kirupa.com/t/pass-variable-to-main-swf/236735>\
**Category:** flash\
**Created:** [August 23, 2007, 9:29am UTC](https://forum.kirupa.com/t/pass-variable-to-main-swf/236735 "2007-08-23T09:29:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![exit](https://avatars.discourse-cdn.com/v4/letter/e/e19adc/32.png) [@exit](https://forum.kirupa.com/u/exit)\
**Post date:** [August 23, 2007, 9:29am UTC](https://forum.kirupa.com/t/pass-variable-to-main-swf/236735/1 "2007-08-23T09:29:36Z")

</div>

Hi

Does anyone know how to pass a “page” variable thorugh link to a main .swf file (index.swf)?

The file would normally load “home.swf” into it if accessed by [www.homepage.com](http://www.homepage.com).  
But I would like to able link to a different .swf determind by a varible like “page = contact.swf”

Hope I make sense… :sen:
