Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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>


Ïà¹ØÎĵµ£º

ÔÚFLex BuilderÍⲿ±àÒëFLEXÏîÄ¿

Windows
     ÉèÖû·Path¾³±äÁ¿,¼ÓÈëflexµÄSDkµÄbinĿ¼·¾¶£¬È磺f:\flex_sdk_3\bin¡£ÉèÖúÃÁËÖ®ºó£¬´ò¿ªÃüÁîÐУ¬¶¨Î»µ½ÏîĿĿ¼£¬ÊäÈëÈçÏÂÃüÁmxmlc ÏîÄ¿Ãû.mxml¡£Èç¹û´Ëʱ³öÏÖÁË“Error:could not find JVM”£¬ÕâʱÐèÒªÊÖ¶¯Ö¸¶¨JRE·¾¶£¬´ò¿ªFlex3 SDKµÄbinĿ¼£¬ÓÃÎı¾±à¼­Æ÷´ò¿ªjvm. ......

¼òµ¥µÄj2ee+flex Á½¸ö¶ÀÁ¢¹¤³ÌµÄͨÐÅÀý×Ó

»·¾³£º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;
 
    & ......

Flex Blazeds ÖеÄRemoteClass Óë¶àModule¼äµÄÎÊÌâ

ÔÚÏîÄ¿ÖÐÓõ½Á˶à¸ömoduleʱ£¬ÔÚµÚÒ»´Î¼ÓÔØModuleÊÇ¿ÉÒԵġ£ÔÚµÚ¶þ´Î¼ÓÔØmoduleʱ»á³öÏÖת»»Ê§°Ü
½â¾ö·½·¨£º
ÈçÏÂΪ½â¾ö°ì·¨£ºÔÚÒªµ÷ÓÃÔ¶³Ì¶ÔÏóµÄApplicationÎļþÀïÃ棬¼ÓÉÏÈçÏÂÉùÃ÷Óï¾ä£º
    import flash.net.registerClassAlias;
 
    registerClassAlias("JAVA¶ËµÄÀàÈ«Ãû",A ......

flexÖÐsocketµÄʹÓÃ

flexÖÐʹÓÃsocketÓëÆäËûÓïÑÔ(ÈçJava)socket½»»¥µÄÀý×Ó¡£
    ×Ô´ÓAdobe Flash PlayerÉý¼¶µ½9.0.124ºó£¬ÓÉÓÚ°²È«²ßÂÔµÄÐ޸ģ¬Ô­À´µÄsocketÁ¬½Ó·½Ê½½«²»Äܱ»Ê¹Ó㬶ø±ØÐë²ÉÓÃÐµİ²È«²ßÂÔ·½Ê½À´ÑéÖ¤£¬¾ßÌåµÄ¹ý³ÌÈçÏ£º
    1.Ê×Ïȼì²â·þÎñ¶ËµÄ843¶Ë¿ÚÊÇ·ñÌṩ°²È«²ßÂÔÎļþ£»
  &n ......

FlexʵÏÖDataGridµÄÐòºÅÁÐ

ÒªÔÚFlexµÄDataGridÀïÌí¼ÓÐòºÅÁУ¬´óÌåÉÏÓÐÁ½ÖÖ·½·¨£º
ÉèÖÃDataGridColumnµÄlabelFunction¡£
Æä´óÖµÄ˼·ÊÇ£¬»ñÈ¡µ½µ±Ç°DataGridµÄdataProvider¼°µ±Ç°ÐеÄdata£¬µ÷ÓÃgetItemIndex·½·¨»ñÈ¡µ½µ±Ç°µÄÐеÄÐòºÅ¡£
¾ßÌå¿É²Î¿¼ http://wmcai.blog.163.com/blog/static/480242008111115724283/¡£ÕâÖÖ·½·¨±È½ÏÖ±¹Û£¬Ò²ºÜÈÝÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ