FlexѧϰϵÁÐÖ®¶þ RIA¼¼ÊõÓ봫ͳµÄÒ³Ãæ¼Ü¹¹
×î½üÔÚ¿´Flex3ȨÍþÖ¸ÄÏ£¬ÀïÃæ¶ÔÒ³Ãæ¼Ü¹¹ºÍRIA¼¼Êõ×ܽáµÄºÜºÃ¡£
Ò». »ùÓÚÒ³Ãæ¼Ü¹¹µÄWebÓ¦ÓÃÁ÷³Ì
1. Óû§´ò¿ªä¯ÀÀÆ÷£¬ÏòWEB·þÎñÆ÷ÇëÇóÒ»¸öÒ³Ãæ¡£
2. WEB·þÎñÆ÷ÊÕµ½ÇëÇó¡£
3. (optional)ÍøÂç·þÎñÆ÷°ÑÇëÇ󽻸øÓ¦Ó÷þÎñÆ÷À´¶¯Ì¬×é×°Ò³Ãæ¡£
4. (optional)ÍøÂç·þÎñÆ÷´ÓÎļþϵͳ»ñÈ¡¾²Ì¬Ò³Ãæ
5. Web·þÎñÆ÷½«£¨¶¯Ì¬»ò¾²Ì¬£©Ò³Ãæ·¢»Ø¸øä¯ÀÀÆ÷¡£
6. ä¯ÀÀÆ÷»æÖÆÒ³ÃæÒÔÌæ´úÏÈÇ°ÏÔʾµÄÒ³Ãæ¡£
´Ë¼Ü¹¹ÏÂÿ´ÎÓû§½»»¥¶¼ÐèÒªÔÚä¯ÀÀÆ÷ÖмÓÔØÒ»¸öÐÂÒ³Ã棬ÕâÒ²ÊÇ´«Í³WebÓ¦ÓóÌÐòµÍЧµÄÔÒò¡£
¶þ. RIA¼¼Êõ
RIAµÄ¹Ø¼üÄ¿±êÖ®Ò»¾ÍÊÇÒª¼õÉÙÿ´ÎÇëÇó´«Ë͵ĶîÍâÊý¾ÝÁ¿¡£RIA¼¼ÊõÓÐÒÔÏÂÌØÐÔ
1. ÄÜΪ´úÂëÖ´ÐУ¬ÄÚÈÝÏÔʾºÍÍøÂçͨÐÅÌṩһ¸ö¸ßЧÂÊ£¬¸ßЧÄܵÄÔËÐÐʱ»·¾³¡£
2. Ìṩǿ´ó¶øÓÖ¿ÉÀ©Õ¹µÄ¶ÔÏóÄ£ÐÍÒÔ·½±ã½»»¥¡£Èçͨ¹ýJAVASCRIPTÓëDHTMLÔÚDOMÖнøÐн»»¥¡£
3. ¿ÉÒÔʹÓ÷þÎñÆ÷¶Ë¶ÔÏó¡£±£Ö¤Äܹ»Ê¹ÏÔʾÂß¼ºÍÓû§½çÃæÓë·â×°ÔÚ·þÎñÆ÷¶ËÖеÄÓ¦ÓÃÂß¼³¹µ×·ÖÀë¡£
¿ª·¢Õß¹¹½¨RIAÓжàÖÖÑ¡Ôñ£¬±È½ÏÁ÷ÐеÄÓÐÒÔϼ¸ÖÖ£¬»ùÓÚHTMLµÄ·½°¸£¨ÈçAJAX)£¬»ùÓÚ²å¼þµÄ·½
°¸£¨Èç Adobe flash, Adobe Flex),ÒÔ¼°ÆäËûÔËÐÐÔÚFlash PlayerÉϵļ¼Êõ¡£µ±È»»¹ÓÐÀ´×Ô΢ÈíµÄ·½°¸£¬
WPF £¨windows presentation foundation), SilverlightºÍXAMLµÈ¡£
Ïà¹ØÎĵµ£º
ÍøÉÏÄܲ鵽ºÜ¶àÀàËÆ×ÊÁÏ£¬µ«ÍêÕûÐÔ²»¸Ò¹§Î¬¡£ÒÔÏÂÊǽâ¾ö·½°¸¼°Òªµã£º
·½·¨Ò»£º
ͨ¹ýurlµÄ·½Ê½Ïòflex´«²ÎÊý
µÚ1²½£ºÔÚÍøÒ³ÖÐÉèÖÃÒ»¸öÁ´½Ó£¬Èç <a
href="test.jsp?p1=test1&p2=test2">²âÊÔÁ´½ÓÒ»</a>£¬ÆäÖÐtest.jspǶÈëÁË
flash
µÚ2²½£º»ñÈ¡²ÎÊý
var params:Object
=URLUtil.parseUrlPara ......
½ÓÏÂÀ´µÄÀý×ÓÑÝʾÁËFlexÖÐÈçºÎͨ¹ýiconÑùʽ´ÓSWFÖÐÖ¸¶¨Ò»¸öButton¡£
ÈÃÎÒÃÇÏÈÀ´¿´Ò»ÏÂDemo£¨¿ÉÒÔÓÒ¼üView Source»òµã»÷ÕâÀï²ì¿´Ô´´úÂ룩£º
ÏÂÃæÊÇÍêÕû´úÂë(»òµã»÷ÕâÀï²ì¿´)£º
Download: main.mxml<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
  ......
1.½«flex±àÒëºóµÄ³ÌÐò²åÈëµ½asp.netÒ³Ãæ
flexµÄ×îÖÕÊä³ö¾ÍÊÇÒ»ÕÅÍøÒ³+Ò»¸öflash(.swfÎļþ)
Õâô˵ÄãÃ÷°×ÁË°É£¬Æäʵ¾ÍÊÇÓÃËûÉú³ÉµÄÍøÒ³µÄ·½Ê½°ÑÄǸö.swfÎļþ²åÈëµ½ÄãµÄasp.netÒ³Ãæ¾Í¿ÉÒÔÁË¡£
¼ÙÈçÄãµÄflex3ÏîÄ¿Ãû×Ö½ÐTestApp£¬×î¼òµ¥Ö±½ÓµÄ°ì·¨¾ÍÊÇ£¬
°Ñ"bin-debug"Ŀ¼Ïµģº
TestApp.html
TestApp.swf
AC_OETags.js ......
ÊÕ²ØÀ´×ÔÔÆ×ÔÎÞÐÄË®×ÔÏС£
Ê×ÏȽéÉÜÒ»ÏÂSystemManager. SystemManagerÊÇFlexÓ¦ÓõÄÖ÷¿ØÕß, Ëü¿ØÖÆ×ÅÓ¦Óô°¿Ú, ApplicationʵÀý, µ¯³ö´°¿Ú, cursors, ²¢¹ÜÀí×ÅApplicationDomainÖеÄÀà. SystemManagerÊÇFlashPlayerʵÀý»¯µÄµÚÒ»¸öÀà, Ë ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="top" applicationComplete="init()">
<mx:Script>
<![CDATA[
import mx.events.ItemClickEvent;
import mx.collections.ArrayCollection ......