# Parsing External Array Data when scripted insided external swf

**URL:** https://forum.kirupa.com/t/parsing-external-array-data-when-scripted-insided-external-swf/332649
**Category:** flash
**Created:** [September 8, 2014, 7:36am UTC](https://forum.kirupa.com/t/parsing-external-array-data-when-scripted-insided-external-swf/332649 "2014-09-08T07:36:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![3dron](https://avatars.discourse-cdn.com/v4/letter/3/2acd7d/32.png) [@3dron](https://forum.kirupa.com/u/3dron)
#### Post date: [September 8, 2014, 7:36am UTC](https://forum.kirupa.com/t/parsing-external-array-data-when-scripted-insided-external-swf/332649/1 "2014-09-08T07:36:41Z")

</div>

I am using this method for loading external data:  
[http://www.kirupa.com/developer/mx2004/external\_array.htm](http://www.kirupa.com/developer/mx2004/external_array.htm)

```auto

files = new Array();
lv = new LoadVars();
lv.onLoad = function() {
  fl = this.filelist;
  files = fl.split(",");
  c = files.length-1;
  for (i=0; i<c; i++) {
    trace(files*);
  }
};
lv.load("http://www.kirupa.com/developer/mx2004/pg/files.php");

```

It has always worked fine for me, when the script is within just a root movieclip.

But when I try to put the scripting with an externally loaded swf to a sub-layer, the problem begins.

I think it has something to do with the this.filelist line. I have tried looking for into why “this” is specified in the first place. Or am I on the wrong track as to why the external data does not parse.

Please help.

Ron
