Passing values in a varable in a movieclip to objects on main frame

Title says it all really, im trying this every which way. creating global variables etc.

I have a movie clip with a text area (lets call it txttest)

there is text inside it which i want to send from this movieclip on the main frame to a text area (lets call that one txttestB) on the main frame. Whatever i try i get undefined in the text area on the main frame.

I have tried this…

_global.selectedcompany = txttest.text;
_root.txttestB.text = _global.selectedcompany;