Driving me nutz! PAssing vriables from menu.swf to viewer.swf

sorry about the horrible spelling on the title. sheesh!

So basically, I have a navigation.swf file with a large menu. I’ve set up a product_viewer.swf so that once a couple variables are defined, the viewer displays the correct images/descriptions.

I want a button in the navigation to set 4 variables and pass them to the loaded product viewer

This is what I THOUGHT would work:


//FROM THE NAVIGATION.SWF
on (release) {
    _global.cat1:String = "hom";
    _global.cat2:String = "fur";
    _global.cat3:String = "cab";
    _global.cat4:String = "page1";
    _level0.loadContent("product_viewer.swf");
}

So… I was thinking I could set up each button so that they set these 4 global variables. If the variables are global, then shouldn’t the product_viewer.swf read them? Do I need to add in any special code to the first frame of product_viewer?

You should be able to call cat1 from anywhere in the movie since it’s global. =)
ie;


home.text=cat1

The text field should display “hom” .