分类:
2009-09-19 10:45:33
verticalAlign="middle"
backgroundColor="white">
import mx.utils.ObjectUtil;
private function callJavaScript():void {
var keys:Array =
"appCodeName,appName,appVersion,cookieEnabled,language,platform,systemLanguage,userAgent,userLanguage".split(",");
var arr:Array = ExternalInterface.call("getNavigatorObject", keys);
dataGrid.dataProvider = arr;
}
]]>
width="100%"
height="100%" >
/src/externalInterface.js
// JavaScript
function getNavigatorObject(keys) {
var arr = [];
var i;
var len = keys.length;
var key;
var value;
for (i=0; i
value = navigator[key];
arr.push({key:key, value:value});
}
return arr;
}
/html-template/index.template.html