# Sending data to a var

**URL:** <https://forum.kirupa.com/t/sending-data-to-a-var/256732>\
**Category:** Uncategorized\
**Created:** [April 6, 2008, 5:46pm UTC](https://forum.kirupa.com/t/sending-data-to-a-var/256732 "2008-04-06T17:46:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vectar](https://avatars.discourse-cdn.com/v4/letter/v/b2d939/32.png) [@Vectar](https://forum.kirupa.com/u/Vectar)\
**Post date:** [April 6, 2008, 5:46pm UTC](https://forum.kirupa.com/t/sending-data-to-a-var/256732/1 "2008-04-06T17:46:42Z")

</div>

Hi i have a question.  
I made a flash file were people can fill in there name and then press enter and lateron there name will be visable in a other textfield with in the clip.  
Now i made the following script in frame 1:

```auto
enter_btn.onPress = function() {
    if (input != undefined && input != "" && input != "fill in please"){
        email = input;
        gotoAndPlay(2);
    } else {
        input = "fill in please";
    }
}

```

this works great, ‘input’ will bring the filled in name too the textfield with the var called ‘email’.

Now i moved the ‘email’ var within a different movieclip with a instance name of form.  
When i fill in the name in the beginning the ‘input’ var and ‘email’ var are not communication nomore. How can i make sure ‘input’ will give the data to the ‘email’ within the other movieclip ?

Can someone help me please ?
