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

**URL:** <https://forum.kirupa.com/t/passing-values-in-a-varable-in-a-movieclip-to-objects-on-main-frame/311597>\
**Category:** Uncategorized\
**Created:** [July 12, 2010, 12:34am UTC](https://forum.kirupa.com/t/passing-values-in-a-varable-in-a-movieclip-to-objects-on-main-frame/311597 "2010-07-12T00:34:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fgp123](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@fgp123](https://forum.kirupa.com/u/fgp123)\
**Post date:** [July 12, 2010, 12:34am UTC](https://forum.kirupa.com/t/passing-values-in-a-varable-in-a-movieclip-to-objects-on-main-frame/311597/1 "2010-07-12T00:34:34Z")

</div>

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;
