# Passing variable from one fla to another

**URL:** <https://forum.kirupa.com/t/passing-variable-from-one-fla-to-another/167814>\
**Category:** Uncategorized\
**Created:** [November 1, 2005, 10:57am UTC](https://forum.kirupa.com/t/passing-variable-from-one-fla-to-another/167814 "2005-11-01T10:57:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onetwo](https://avatars.discourse-cdn.com/v4/letter/o/3d9bf3/32.png) [@onetwo](https://forum.kirupa.com/u/onetwo)\
**Post date:** [November 1, 2005, 10:57am UTC](https://forum.kirupa.com/t/passing-variable-from-one-fla-to-another/167814/1 "2005-11-01T10:57:39Z")

</div>

Hi,

I have integrated a swf into another swf.  
(Actually it is a menu that I have incorporated in my ‘main swf’.)  
When clicking a button in swf no.1 (the menu) I set:

\_global.new\_value=“1” ;  
\_root.Application.newfunction();

-and then in swf no.2:

function newfunction(){

trace(\_global.new\_value);

}

I get nothing, just: “undefined”.

How do I pass a variable ?  
Do I have to use asp or the like ?

best regards
