# Passing Variables

**URL:** <https://forum.kirupa.com/t/passing-variables/12492>\
**Category:** flash\
**Created:** [January 31, 2003, 8:59pm UTC](https://forum.kirupa.com/t/passing-variables/12492 "2003-01-31T20:59:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Furious5](https://avatars.discourse-cdn.com/v4/letter/f/bb73d2/32.png) [@Furious5](https://forum.kirupa.com/u/Furious5)\
**Post date:** [January 31, 2003, 8:59pm UTC](https://forum.kirupa.com/t/passing-variables/12492/1 "2003-01-31T20:59:10Z")

</div>

Ok guys, I need your help

I am really struggling with this one, and I hope you can help me out.

I have a main movie, and use the following code to call an external movie:

on (release) {  
loadMovie ("[http://www.furious5.co.uk/ext/portfolio.swf](http://www.furious5.co.uk/ext/portfolio.swf), “\_root.container”);  
}

Fine I’ve no problems with this, however once I am in portfolio.swf I want to be able to call an ASP file when I click on a button

I.e if I click button 1, I get files records for ID 1 and if I click button 2, I get file record for ID 2. The button click happens in the main movie, any ideas have I can pass a variable in between seperate movies?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 31, 2003, 10:29pm UTC](https://forum.kirupa.com/t/passing-variables/12492/2 "2003-01-31T22:29:32Z")

</div>

once you load the swf into container, it is no longer “seperate” it then becomes what you know as ‘container’. so to reference that movie just refernce container. \_root.container IS portfolio.swf’s \_root

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 1, 2003, 10:43am UTC](https://forum.kirupa.com/t/passing-variables/12492/3 "2003-02-01T10:43:45Z")

</div>

Erm ok

So how would I go about coding passing the variable?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 1, 2003, 3:18pm UTC](https://forum.kirupa.com/t/passing-variables/12492/4 "2003-02-01T15:18:27Z")

</div>

\_root.container.variable
