# Problems w/ passing variable from one swf to another swf... help, pls

**URL:** <https://forum.kirupa.com/t/problems-w-passing-variable-from-one-swf-to-another-swf-help-pls/235543>\
**Category:** Uncategorized\
**Created:** [August 12, 2007, 4:06pm UTC](https://forum.kirupa.com/t/problems-w-passing-variable-from-one-swf-to-another-swf-help-pls/235543 "2007-08-12T16:06:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)\
**Post date:** [August 12, 2007, 4:06pm UTC](https://forum.kirupa.com/t/problems-w-passing-variable-from-one-swf-to-another-swf-help-pls/235543/1 "2007-08-12T16:06:26Z")

</div>

Hi there.  
I have a quite simple problem, i guess.  
For some reason, i guess memory problem (mine, not the computer memory)  
i forgot how to pass variables from one swf to another swf.  
Here is the code for the m\_2.swf

```auto

_global.m_var = "10";

```

Here is the code for the m\_1.swf

```auto

mc_load_m.loadMovie("m_2.swf");
m_lvar.text = mc_load_m.m_var;

```

In the m\_1.swf i have a mc called mc\_load\_m where i am trying to load the movie (m\_2.swf) and a text area, dinamic, where i am trying to display the value \_global.m\_var from the m\_2.swf  
But it just shows UNDEFINED in the m\_1.swf.  
What is wrong with the code?  
Anyone?  
Thanks.  
Leo.
