Skip to content

Instantly share code, notes, and snippets.

View bendalton's full-sized avatar

Ben Dalton bendalton

View GitHub Profile
private function doArr(e:ResultEvent):void{
var res:Object = e.result.serverInfo;
for each(var arr:Array in res.initialData){
var obj:Object = new Object();
for (var i:int; i < res.columnNames.length; i++){
obj[res.columnNames[i]] = res.initialData[i];
}
arrProvider.addItem(obj);
}
}
// Example usage
// var myResultCollection:ArrayCollection = parseResult(event.result.serverInfo);
public function parseResult(result:Object):ArrayCollection
{
var collection:ArrayCollection = new ArrayCollection();
for each(var resultArray:Array in result.initialData)
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /
# Protect application and system files from being viewed
RewriteRule ^(application|modules|system) - [F,L]