FlexÖеĵ¼º½Æ÷
Ò»¸öµ¼º½ÈÝÆ÷¿É
ÒÔͨ¹ýÒ»×é×ÓÈÝÆ÷À´¼à¿ØÓû§µÄ²Ù×÷¡£±ÈÈ磬TabNavigator
Õâ¸öÈÝÆ÷¾Í¿ÉÒÔͨ¹ýÒ»×étabs
À´ÈÃÓû§Ñ¡Ôñ¿É¼ûµÄ×ÓÈÝÆ÷¡£Flex3
ÌṩÁËÈýÖÖÖ÷ÒªµÄµ¼º½ÈÝÆ÷£º
Ø
ViewStack
Ø
TabNavigator
Ø
Accordion
½ÓÏÂÀ´µÄʱ¼äÖð
¸ö½éÉÜÿ¸öÈÝÆ÷µÄʹÓ÷½·¨¡£
1.
ViewStack
µ¼º½ÈÝÆ÷
ViewStack
µ¼º½ÈÝÆ÷£¬ÒÔϼò³ÆVS
ÈÝÆ÷¡£ÊÇÓɺܶà×ÓÈÝÆ÷×éºÏÆðÀ´µÄ£¬ÕâЩ×ÓÈÝÆ÷Ï໥µþÔڱ˴ËÖ®ÉÏ£¬²¢ÇÒÔÚijһÌض¨µÄʱ¼äÄÚÖ»ÓÐÒ»¸öÈÝÆ÷ÊǿɼûµÄ»òÕß˵ÊÇActive
״̬µÄ¡£VS
ÈÝÆ÷ûÓж¨Òå
built-in
µÄ»úÖÆÀ´Çл»µ±Ç°´¦ÓÚactive
״̬µÄÈÝÆ÷£¬ËùÒÔÓû§ÐèҪʹÓÃÏñLinkBar,TabBar
»òÕßToggleButtonBar
ÕâЩ¿Ø¼þ£¬»òÕßʹÓÃActionScript
À´¸ü¸Äµ±Ç°¿É¼ûÈÝÆ÷µÄ״̬¡£±ÈÄã¿ÉÒÔ¶¨ÒåһϵÁеİ´Å¥À´¿ØÖÆËùÓÐ×ÓÈÝÆ÷µÄÇ뻶¯×÷¡£
ͼÖÐ
×ó±ßµÄͼƬÏÔʾVS
ÈÝÆ÷ÖеÚÒ»¸ö×ÓÈÝÆ÷ÊǼ¤»îµÄ£¬¿ÉÒÔÓÃË÷ÒýµÄ·½·¨À´±íʾVS
ÈÝÆ÷ÀïÃæµÄ×ÓÈÝÆ÷¡£±ÈÈç0-
£¨n-1
£©.
´´½¨Ò»¸öVS
ÈÝÆ÷
ʹÓÃ<mx:ViewStack>
±ê¼Ç¾Í¿ÉÒÔ¶¨ÒåÒ»¸öVS
ÈÝÆ÷£¬µ±È»»¹¿ÉÒÔÉ趨ºÜ¶àÊôÐÔÁË£º
Ø
selectedIndex
±íʾÈç¹ûVS
ÈÝÆ÷ÀïÀïÃæÓжàÓàÒ»¸öµÄ×ÓÈÝÆ÷£¬ÄÇôselectedIndex
µÄÖµËù¶ÔÓ¦µÄÄǸö×ÓÈÝÆ÷¾ÍÊÇactive
µÄ¿É¼ûµÄ¡£ÆäÈ¡Öµ·¶Î§0
µ½n-1.n
´ú±í×ÓÈÝÆ÷µÄ¸öÊý¡£
Ø
selectedChild
µ±Ç°¼¤»îµÄÈÝÆ÷µ±¶¨ÒåÁËÒ»¸ö»òÕ߶à¸ö×ÓÈÝÆ÷£¬Èç¹ûûÓж¨Òå×ÓÈÝÆ÷£¬ÆäֵΪnull
¡£²¢ÇÒÕâ¸öÊôÐÔ±ØÐëÊÇÏÖÔÚAS
µ±ÖÐÖ¸¶¨ÄãÒª¼¤»îµÄÄǸöÈÝÆ÷µÄid.
Ø
numChildren
ÖµVS
ÈÝÆ÷µ±Öе½µ×ÓжàÉÙ¸ö×ÓÈÝÆ÷¡£
¾Ù
Àý£ºÎÒÃÇÊÔͼÔö¼ÓһЩÌØЧ¡£
Xml´úÂë < type="application/x-shockwave-flash" width="14" height="15" src="http://www.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" src="http://www.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=%3C!--%20containers%5Cnavigators%5CVSLinkEffects.mxml%20--%3E%0A%20%3Cmx%3AApplication%20xmlns%3Amx%3D%22http
Ïà¹ØÎĵµ£º
4. Àí½âʼþ½×¶Î(Event Phases) ÎÒÃÇ°Ñʼþ´¥·¢Ô´·ÖΪÁ½ÀࣺһÀàÊÇÄÇЩÏÔʾÔÚ½çÃæÖеÄÔªËØÅ׳öµÄʼþ£¬Ò»ÀàÊÇÄÇЩ²»ÔÚ½çÃæÖÐÏÔʾµÄÔªËØÅ׳öµÄʼþ¡£ºÜ¼òµ¥£¬¾Ù¸öÀý×Ó£ºµÚÒ»ÀàÈçURLLoader¶ÔÏóÈ¥loadͼƬ»òÆäËû×ÊÔ´ËùÅ׳öµÄÈçcompleteʼþ£¬¾ÍÊôÓÚµÚÒ»Àà¡£½çÃæÉϵÄÒ»¸ö°´Å¥ËùÅ׳öµÄclickʼþ¾ÍÊǵڶþÀ࣬Ëü»á´¥·¢Ò»¸öʼþÁ÷£¬ ......
¹ØÓÚflexÈçºÎÏòij¸öÒ³Ãæ´«µÝ²ÎÊý£¬ÎÒÒÔÇ°ÓÐÕâ·½ÃæµÄ±Ê¼Ç£¬flexͨ
¹ý·ÇAmfPHP;¾¶Óëºǫ́½»»¥
ÖÐURLLoader+URLRequest+URLVariables·½·¨Ò²¿ÉÒÔÓÃÓÚÏòflexÒ³Ãæ´«²ÎÊý¡£ºó
̨php¶Ë½ÓÊÕ²ÎÊýºÜ¼òµ¥£¬ÏÖÔÚÌÖÂÛÒ»ÏÂflex¶ËÈçºÎ´¦ÀíÒ³Ãæurl´«µÝ¹ýÀ´µÄ²ÎÊý¡£
ÍøÉÏÕâ·½ÃæÎÄÕ²»ÉÙ£¬²»¹ý¶¼¶àÉÙÓÐЩÎÊÌ⣬ÎÒ×ܽáһϣ¬Ð´ÔÚÕâÀï¡£
·½· ......
±¾ÆªÎÄÕÂÊÇ¡¶Flash Builder 4 beta (Gumbo) UI¡¢¹¦ÄܵÄÐÂÌåÑé¡·µÚÈýƪÎÄÕ£¬×ÅÖؽéÉܵÄFlex SDK 4(Gumbo)ÐÂÔö¼ÓµÄÃüÃû¿Õ¼ä£¨NameSpace£©¡£
ÖÚËùÖÜÖª£¬Flex SDK 4(Gumbo)Ôö¼ÓÁËһЩÃüÃû¿Õ¼ä£¬Çë¿´ÈçÏ£º
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/halo"
xmlns:s="library://ns.a ......
/**=========main.mxml=========*/
/* µ¼³öexcel */
private function exp():void{
if(dgEnterprise.dataProvider==null){
Alert.show("Êý¾ÝΪ¿Õ£¬ÎÞ·¨µ¼³öexcel","ÓÑÇéÌáʾ");
}else{
ExportExccel.loadDGInExcel(dgEnterprise,"/ssfxSystem/excelexport.jsp?tableName=ÆóÒµÐÅÏ¢");
}
}
/**===== ......
ÒѾ×öºÃµÄÒ»¸öJ2EEÏîÄ¿£¬ÏëÓ¦ÓÃflexÖеÄͼ±í£¬ËùÒÔÏÖÔÚµÄÊ×ÒªÎÊÌâ¾ÍÊÇÈçºÎ°ÑflexǶÈëµ½jspÖУ¬°´ÕÕÍøÉϽéÉܵĽâ¾ö·½°¸×öÁ˸öС²âÊÔ£º
<%@ taglib uri="FlexTagLib" prefix="mm"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
&nbs ......