Passing variables from loaded swf

so I have menu.swf that uses loadClip to bring in data.swf

Depending on what button is pressed I want menu to read menuHeight = 4600; from data.swf

in data swf I declare the var as _root.menuHeight = 4600;

and in menu.swf I try to read it as normal. menuHeight.

Shouldnt this work since the _root. of data.swf is the _root. of menu.swf?

what happens if you read it as _root.menuHeight instead of just menuHeight?

nop, the var you created is in the _root.

if it traces undefined, it means the path to it isn’t correct. don’t forget you’re inside a menu, and the variable is in the root of your site…