Class Variable Scope

I’m somewhat new to writing classes so forgive me if I get some wrong terminology.

I have a MC with a class attached to it, and I have other MCs within that MC. I need those MCs to be able to access variables within the main MC class. Here is a quick’n’dirty:


class Foo extends MovieClip{[INDENT]private var h:Number;
private var subMC:MovieClip;
[/INDENT][INDENT]function Foo(_h:Number){[INDENT]h = _h;
[/INDENT][/INDENT][INDENT]}

subMC.onEnterFrame = function(){[INDENT]trace(h);
[/INDENT]}
[/INDENT]}

How can I access variables in the Foo class from another MCs scope? I have tried using static var but aren’t they constant regardless of instance?