# How to Link main stage from inside of a movieclip?

**URL:** <https://forum.kirupa.com/t/how-to-link-main-stage-from-inside-of-a-movieclip/301424>\
**Category:** flash\
**Created:** [December 9, 2009, 5:13am UTC](https://forum.kirupa.com/t/how-to-link-main-stage-from-inside-of-a-movieclip/301424 "2009-12-09T05:13:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kostik](https://avatars.discourse-cdn.com/v4/letter/k/3be4f8/32.png) [@kostik](https://forum.kirupa.com/u/kostik)\
**Post date:** [December 9, 2009, 5:13am UTC](https://forum.kirupa.com/t/how-to-link-main-stage-from-inside-of-a-movieclip/301424/1 "2009-12-09T05:13:11Z")

</div>

I created “symbol1” movie clip. And I have dynamic text “myscore” on the main stage.

I have this code inside of “symbol1”.  
[COLOR=Blue]  
mybutton.addEventListener(MouseEvent.CLICK, b1);  
function b1(event:MouseEvent):void {  
myscore.text = “30”;  
}[/COLOR]

And it gives me this error.  
[COLOR=Red](1120: Access of undefined property myscore.)[/COLOR]

It works only when text and actionscript inside of the same symbol. I tried like this [COLOR=Blue]root.myscore.text = “30”;[/COLOR] but it still doesn’t work.
