# Loading stuff from a txt file to be used as Numbers

**URL:** <https://forum.kirupa.com/t/loading-stuff-from-a-txt-file-to-be-used-as-numbers/291417>\
**Category:** flash\
**Created:** [June 29, 2009, 3:31pm UTC](https://forum.kirupa.com/t/loading-stuff-from-a-txt-file-to-be-used-as-numbers/291417 "2009-06-29T15:31:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![melacroso](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@melacroso](https://forum.kirupa.com/u/melacroso)\
**Post date:** [June 29, 2009, 3:31pm UTC](https://forum.kirupa.com/t/loading-stuff-from-a-txt-file-to-be-used-as-numbers/291417/1 "2009-06-29T15:31:18Z")

</div>

hiya,

Just wondering. Is it possible to load data from a external txt file in AS2? in particular using the data loaded as a number variable to use for say a Maximum number in a timer counter?

for example, say the text file has the variable

&numOfPhotos=3

how can you make it so flash AS2 can read the variable and convert the number (which I guess is a string) into a Number variable, ready for the swf to use in number related activities?

:bu: (it’s for Flash 8 btw)
