# Passing variable between two AS2 files

**URL:** <https://forum.kirupa.com/t/passing-variable-between-two-as2-files/318910>\
**Category:** flash\
**Created:** [February 3, 2011, 10:22am UTC](https://forum.kirupa.com/t/passing-variable-between-two-as2-files/318910 "2011-02-03T10:22:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zoltar26](https://avatars.discourse-cdn.com/v4/letter/z/58f4c7/32.png) [@Zoltar26](https://forum.kirupa.com/u/Zoltar26)\
**Post date:** [February 3, 2011, 10:22am UTC](https://forum.kirupa.com/t/passing-variable-between-two-as2-files/318910/1 "2011-02-03T10:22:32Z")

</div>

Hi

I have a text field eWeight.txt in “a.as” and I need to pass the user input from  
this text field to antoher file “b.as”.  
I’m using Actionscript 2.  
How to do it ?  
Thanks in advance.
