Movieclip read variable from main timeline?

I declared a variable & it’s value in the main timeline. Then I created a movieclip and have some actionscript inside that movieclip. Is it possible to read the varialbe’s value within the movieclip?

Let’s say I have this variable in root timeline
[COLOR=“DarkRed”]var myVar:Number = 100;[/COLOR]
and I want to read myVar’s value within a movieclip like following
[COLOR=“DarkRed”]trace(root.myVar);[/COLOR]

Any help?