I want to change the value of a variable within a movieclip from the main timeline. How would I do this?

My variable is "visited" and I want to set it to "true" or "1" from the main timeline.

My variable is located on the timeline within this movie: _root.newButtonMC.button1

I thought this might work:
Code:
_root.newButtonMC.button1.visited = 1
Thanks for you help!