Çë½Ì£¬°ï°ï棬flexÊý¾Ý¿âÈ¡Öµºó£¬È«¾Ö±äÁ¿µÄÎÊÌâ
´úÂëÈçÏ£º
ÎÒÉú³ÉÒ»ÏÂÈ«¾ÖµÄINTÀàÐÍgbsumµÄ±äÁ¿£¬°ÑgbsumµÈÓÚÊý¾Ý¿â·µ»ØµÄÖµ£¬Õâ¸öʱºògbsumÒѾֵ·¢ÉúÁ˱仯£¬ÎªÊ²Ã´ÔÚcc·½·¨ÖÐgbsumÓÖ±äΪ³õʼֵ0ÁË£¬ÔõôÔÚcc·½·¨Öе÷ÓÃgbsumÈ¡µ½·¢Éú±ä»¯µÄÖµÄØ?Íò·Ö¸Ðл£¡£¡£¡£¡£¡
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="aa();cc()" width="500" height="500">
<mx:RemoteObject id="sel1" destination="EPSClientlaImpl" result="bb(event)" fault="onFault()"/>
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
[Bindable]
public var gbsum:int=0;
//µ÷ÓÃJAVAÀàµÄ·½·¨
public function aa():void{
sel1.getEpszts();
}
//Êý¾Ý¿âµÄ½á¹û¼¯Ê¼þ
public function bb(event:ResultEvent):void{
gbsum = int(event.result);
Alert.show("bb= "+gbsum.toString());
}
public function onFault():void{
}
public function cc():void{
Alert.show("cc= "+gbsum.toString());
}
]]>
</mx:Script>
</mx:Application>
·¹ý ¿´Ï£¬¶¥!£¡£¡¸ö£¡£¡
Ïà¹ØÎÊ´ð£º
×î½üÔÚ¿´¹ØÓÚflexºÍjavaÏà¹ØµÄ¶«Î÷£¬ÔÚÍøÉÏÏÂÁËЩDEMO·ÅÔÚEclipseÏÂÔËÐÐÒ²¿ÉÒÔ£¬¿É¾ÍÊÇ×Ô¼ºÐ´¸ö¼òµ¥µÄÀý×ÓÒ»²¿ÊðTomcat¾Í±¨´í£¬ºÜÊÇÓôÃÆ¡£¡£¡£
ÄÇλ´óÏÀ×ö¹ýÕâ·½ÃæµÄ¿ª·¢£¬°Ñ¿ª·¢²½Öè·ÖÏíÏ°ɣ¡£¡£¡
ÍøÉÏÏÂÔصĴó² ......
×î½ü¸Õѧflex£¬ÒªÇó±àдһ¸öΧÆå³ÌÐò£¬Ä¿Ç°ÕýÄÑ°¡¡£ÓÐË×ö¹ý°¡£¬¸÷¸öÎĵµ¿´Ï°¡¡£Ð»Ð»À²£¡
End_rbody_64451718//-->
¸Ã»Ø¸´ÓÚ2010-04-06 14:03:36±»°æÖ÷ɾ³ý
¶ÔÎÒÓÐÓÃ[0]
¶ª¸ö°åש[0]
ÒýÓÃ ......
´ó¼ÒÌÖÂÛÌÖÂÛflexµÄ·´Éäµ½µ×³ÆµÄÉÏ·´ÉäÂð£¿
˵ÊÇÓз´É䣬µ«ÊÇ·´ÉäµÄÓеã¶àÓàÁË¡£¡£
APIÉÏÓÐÒ»¸öº¯ÊýµÄ˵Ã÷ÊÇÕâÑùдµÄ
describeType () º¯Êý
Éú³ÉÃèÊö ActionScript ¶ÔÏó£¨ÃüÃûΪ·½·¨µÄ²ÎÊý£©µÄ ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
......
ÎÒÏëÓÃflexµ÷ÓÃservletÖеÄdoget·½·¨£¬Çë´ó¼Ò°ïæ¿´Ò»ÏÂÄÄÀïÓÐÎÊÌâ~¶àл
servlet¶Ë£º
package com.abc.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletExcept ......