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

Flex Óë as3.0 SWF Ö®¼äµÄͨѶ

Ô´ÌùµØÖ· http://www.riachina.com/showtopic.aspx?topicid=8556#
ÓÉÓÚLocalconncetionµÄijЩÏÞÖÆ(һ̨¿Í»§Ö»¿ÉÒÔʹÓÃÌض¨Ãû×ÖµÄÒ»¸öÁ¬½Ó£¬ÕâÑùµÄ³ÌÐòÈç¹û¿ªÁ½¸ö´°¿Ú¾Í»á·¢ÉúÒì³£)£¬½ñÌìÏÐ×ÅûÊÂ×öÁËÒ»¸öÕâÑùµÄÊÔÑé¡£ÈÃFlash CS3ºÍFlexµÄ´úÂë¿ÉÒÔÏ໥µ÷Óã¬ÎªÁËÏÔʾЧ¹û£¬ÔÚË«·½µÄ½çÃæ·Ö±ð·ÅÖÃÁËÒ»¸öÎı¾ÊäÈë¿òºÍÒ»¸ö°´Å¥¡£
 
ÕâÊÇFlex¶ËµÄ´úÂ룺
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
//°Ñµ±Ç°µÄapplicationÒýÓøæËßswf
private function onSwfLoaded(event:Event):void{
Object(myloader.content).setApp(this);
}
 
//×¼±¸¸øswfµ÷Óõķ½·¨
public function appshowtext(str:String):void{
textinput.text=str;
}       
]]>
</mx:Script>
<mx:SWFLoader id="myloader" source="local.swf" creationComplete="onSwfLoaded(event)"/>
<mx:TextInput id="textinput"/>
<mx:Button label="send to local.swf" click="Object(myloader.content).swfshowtext(textinput.text);"/>
</mx:Application>
 
ÕâÊÇFlash CS3ÀïÃæµÄµÚÒ»Ö¡µÄ´úÂ룺
var app:Object;
display_txt.autoSize=TextFieldAutoSize.LEFT;
function swfshowtext(str:String):void{
display_txt.text=str;
}
function setApp(ap:Object):void{
this.app=ap;
}
mybtn.addEventListener(MouseEvent.CLICK,onClick);
function onClick(event:MouseEvent):void{
app.appshowtext(display_txt.text);
}


Ïà¹ØÎĵµ£º

UbuntuÉÏÅäÖÃFlex±à³Ì»·¾³£¨º¬LAMPÅäÖã©

Ò»¡¢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µÄ°²×°ÎļþºÜÄÑÕ ......

flex ͼ±íʹÓðٷֱÈʾÀý

<?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 ......

flex×ÊÔ´

Ò» ÍøÕ¾
1 ÔÚÏßͼƬ´¦Àí¹¤¾ßÍøÕ¾http://www.flauntr.com/
¡£
2 ¹Ù·½ÍøÕ¾µÄÀý×Ó http://examples.adobe.com/flex3/componentexplorer/explorer.html
3 ¹Ù·½AS3ѧϰ×ÊÁÏÍøÕ¾  http://www.adobe.com/devnet/actionscript/
4 Õâ¶ùÍƼöÒ»¸öÍøÖ·£¬²»½ö¿ÉÒÔ¶ÔÆäËüµÄÊý¾ÝÀàÐͽøÐÐѧϰ£¬»¹Óлù´¡µÄÓï·¨£¬·Ç³£²»´í£º
  ......

flex textarea ¹ö¶¯Ìõ

½ñÌìÔÚÐÞ¸ÄÒ»¸öÓÎÏ·bugÎÊÌâµÄʱºòÓöµ½µÄ
ÕâÓÎÏ·±¾À´ÊÇÖÐÎÄ°æµÄ£¬ºóÀ´±»·­Òë³ÉÓ¢ÎÄÁË£¬Ó¢ÎĵÄ×Ö·û´®µÄ³¤¶ÈÒ»°ã¶¼»á±ÈÖÐÎĵÄ×Ö·û¶àµÄ£¬ËùÒԺܶàÇé¿öÏÂÒª¼Ó¹ö¶¯ÌõÁË
½ñÌìÓÖÓиöÏÔʾÎÄ×Ö²»È«µÄ£¬Ô­±¾ÓõÄÊÇtext±êÇ©µÄÄǸö²»ÄÜÏÔʾ¹ö¶¯ÌõËùÒÔÓÃtextareaÌæ»»µôÁË£¬¿ÉÊǾ¹È»Ã»Óз´Ó¦²»ÏÔʾ¹ö¶¯Ìõ
ÓôÃÆ£¡£¡£¡£¡
ÎÒÌí¼ÓÁË  ......

¡¾Êղء¿FlexÊý¾ÝͨѶ

Flex/Flash Ö§³ÖµÄÊý¾ÝͨѶ·½Ê½ÓУº
http URLLoader
SOAP(webservice)
json
xml
flash remoting / AMF3
xmlsocket
socket(¶þ½øÖÆ)(×Ô¶¨ÒåЭÒé)
¸ß²¢·¢µÄÓ¦ÓÃÖÐÓû§×´Ì¬¿ÉÒÔÓÃcookie£¬²»ÓÃsession
Èç¹ûÊǶàÈËʵʱ½»»¥ÈçÁÄÌìϵͳ£¬¶àÈËÔÚÏß»¥¶¯µÈÓ¦ÓÃÄ£¿é¡¡ÐèÒªÓÃsocket½øÐÐͨѶ(Óë·þÎñÆ÷½¨Á¢³¤Á¬½Ó)£¬·þÎñÆ÷¶Ë¿ÉÒÔ× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ