# Easiest way to external population of arrays?

**URL:** <https://forum.kirupa.com/t/easiest-way-to-external-population-of-arrays/206140>\
**Category:** flash\
**Created:** [November 5, 2006, 8:52pm UTC](https://forum.kirupa.com/t/easiest-way-to-external-population-of-arrays/206140 "2006-11-05T20:52:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [November 5, 2006, 8:52pm UTC](https://forum.kirupa.com/t/easiest-way-to-external-population-of-arrays/206140/1 "2006-11-05T20:52:46Z")

</div>

I have this code inside of my fla. What I want to try to do is to have an external file to populate this. The mm\_array and all of the sm#\_arrays are used in the rest of the code to build the navigation. Whats the best solution? XML?

```auto

// MAINMENU
var mm_array:Array = ["MAIN 1", "MAIN 2", "MAIN 3", "MAIN 4"];

// SUBMENU
// Sub 1
var sm1_array:Array = ["Text 1", "Text 2"];
// Sub 2
var sm2_array:Array = ["Text 1", "Text 2"];
// Sub 3
var sm3_array:Array = ["Text 1", "Text 2"];
// Sub 4
var sm4_array:Array = ["Text 1", "Text 2"];

var submenu_array:Array = [];

```
