# Passing variables from SWF to SWF

**URL:** https://forum.kirupa.com/t/passing-variables-from-swf-to-swf/161480
**Category:** flash
**Created:** [September 4, 2005, 11:59am UTC](https://forum.kirupa.com/t/passing-variables-from-swf-to-swf/161480 "2005-09-04T11:59:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BillyB](https://avatars.discourse-cdn.com/v4/letter/b/e19adc/32.png) [@BillyB](https://forum.kirupa.com/u/BillyB)
#### Post date: [September 4, 2005, 11:59am UTC](https://forum.kirupa.com/t/passing-variables-from-swf-to-swf/161480/1 "2005-09-04T11:59:00Z")

</div>

I am using FLASHVARS to pass a variable (Status) from ASP to Flash.

This piece of Flash (named Header), calls another SWF (named InOutPencil) using this command:

**\_root.currMovie = “InOutPencil.swf”;  
container.loadMovie(\_root.currMovie);**

My problem occurs when I try to use the Variable ‘Status’ in the **InOutPencil** SWF (below).

**if (Status == “Login”) {  
\_root.gotoAndPlay(1);  
}**

I need a way of passing the value of the variable ‘Status’ from \*\*Header \*\*to **InOutPencil**.

Can anybody help?
