# Sending variables from a txt file

**URL:** <https://forum.kirupa.com/t/sending-variables-from-a-txt-file/31200>\
**Category:** Uncategorized\
**Created:** [September 19, 2003, 12:24pm UTC](https://forum.kirupa.com/t/sending-variables-from-a-txt-file/31200 "2003-09-19T12:24:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominus](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@dominus](https://forum.kirupa.com/u/dominus)\
**Post date:** [September 19, 2003, 12:24pm UTC](https://forum.kirupa.com/t/sending-variables-from-a-txt-file/31200/1 "2003-09-19T12:24:25Z")

</div>

can i send some variables that are within a text file into the actionscript; i mean, in 1.txt there will be a[1]=30; can i use a function to read this variable and then use it in the actionscript like x=a[1]+2 and x would be 32? please help… it is very urgent and i can’t find a way to deal with this… an example would really help… thank you!!
