# Pass a vaiable to an swf with LoadMovie

**URL:** <https://forum.kirupa.com/t/pass-a-vaiable-to-an-swf-with-loadmovie/129451>\
**Category:** Uncategorized\
**Created:** [November 23, 2004, 9:01pm UTC](https://forum.kirupa.com/t/pass-a-vaiable-to-an-swf-with-loadmovie/129451 "2004-11-23T21:01:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wayno](https://avatars.discourse-cdn.com/v4/letter/w/2bfe46/32.png) [@wayno](https://forum.kirupa.com/u/wayno)\
**Post date:** [November 23, 2004, 9:01pm UTC](https://forum.kirupa.com/t/pass-a-vaiable-to-an-swf-with-loadmovie/129451/1 "2004-11-23T21:01:34Z")

</div>

I have an SWF that loads an external movie into the main movie when it first starts as well as when a button is clicked. The only difference is when it gets loaded via the button I want it to start at frame 1 and when it gets loaded when the calling SWF loads it plays from let say frame 23. It is a small external swf of 50 frames at about 8-12k so it doesn’t take long at all to load.

I can do this with a variable and some if then logic in the called swf if I could get the variable to pass from the main movie.

Regards,  
Wayne Menard
