# Newbie - Passing variables between loaded .swf's

**URL:** https://forum.kirupa.com/t/newbie-passing-variables-between-loaded-swfs/150708
**Category:** flash
**Created:** [June 9, 2005, 6:00pm UTC](https://forum.kirupa.com/t/newbie-passing-variables-between-loaded-swfs/150708 "2005-06-09T18:00:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![CrazyWolf](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@CrazyWolf](https://forum.kirupa.com/u/CrazyWolf)
#### Post date: [June 9, 2005, 6:00pm UTC](https://forum.kirupa.com/t/newbie-passing-variables-between-loaded-swfs/150708/1 "2005-06-09T18:00:10Z")

</div>

I am building a flash website where each page is a .swf loaded into a base .swf.

I need to pass some data from one .swf into the next one. To do this I thought I’d create a variable on the main timeline then when a button is clicked I write the new value to the variable and then retrieve it from the next .swf when it loads

This is the code I am using to set the variable but it is not working:

```auto
 on (release) {
set (_root.test,"hello");
gotoAndPlay(11);
}

```
