FlexÍÏק Á½¸öListÖ®¼äÍÏק
FlexÍÏק-Á½¸öListÖ®¼äÍÏק
¹Ø¼ü×Ö: flexÍÏק, list
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="creationHandler();">
<mx:Script>
<![CDATA[
import mx.events.DragEvent;
import mx.collections.ArrayCollection;
[Bindable]
public var isEnabled:Boolean = true;
private static const DIS_LABEL:String = "²»ÄÜÍÏק";
private static const EN_LABEL:String = "¿ÉÒÔÍÏק";
private function creationHandler():void {
list1.dataProvider = new ArrayCollection(['Spider Monkey', 'Orangutan', 'Gorilla']);
list2.dataProvider = new ArrayCollection(['Lion', 'Cheetah', 'Puma'])
}
private function clickHandler():void {
enableBtn.label = ( enableBtn.label == DIS_LABEL ) ? EN_LABEL : DIS_LABEL;
isEnabled = !isEnabled;
}
private function dragEnterHandler( evt:DragEvent ):void {
evt.target.dropEnabled = ( evt.target != evt.dragInitiator );
}
]]>
</mx:Script>
<mx:VBox width="100%" height="100%">
<mx:Button id="enableBtn" label="{EN_LABEL}" click="clickHandler();"/>
<mx:HBox width="100%" height="100%">
<mx:List id="list1" width="200" height="200" dragEnabled="{isEnabled}" dragMoveEnabled="true" dragEnter="dragEnterHandler(event);"/>
<mx:List id="list2" width="200" height="200" dragEnabled="{isEnabled}" dragMoveEnabled="true" dragEnter="dragEnterHandler(event);"/>
</mx:HBox>
</mx:VBox>
</mx:WindowedApplication>
Ïà¹ØÎĵµ£º
»·¾³£ºeclipse 3.5 + tomcat 6.0 + flex builder 3.0 + blazeds-turnkey-3.2.0.3978.zip£¨adobeÍøÕ¾ÉÏÏÂÔØ£©
(ÒòΪ²»ÄܷŽØͼËùÒÔÖ»ÄÜÐðÊöÁË)
1£¬Ð½¨Ò»¸öjava webÏîÄ¿ ÀýÃûΪ :testjava;
2,Ôڴ˹¤³ÌÖÐдһ¸ö¼òµ¥µÄÀà:
package cn.com;
& ......
amf3,adobe´´Á¢µÄÊý¾Ý¸ñʽÓÉÓÚʹÓöþ½øÖÆ,ûÓÐÁËxmlµÈÈßÓàµÄ×Ö·ûÊý¾ÝÁ¿»áÉٺܶà!¶øÇҺܶà²âÊÔ±¨¸æ¾ù²â³öamf´«µÝЧ¹ûºÜ¸ß.
Õâ´ÎÊÇʹÓÃFlexµÄSocketÀàÓëjavaµÄ·þÎñ¶Ë½øÐÐͨÐÅ,
²½ÖèÊÇ:
¿Í»§¶ËÓÃsocketÀàÁ¬½Ójava·þÎñÆ÷,
ʹÓòéѯ×Ö·û´®½øÐÐÇëÇó,
java½«Êý¾Ý·âװΪhashmap,×îºó½«hashmapÓÃamfoutputstreamÊä³öÖÁflexµÄ¿Í» ......
AdobeÔÚ¿ª·¢Flex×îÓÐÀûµÄ¹¤¾ß¾ÍÊÇFlex Builder£¬È»¶ø£¬¹¤ÓûÉÆÆäÊ£¬±ØÏÈÀûÆä"¼ü"£¬¿ìËÙ¼ü¶ÔÒ»°ã¿ª·¢ÕßÀ´Ëµ¶¼·Ç³£ÓÐÓ㬷ǵ«Èç´Ë£¬ºÜ¶à¿ìËÙ¼üÓë×éºÏ¼üÊÇ»áÓëÆäËûÈíÌå»òϵͳ¶¼ÓÐÀ×֮ͬ´¦£¬¾Ù¸öÀý×ÓÀ´Ëµ£¬Ctrl + C¾ÍÊǸ´ÖÆ£¬Ctrl + V¾ÍÊÇÌùÉÏ£¬¿´¿´Ðí¶à×÷ҵϵͳÓë±à¼ÈíÌåÊDz»ÊǶ¼Ò»ÑùÄØ£¿ÈôÄãÓÐ×¢Òâµ½¾Í»á²»ÄÑ·¢ÏÖ£¬ÆäʵFlex ......
ÕâÊÇÒ»¸ö¼òµ¥µÄ¹¤×÷Á÷Éè¼ÆÆ÷Ä£ÐÍ£¬»¹²»ÄÜÓÃÓÚʵ¼ÊÏîÄ¿£¬Ö»ÊǸöÈËÐËȤ×öһЩ¼¼ÊõѧϰÓë³¢ÊÔ¡£Éè¼ÆÆ÷Ö§³ÖһЩ¹¤×÷Á÷»ù±¾×é¼þµÄ»æÖÆ£¬Èç½Úµã¡¢Â·ÓÉÏß·µÈµÈ¡£
Õû¸öÉè¼ÆÆ÷ÊÇ´¿Flex¼¼ÊõʵÏÖ£¬Î´ÓëÊý¾Ý¿â½Ó¿Ú¡£²ÉÓÃFlex Builder 3.0¿ª·¢£¬Í¨¹ýʵ¼ù¶ÔFlexÒÔϼ¼ÊõÓÐÁ˸ü½øÒ» ......
2009-02-18
ËõÂÔÏÔʾ
FlexÍÏק-CanvasÈÝÆ÷ÀïÍ϶¯Box
ÎÄÕ·ÖÀà:WebÇ°¶Ë¹Ø¼ü×Ö: flex, flexÍÏק, canvas, box
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.core. ......