# Split() deleting slashes?

**URL:** <https://forum.kirupa.com/t/split-deleting-slashes/181735>\
**Category:** Uncategorized\
**Created:** [March 12, 2006, 3:33pm UTC](https://forum.kirupa.com/t/split-deleting-slashes/181735 "2006-03-12T15:33:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joene](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@joene](https://forum.kirupa.com/u/joene)\
**Post date:** [March 12, 2006, 3:33pm UTC](https://forum.kirupa.com/t/split-deleting-slashes/181735/1 "2006-03-12T15:33:13Z")

</div>

Hi,

## I’m working on a Flash-StartPage-replacement-extension using ActionScript & JSFL, and the only part of the page that’s bothering me is the “recent files” section. When I receive the recent files from my script (an array, passed as a string) I have to split it, so I have the seperate fileURI’s in an array. Quite simple, you say? Not really. The fileURI’s are separated with a comma, so I split it using **myArray = myString.split(",")**. Everything ok so far. Now, when I trace the items in the array that was returned, it seems that flash (or whatever) has deleted the slashes from the fileURI’s. When the string contained “D:\folder\subfolder\file.fla”, the array now contains things like “D:[]foldersubfolderfile.fla”, which is quite strange, let alone annoying.

The second time I tested it, I used no JSFL, just plain ActionScript. I copied a few fileURI’s into an ordinary string, and split it. This time, the slashes are ok, but Flash deleted the first letter of every folder and file.

Any ideas? Maybe a bug in Flash?
