netbeans + flex µÚÒ»¸öDEMO
Ê×ÏȽ¨Ò»¸önetbeansµÄjava webÏîÄ¿
È»ºó´ÓÍøÉϰÉblazeds.war ÏÂÔØÏÂÀ´ÓÃrar ½âѹ °Ñweb-inf Ìæ»»µôÔÚnetbeans\web ÏÂÃæµÄweb-infÖеÄÈ«²¿Îļþ
È»ºó ²¿ÊðÏÂ
ÔÚ´ò¿ªflex builder н¨Ò»¸öflex project дÉÏÃû×ÖºÍÏîĿ·¾¶
ÔÚApplication server type Ñ¡ÖÐj2ee
µã»÷ ÏÂÒ»²½
È»ºó Root folderÑ¡ÖÐnetbeans ½¨µÄÏîÄ¿ ϵÄweb·¾¶ ÀýÈçE:\ѧϰ\WebDemo\web {ÎÒµÄÏîÄ¿½»WebDemo}
Root Url дÉÏÄãµÄ·þÎñÆ÷url·¾¶ ÀýÈç:http://localhost:8080/WebDemo
Context root »¹ÊÇ/WebDemo
ÔÚoutput folder ÕâÀï×¢ÒâһϠ±ÈÈçÎÒµÄÏîÄ¿ÊÇE:\ѧϰ\WebDemo\ Õâ¸ö·¾¶Ï ÄÇôдE:\ѧϰ\WebDemo\web ÕâÑùµÄ»°flex builfer¾Í»á°ÑÉú³ÉµÄÎļþ¶¼·ÅÔÚwebÏÂÃæÁË
È»ºóÏÂÒ»²½ ok ÏÖÔÚÏîÄ¿ËãÊǴÍêÊÂÁË
ÏÖÔÚÐÞ¸ÄÅäÖÃÎļþnetbeans ÏÂÃæµÄweb\web-inf\flex\remoting-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService">
<adapters>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="helloWorld">
<properties>
<source>com.demo.java.HelloWorld</source>
</properties>
</destination>
</service>
<destination id="helloWorld">
<properties>
<source>cn.demo.java.HelloWorld</source>
</properties>
</destination>
ÕâЩÊÇÎÒÐÂ¼ÓµÄ helloWrold ÊÇ×Ô¼ºÐ½¨µÄÃû×Ö
com.demo.java.HelloWorld ÊÇÎÒн¨µÄÀà
ÀïÃæ´úÂëÈçÏÂ
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
p
Ïà¹ØÎĵµ£º
Ò»¡¢Flex BuilderµÄ°²×°
1¡¢ÏµÍ³ÒªÇó£º
Eclipse 3.3.x (32-bit)
Sun JRE 1.5.x or newer (32-bit)
Firefox 3.0 (32-bit)
£¨ÆäÖУ¬Eclipse°æ±¾ºÜÖØÒª£¬ÏÖÔÚÒѾµ½ÁË3.5.xÁË£¬ÎÒÊÔ¹ý·Ç3.3.xµÄ½ÏÐÂEclipse£¬µ«ÊÇ×ܲ»³É¹¦£¬¶ø3.3.xµÄ°²×°ÎļþºÜÄÑÕ ......
*****************************************************
1-0. °²×°ÅäÖù¤×÷»·¾³
*****************************************************
1.°²×°jdk1.6
ÉèÖû·¾³±äÁ¿:java_home,ÄÚÈÝΪjdk°²×°ºójdkËùÔÚĿ¼£¬²»ÊÇjreĿ¼
2.°²×°tomcal 6.0µ½d:\
3.°²×°myeclipse 6.5
4.°²×°firefox¼°²å¼þ
°²×°firefox
&nbs ......
Flex DataGrid×é¼þ
ʵ¼ÊÉÏ£¬DataGrid×é¼þÊÇÊôÓÚÁбí×é¼þµÄ£¬Ö®ËùÒÔµ¥¶ÀÄóöÀ´½²½â£¬Ö÷ÒªÊÇÒòΪ DataGrid×é¼þÓÐןÜÇ¿´óµÄ¹¦ÄÜ£¬Ò²ÓкܶàÀ©Õ¹µÄÓ¦ÓÃÊÇÔÚ¿ª·¢Öо³£Óõ½µÄ¡£DataGrid×é¼þÊǰ´ÕÕÐкÍÁеÄÐÎʽÏÔʾÊý¾ÝµÄ¡£Óм¸¸öÀàÊÇÖ»ÓÐ DataGrid×é¼þ²ÅÄÜʹÓõ쬰üÀ¨DataGridCellEditorÀà¡¢DataGridColumnÀàºÍHeaderRendere ......
<?xml version="1.0"?>
<!-- charts/PredefinedAxisStyles.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
//µ¼ÈëÏà¹Ø°ü
import mx.collections.ArrayCollection;
import mx.charts.*;
import mx.charts.ser ......
ÔÚ±¾ÏµÁÐÇ°Ãæ¼¸ÆªÎÄÕÂÖзֱð½éÉÜÁËͨ¹ýWebService¡¢HTTPService¡¢URLLoaderÒÔ¼°FielReferenceµÈ×é¼þ
»òÀàÀ´Íê³ÉFlexÓë.NET·þÎñ¶ËµÄͨÐŵÄÏà¹ØÖªÊ¶µã¡£Í¨¹ýÕâЩ·½Ê½À´Íê³ÉÓë·þÎñ¶ËµÄͨÐÅÊǷdz£·½±ãºÍ¼òµ¥µÄ£¬µ«ÓÐËûµÄȱµã¾ÍÊÇͨÐÅÊý¾ÝÁ¿½ÏС£¬ÈçÒª´«
Êä´óÁ¿µÄÊý¾Ý»òÊÇʵÏÖ²»Í¬¶ÔÏóµÄÐòÁл¯´«Ê䣬ËüÃÇÔòÂú×ã²»ÁËÎÒÃǵ ......