Assigning varibles from one movieClip to another movieClip

if for instance i had two movieClips and in one depending on which frame the movie was on it assigns a varible to match, ie frame 1 —> varible=1

then how could i create a varible in another movieClip, or reference the first varible, which checks this varible and progreeses as required.

Sean