¹ØÓÚFlexÈ¡µÃµ±Ç°ÏµÍ³×ÜÄÚ´æ
СµÜ¸Õ½Ó´¥flex²»¾Ã£¬Óöµ½Ð©ÎÊÌ⣬ÇëÎÊϸ÷룬Flex»òÕßAIR¿ÉÒÔÈ¡µÃµ±Ç°ÏµÍ³µÄ×ÜÄÚ´æÂ𣿻¹ÓвÙ×÷ϵͳÒÑÊ£ÓàµÄÄڴ棬ÈçºÎÈ¡µÃ£¿
ллLS£¬totalMemoryÊÇÖ¸dobe® Flash® Player »ò Adobe® AIR™Õ¼ÓõÄÄÚ´æ°É£¬ÎÒÏëµÃµ½²Ù×÷ϵͳµÄ×ÜÄÚ´æ¡£
ºÃÏñ¿ÉÒÔͨ¹ýµ÷ÓÃdosÃüÁîÀ´µÃµ½µÄ£¬ÕýÔÚÊÔ
ÕÒµ½ÁË£¬µ÷ÓÃdosÃüÁî¿ÉÒÔ»ñµÃ£¬Ê¹ÓÃflash.desktop.NativeProcessÀàºÍNativeProcessStartupInfoÀàÀ´ÊµÏÖ£¬ÈçÏ£º
public function startCmdGetOSProcess():void {
var arg:Vector.<String> = new Vector.<String>;
arg.push("OS");
arg.push("get");
arg.push("FreePhysicalMemory,");
arg.push("FreeVirtualMemory,");
arg.push("Name,");
arg.push("ServicePackMajorVersion,");
arg.push("TotalVirtualMemorySize,");
arg.push("TotalVisibleMemorySize");
arg.push("/format:list");
var realPath:String = "C:\\Windows\\System32\\wbem\\wmic.exe" ;
startCommonProcess(arg,realPath,onCmdStandardOutputOSData);
}
public function startCommonProcess(arg:Vector.<String>,realPath:String,method:Function):void{
npInfo = new NativeProcessStartupInfo();
npInfo.executable = new File(realPath);
npInfo.arguments = arg;
nativeProcess.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, method
Ïà¹ØÎÊ´ð£º
ÎÒÊǸöjava ²ËÄñ µ«ÊǶÔjava ºÜ¸ÐÐËȤ Ïë×ö¸öÀàËÆͨѶqq·½ÃæµÄ¼´Ê±Í¨Ñ¶Èí¼þ µ«ÊÇȱ·¦Õâ·½ÃæµÄ×ÊÁÏ £¡£¡Ï£ÍûÄÄλ¸ßÊÖÄܸøÎÒµã×ÊÁÏ ×îºÃÊÇÈ«Ò»µãµÄ ÈÃÎÒ¼ÌÐø×ßÏÂÈ¥ £¡£¡ ÖÔÐĸÐл £¡£¡£¡ ÓÊÏä rz_string@126.com ......
¼±ÕУºÕÐƸְλ£ºJAVA/flex¿ª·¢¹¤³Ìʦ(¶®²ÆÎñ×îÓÅ£©
1.´óר»òÒÔÉÏѧÀú£¬1ÄêÒÔÉϼÆËã»ú±à³Ì»òÏà¹Ø¹¤×÷¾Ñé¡£
2.¾«Í¨JAVAÓïÑÔSERVLET¿ª·¢£¬ÓÐJSP/J2EEÏîÄ¿¿ª·¢¾Ñé¡£
......
×Ô¶¨Òå×é¼þÔÚcomponentĿ¼Ï¡£×Ô¶¨Òå×é¼þ´úÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="verti ......
ÎÒÊäÈë999 999 999 999 99.9999ÕâÑùµÄÊýΪʲô»á±ä³É100 000 000 000 000£¬»¹ÓÐ
100 000 000 000 000>999 999 999 999 99.9999µÃµ½µÄ½á¹ûÊÇfalse,µ«
100 000 000 000 000.1>999 999 999 999 99.9999ȴΪtrue ......
1.È«ÈÕÖÆÕý¹æ±¾¿Æ¼ÆËã»úÏà¹Øרҵ±ÏÒµ£¬Á½ÄêÒÔÉÏÏà¹Ø¹¤×÷¾Ñ飻
2.ÊìÁ·Ê¹ÓÃAction Script 3.0ÔÚFlexBuilder»·¾³Ï¿ª·¢£¬ÊìÁ·Ê¹ÓÃFlexÓëAIRµÄ±ê×¼×é¼þ£»
3.Á˽âJavaScript¡¢CSS¡¢Ajax £»
4.¾ßÓÐÁ¼ºÃµÄ¾´Òµ¾«ÉñºÍÍŶ ......