Flex ʵ¼ù——×Ô¶¨Òå×é¼þ¼°µ÷ÓÃ
ÕâÒ»´ÎµÄFlex ʵ¼ù½«ÒªÊµÏÖÒÔϹ¦ÄÜ£º
1¡¢×Ô¶¨ÒåÒ»¸ö¼òµ¥µÄ Flex ×é¼þ
2¡¢´´½¨Ò»¸öIndex. mxml À´µ÷ÓøÃ×é¼þ
1£©Óà as µ÷ÓÃ×é¼þ
2£©Óà mx ±êÇ©µ÷ÓÃ×é¼þ
Ê×ÏÈ´´½¨ÐÂÎļþ¼Ð£¨user£©À´±£´æËùÓÐ×Ô¶¨ÒåµÄ×é¼þ£¬ÕâÀïÎÒ½«Ð´´½¨µÄ×é¼þÃüÃûΪ£ºUserView.mxml
ÔÚÖ÷Ŀ¼Ï´´½¨ Mxml Application£¬ÕâÀïÎÒ½«ËüÃüÃûΪ£ºIndex.mxml
¹¤³ÌÊÓͼΪ£º
ÏÂÃ棬À´Íê³É×é¼þµÄÉè¼Æ£º
ÔÚDesign ÊÓͼϽ«¿Ø¼þÍϵ½Panel ÉÏ£¬ÉèÖÃÆäÊôÐÔ
ÏÂÃæÊÇÎÒµÄÉè¼Æ£º
´úÂë
DesignÊÓͼ
½ÓÏÂÀ´£¬À´Íê³ÉÖ÷Ò³ÃæIndex.mxmlµÄÉè¼Æ
µ÷ÓÃ×é¼þ£¬±ØÐëÌí¼ÓÒÔÏ´úÂë
£¨±ðÍüÁË¼Ó xmlns:mp=" user. *£©
Ìí¼Ó AuctionScript ´úÂ룬½«ÄÚÈݽ«Íê³É¶Ô×é¼þµÄн¨
ÔÙÀ´¿´Ò»ÏÂÔõôÔÚÆÕͨµÄ±êÇ©Öе÷ÓÃ×é¼þ£º
´úÂ벿·Ö¾ÍÊÇÕâЩÁË£¬ÏÂÃæÀ´¿´Ò»ÏÂÔÚûÓÐÔËÐÐʱµÄЧ¹ûͼ£¨Í¼Öн«Ö»»áÏÔʾÓÃ< mp: >±êÇ©Ìí¼ÓµÄÄÚÈÝ£©
ÔËÐк󣬳ýÁËÓñêÇ©µ÷ÓõÄ×é¼þÍ⣬»¹½«ÏÔʾÓà AuctionScript н¨µÄ×é¼þ
ÒÔÉϾÍÊÇÕâ´Îʵ¼ùÖÐÓÐ¹Ø Flex ×é¼þµÄ¼òµ¥Ó¦Óá£
Ïà¹ØÎĵµ£º
flash.util.TimerÀà
flash.util.TimerÀàÔÊÐíͨ¹ýÌí¼Óʱ¼äʼþ»òÑÓʱÀ´µ÷Ó÷½·¨¡£Í¨¹ýTimer¹¹ÔìÆ÷´´½¨ÊµÀý¶ÔÏ󣬴«µÝÒ»¸öºÁÃëÊý×Ö×÷Ϊ¹¹Ôì²ÎÊý×÷Ϊ¼ä¸ôʱ¼ä£¬ÏÂÃæµÄÀý×ÓʵÀý»¯Ò»¸öTimer¶ÔÏóÿ¸ö1ÃëÖÓ·¢³öʼþÐźţº
var timer:Timer = new Timer(1000);
Ò»µ ......
ÔÚFlexÏÂÉèÖÃÒ³Ãæä¯ÀÀÆ÷±êÌâTitle¹¤ÓÐÁ½ÖÖ·½Ê½£º
1£¨ÍƼö´Ë·½·¨£©.ÀûÓÃBrowserManagerÀàÉèÖÃTitle£º
BrowserManager.getInstance().setTitle("***ÐÅϢϵͳ");
¿ÉÒÔ½«ÉÏÃæÒ»ÐдúÂëдÔÚϵͳµÄ³õʼ»¯º¯ÊýÖÐ
2.ÔÚApllicaaction±êÇ©ÏÂÉèÖÃpageTitleÊôÐÔ£º
<mx:Application xmlns:mx="http://www.adobe.com/ ......
ÒòΪÎÞÂÛÊÇFLEX£¬»¹ÊÇSilverlight¡¢AJAX£¬ËûÃǶ¼ÎÞ·¨Ö±½Ó²Ù×÷Êý¾Ý¿â£¨¾Ý×îÐÂÏûÏ¢£¬Î¢ÈíÓÐÁËMicrosoft .NET RIA Services£¬Ëü¿ÉÒÔÖ±½Ó²Ù×÷Êý¾Ý¿â£¬ÎÒÆÚ´ý×ÅËýÄÜÔÚVS2010ÖгöÏÖ£©£¬Í¨³£ÓÃWEBSERVICEµÈÖмäÈ˵ķ½Ê½À´½øÐÐSOAPÐÒéµÄµÄÎı¾´«Ê䣬ЧÂʺܵͣ¨´ó¼ÒÊÔһϾͻáÖªµÀ¼òÖ±ÎÞ·¨ÈÌÊÜ£©£¬FLEXΪÁ˼ӿ촫ÊäËٶȣ¬ÓÚÊÇÖƶ¨ÁË ......
Ê×ÏÈÒªÓÐÒ»¸ö¼òÒ׵ķþÎñÆ÷£¬½¨Á¢Ò»¸öÕ¾µã£¬È»ºóÕ¾µãÏ´æ·Å
1£ºcrossdomain.xml Õâ¸öÊÇ¿çÓëÓò²ßÂÔÎļþ£¬ÓÃÓÚÖ¸¶¨Óòͨ¹ýFlash
Player·ÃÎʱ¾ÓòµÄ×ÊÔ´(Èç¹û·þÎñÆ÷ÔÚ±¾»ú¾ÍûÓÐÕâ¸ö±ØÒª)µ«ÊÇÔ¶³ÌµÄ»°¾ÍÒª(½¨ÒéÒª)
ÎļþÄÚÈÝ£º
<cross-domain-policy>
<allow-access-from domain="*" /> ......
ÔÚÏîÄ¿ÖÐ×Ô¶¨ÒåÒ»¸öCheckboxGroup£¬Õâ¸ö¿Ø¼þÀïÃæ°üº¬¶à¸öCheckboxÏë¿ØÖÆCheckboxµÄÐÐΪ£ºËùÒÔʹÓòéÕÒһϰïÖúʹÓÃflexÖоµä·½·¨£ºgetDefinitionByName º¯ÊýµÄʹÓÃ
public function getDefinitionByName(name:String):Object
·µ»Ø²ÎÊý name ÖÐÖ¸¶¨µÄÀàÒýÓÃ
²ÎÊý name:String - ÀàÃû³Æ
·µ»Ø Object - ·µ»Ø²ÎÊý name ÖÐ ......