# Changing variable in a different swf?

**URL:** <https://forum.kirupa.com/t/changing-variable-in-a-different-swf/80856>\
**Category:** Uncategorized\
**Created:** [February 25, 2005, 11:03am UTC](https://forum.kirupa.com/t/changing-variable-in-a-different-swf/80856 "2005-02-25T11:03:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matix](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@matix](https://forum.kirupa.com/u/matix)\
**Post date:** [February 25, 2005, 11:03am UTC](https://forum.kirupa.com/t/changing-variable-in-a-different-swf/80856/1 "2005-02-25T11:03:43Z")

</div>

I want to change a variable with a button from my main movie in a swf loaded in level 2. The following code obviously does it for the same swf but how do I target the swf in level2??:

on (release) {  
\_root.test = 10;  
}

Cheers!!
