When you have the array filled you can use the array Download action to save it to a file:
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile01.PNG" border="0">
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile01a.PNG" border="0">
When you run that action it will pop up the save file dialog or just save the file directly to your download folder depending on how you have your browser set up:
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile02.PNG" border="0">
The file looks like this. It's the array in JSON format (I call it 'level.json' and have notepad set to open .json files. You can call it 'level.txt' or anything really.):
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile02a.PNG" border="0">
You could also create this file by hand or generate it with code.
Now you can add that file to your project (When you want to change the level just open this file from within C2 and edit it instead of deleting and importing it again.):
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile03.PNG" border="0">
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile04.PNG" border="0">
Now you need to add the AJAX plugin to the project and request the file:
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile05.PNG" border="0">
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile06.PNG" border="0">
When the request has completed, the value AJAX.LastData will hold the contents of the file. Use the array 'Load' action to load it into the array.
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile06a.PNG" border="0">
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile07.PNG" border="0">
<img src="https://dl.dropboxusercontent.com/u/8367729/construct/pics/arrayToProjectFile08.PNG" border="0">
Example: levelEditorExample.capx (r139)