# Parsing a global value from one swf to another

**URL:** https://forum.kirupa.com/t/parsing-a-global-value-from-one-swf-to-another/242651
**Category:** flash
**Created:** [October 29, 2007, 3:11am UTC](https://forum.kirupa.com/t/parsing-a-global-value-from-one-swf-to-another/242651 "2007-10-29T03:11:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![armanique](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@armanique](https://forum.kirupa.com/u/armanique)
#### Post date: [October 29, 2007, 3:11am UTC](https://forum.kirupa.com/t/parsing-a-global-value-from-one-swf-to-another/242651/1 "2007-10-29T03:11:05Z")

</div>

Hi there,

I would appreciate if anyone could help me with this problem. I have 2 swf files (bottom\_menu.swf) and (side\_menu.swf). I do need to retrieve global values from both swf files so that i could play certain frames.

I tried this from someone who post on this forum but doesnt work:

[COLOR=“red”]from (side\_menu.swf):[/COLOR]  
on (press)  
{  
if(\_global.menu04current==1&&\_global.menu04!=0)  
{  
\_root.m4.gotoAndPlay(12);  
}  
if(\_global.menu06current==1&&\_global.menu06!=0)  
{  
\_root.m6.gotoAndPlay(18);  
}  
\_global.menu05current=1;  
[COLOR=“Red”]\_global.menu05=1;[/COLOR]  
this.gotoAndStop(2);   
\_root.m5.m5sub02.gotoAndStop(1);  
}

[COLOR=“red”]from (bottom\_menu.swf):[/COLOR]

var sas = new LoadVars();  
sas.load(“side\_menu.swf”);  
[COLOR=“red”]trace(sas.menu05);[/COLOR]

it returns me “undefined”.  
i tried trace(\_root.menu05) or even (\_root.menu05) bt still didnt work.  
Your help is much appreciated
