Çë½Ì£¬°ï°ï棬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>
·¹ý ¿´Ï£¬¶¥!£¡£¡¸ö£¡£¡
Ïà¹ØÎÊ´ð£º
ÎÒÊǸöjava ²ËÄñ µ«ÊǶÔjava ºÜ¸ÐÐËȤ Ïë×ö¸öÀàËÆͨѶqq·½ÃæµÄ¼´Ê±Í¨Ñ¶Èí¼þ µ«ÊÇȱ·¦Õâ·½ÃæµÄ×ÊÁÏ £¡£¡Ï£ÍûÄÄλ¸ßÊÖÄܸøÎÒµã×ÊÁÏ ×îºÃÊÇÈ«Ò»µãµÄ ÈÃÎÒ¼ÌÐø×ßÏÂÈ¥ £¡£¡ ÖÔÐĸÐл £¡£¡£¡ ÓÊÏä rz_string@126.com ......
×Ô¶¨Òå×é¼þÔÚcomponentĿ¼Ï¡£×Ô¶¨Òå×é¼þ´úÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="verti ......
×î½üÔÚ¿´¹ØÓÚflexºÍjavaÏà¹ØµÄ¶«Î÷£¬ÔÚÍøÉÏÏÂÁËЩDEMO·ÅÔÚEclipseÏÂÔËÐÐÒ²¿ÉÒÔ£¬¿É¾ÍÊÇ×Ô¼ºÐ´¸ö¼òµ¥µÄÀý×ÓÒ»²¿ÊðTomcat¾Í±¨´í£¬ºÜÊÇÓôÃÆ¡£¡£¡£
ÄÇλ´óÏÀ×ö¹ýÕâ·½ÃæµÄ¿ª·¢£¬°Ñ¿ª·¢²½Öè·ÖÏíÏ°ɣ¡£¡£¡
ÍøÉÏÏÂÔصĴó² ......
×î½ü¸Õѧflex£¬ÒªÇó±àдһ¸öΧÆå³ÌÐò£¬Ä¿Ç°ÕýÄÑ°¡¡£ÓÐË×ö¹ý°¡£¬¸÷¸öÎĵµ¿´Ï°¡¡£Ð»Ð»À²£¡
End_rbody_64451718//-->
¸Ã»Ø¸´ÓÚ2010-04-06 14:03:36±»°æÖ÷ɾ³ý
¶ÔÎÒÓÐÓÃ[0]
¶ª¸ö°åש[0]
ÒýÓÃ ......
Õý³£Çé¿öÏ£¬Ê¹ÓÃdatagird°ó¶¨Ò»¸öarraycolltetionµÄʱºò£¬ÐèÒª½øÐÐÈçÏ´úÂë
XML code:
<mx:DataGrid x="10" y="20" dataProvider="{employees}">
<mx:colum ......