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

Flex Deep Link(ÉîÁ´½Ó)Ó¦ÓÃ


×î½ü×öÓÎÏ·µÄʱºò£¬·¢ÏÖÍ˳öµÇ½ʱURLÉÏ»á×Ô¶¯¼ÓÉÏÒ»¸ö“#”×Ö·û£¬ºÜÆæ¹Ö£¬Google+BaiduÎÞÊý´Î¶¼Ã»ÓÐÕÒµ½´ð°¸¡£½ñÌìÎÞÒâ¼ä¿´µ½¼¸¸ö
ȺÓÑÔÚ˵ͨ¹ý“BrowserManager”»ñÈ¡URL£¬ÓÚÊÇ×Ðϸ²é¿´ÁËAPI£¬ÓÖ·¢ÏÖÁË“HistoryManager”£¬Õâ¸öÎÊÌâÖÕÓÚÃ÷°×ÁË¡£
ÎÒÃÇͨ³£¿´µÄWebÒ³Ãæ
¿ÉÒÔͨ¹ýä¯ÀÀÆ÷µÄ“Ç°½ø”“ºóÍË”À´²é¿´¸Õ²Å¿´¹ýµÄÒ³Ã棬ͬÑù£¬Ç¶ÈëµÄÒ³ÃæÖеÄflashÒ²¿ÉÒÔʵÏÖÕâÑùµÄ¹¦ÄÜ¡£·½·¨ÊÇͨ¹ý
HistoryManageerÀàºÍBrowserManagerÀàÁ½ÖÖ·½·¨À´ÊµÏÖ¡£HistoryManageerÀàÖ÷ÒªÊÇÓÃÔÚFlex2£¬Flex3
ºóºÜÉÙÓÃÁË¡£´ý»áÎÒ½«·Ö±ð½éÉÜÕâÁ½ÖÖ·½·¨¡£
»Øµ½¸Õ²Å˵URLÉÏ×Ô¶¯¼Ó“#”ºÅµÄÎÊÌ⣺ԭÒòÊÇApplication
ĬÈÏhistoryManagementEnabledÊôÐÔÊÇture£¬Ò²¾ÍÊÇ˵HistoryManageerÀ๦ÄÜ×Ô¶¯¿ªÆô
ÁË£¬Application
ÀïÃæͨ¹ý³ÌÐò¿ØÖÆaddChild»òremoveChildÈκÎ×é¼þËùµ¼Öµı仯£¬½«»á¼Ç¼ÔÚflashµÄhistoryÖУ¬µ¼ÖÂÖØдurl£¬¼ÓÉÏ“#”
×Ö·û¡£¹ÊÓÐÁËÕâ¸öÆæ¹ÖµÄ“#”ºÅ¡£ÔÚFlex3ÖУ¬HistoryManager¹¦ÄÜÔÚFlexÏîÄ¿ÖÐĬÈÏ´ò¿ªµÄ»¹ÓÐAccordion ºÍ
TabNavigator×é¼þ¡£¶ÔÓÚûÓÐĬÈÏ´ò¿ª¸Ã¹¦ÄܵÄ×é¼þ£¬Èç¹ûҪʵÏָù¦ÄÜ£¬ÔòÐèÒªÁíÍâ×¢²á¡£ÏÂÃæÒýÓÃÁ½Æ¬ÎÄÕ¼ÓÒÔ˵Ã÷£º
¶ÔÓÚÒ»¸öÍøÕ¾À´Ëµ£¬ÆäÊÇÓÐÈô¸É¸öÍøÒ³×é³ÉµÄ¡£¶ø¸÷¸öÍøÒ³Ö®¼äµÄÁ´½Ó½Ð×ö³¬Á´½Ó¡£Á´½Ó³ÉΪÍøÒ³ºÍÍøÒ³Ö®¼äµÄÇÅÁº¡£ÄÇô£¬¶ÔÓÚÒ»¸öFlashÕûÕ¾À´
˵£¬ÓÐûÓÐÒ»¸ö°ì·¨À´ÊµÏÖFlash¸÷Ò³Ã棨¸üÇ¡µ±µÄ˵ÊǸ÷¹¦ÄÜÄ£¿é£©Ö®¼äµÄÁ´½ÓÄØ¡£±ÈÈ磬ÎÒÏëÔÚä¯ÀÀÆ÷ÖÐÊäÈëÒ»¸öÁ´½Ó±ã¿ÉÒÔÁ´µ½FlashÕûÕ¾ÖеÄÒ»Ò³
—Ò»¸ö¹¦ÄÜÄ£¿é£¬¶ø²»ÊÇÿ´Î¶¼ÒªÍ¨¹ýFlashÕûÕ¾µÄµÚÒ»¸öÒ³ÃæµÄ¹¦Äܵ¼º½½øÈë¡£°ÑFlashµÄ¸÷¸ö¹¦ÄÜ¿éÒ³Ã滯£¬ÄÇôÎÒÃǸÃÔõôʵÏÖÄØ¡£µ½µ×Äܲ»ÄÜʵÏÖ
ÄØ£¿
  ´ð°¸Êǿ϶¨µÄ£¬Í¨¹ýFlex Deep Link ±ãÄÜʵÏÖÉÏÊö¹¦ÄÜ¡£
  µÚÒ»£¬Deep Link ¼ò½é¡£
  Deep LinkÆäʵҲÊÇÒÀÀµFlashºÍä¯ÀÀÆ÷µÄ½»»¥À´ÊµÏֵģ¬Í¨¹ý»ñÈ¡Á´½ÓµØÖ·ÖÐ#ºóÃæµÄ²ÎÊýÀ´ÊµÏÖÒ³Ãæ±ê¼Ç£¬µ±ÄãÔÚFlex
Bulid3·¢²¼Ò»¸öÏîĿʱ£¬Æä»á×Ô¶¯Äã·¢²¼µÄĿ¼Éú³ÉÒ»¸öÃûΪHistoryµÄÎļþ¼Ð£¬ÀïÃæÓÐ
History.js,HistoryFrame.html,history.cssÕâÈý¸öÎļþ£¬¿É¼ûDeep
LinkÒ²ÊÇͨ¹ýºÍä¯ÀÀÆ÷½»»¥À´ÊµÏÖµÄ.Èç¹ûä¯ÀÀÆ÷²»Ö§³ÖJavaScript»òÕß½ûÓÃJavaScript£¬ÄÇôDeep LinK¿Ï¶¨ÊDz»ÄÜÓõġ£
  ¶ÔÓÚDeep LinkÓ¦Óã¬×îÖØÒªµÄ¾ÍÊÇѧ»áÓ¦ÓÃBrowserManagerºÍHistoryMa


Ïà¹ØÎĵµ£º

ÍøÒ³´«µÝ²ÎÊýµ½flexÖеķ½·¨

1.ÔÚ<Object>ºÍ<embed>ÖÐÉèÖÃflashVars²ÎÊý
£¬ÀýÈ磺
<object
id=’mySwf’ classid=’clsid:D27CDB6E-AE6D-11cf-96B8-444553540000′
codebase=’http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab’
height=’100%’ width=’10 ......

flexѧϰ statesºÍtransitions

¹ØÓÚstates
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import mx.effects.easing.Bounce;
]]>
</mx:Script>
<mx:states>
<mx:State name="bookDetails" ......

Flexʼþ»úÖÆ

Flexʼþ»úÖÆ
Flexʼþ»úÖÆÊǹ۲ìÕßģʽ£¬¼´Ê×ÏÈҪע²áʼþ£¬Ê¼þ·Ö·¢ºóͨ¹ýʼþÏìÓ¦º¯Êý½øÐд¦Àí¡£
ÀýÈçÔÚAS3ÖУº
button.addEventListener(“click”,onClick);//Ïòbutton×¢²áÒ»¸öclickʼþ
internal function onClick(evt:MouseEvent):void{txt.text=“click a button!”;}//ʼþÏìÓ¦º¯Êý
ÄÇÃ ......

flexѧϰ flex¶ÁÈ¡xmlÎļþ

Ô´xmlÎļþ
 <?xml version="1.0" encoding="iso-8859-1"?>
<books>
<stock>
<name>The Picasso Code</name>
<author>Dan Blue</author>
<category>Fiction</category>
<description>Cubist paintings reveal a secret society of people ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ