# Trying to transfer an Array

**URL:** <https://forum.kirupa.com/t/trying-to-transfer-an-array/190443>\
**Category:** flash\
**Created:** [June 11, 2006, 10:38pm UTC](https://forum.kirupa.com/t/trying-to-transfer-an-array/190443 "2006-06-11T22:38:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stoodder](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stoodder/32/2475_2.png) [@stoodder](https://forum.kirupa.com/u/stoodder)\
**Post date:** [June 11, 2006, 10:38pm UTC](https://forum.kirupa.com/t/trying-to-transfer-an-array/190443/1 "2006-06-11T22:38:30Z")

</div>

hey currently in flash im opening up a file then i have a ufnction that turns part of that file into an arra, anyways with this fucntion that creates the array i want to transmit all th data thatsin the array to an outside source sorta liek this:

myArrayVariable = my ArrayFunction();

so here my ArrayFunction would compiel the array and then hand it off to myArrayVariable.

if anyone is intereted this is the cod ei have so far:

```php
 
 
function loadMap(mapDir:String) {
 var mapDataArr:Array = new Array();
 IFVmapData = new LoadVars();
 IFVmapData.load("Maps/"+mapDir);
 IFVmapData.onLoad = function(success)
 {
  if(success)
  {
   mapDataArr["base"] = IFVmapData.baseMapData.split("[~]");
   for(var IFVa = 0 ; IFVa < mapDataArr["base"].length ; ++IFVa)
   {
    mapDataArr["base"][IFVa] = mapDataArr["base"][IFVa].split("[]");
    for(var IFVb = 0 ; IFVb < mapDataArr["base"][IFVa].length ; ++IFVb)
    {
     mapDataArr["base"][IFVa][IFVb] = mapDataArr["base"][IFVa][IFVb].split(",");
     //trace(IFVa+":"+IFVb+"[::]"+mapDataArr["base"][IFVa][IFVb][0])
    }
   }
   return mapDataArr["base"];
  }
  else
  {
   trace("could not Load The Map");
  }
 }
 return mapDataArr;
}
var mapData:Array = new Array();
mapData = loadMap("map001.php");
trace(mapData[0]);

```

[SIZE=1](the code is kinda messy cuz ive been messing aroudn with it so much)[/SIZE]  
all that happens when i trace mapData[0] is it says “undefined”

any help woul dbe appreciated.
