# Building and array in flash from external text/php file

**URL:** <https://forum.kirupa.com/t/building-and-array-in-flash-from-external-text-php-file/323065>\
**Category:** flash\
**Created:** [June 15, 2011, 4:10pm UTC](https://forum.kirupa.com/t/building-and-array-in-flash-from-external-text-php-file/323065 "2011-06-15T16:10:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jatintalwar](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jatintalwar](https://forum.kirupa.com/u/jatintalwar)\
**Post date:** [June 15, 2011, 4:10pm UTC](https://forum.kirupa.com/t/building-and-array-in-flash-from-external-text-php-file/323065/1 "2011-06-15T16:10:10Z")

</div>

Hi all ,  
Any Help in regards will be highly appreciated .  
Question :  
How to load data from and external text/php file that has variables in the format as given below into Flash ? so that it can be used in the flash as a value for some funcions ?

Variable format in txt/php file :

```auto
&XYZ_0=MAIN HEADING&

&ABC=another Value, these are subheadings of above heading&
&DEF=another Value,this is also subheading&

```

In above example , How to get the total number of variables ? i.e the total count of images ? or variables ?  
In XYZ heading , how to get the “0” in flash ?

How to build an array of the above values ?

Please pardon the questions if they sound immature …
