Loading stuff from a txt file to be used as Numbers

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)