Flexʼþ´¦Àí
»ù±¾Ê¼þ´¦Àí
ÓÃÓÚÖ¸¶¨ÎªÏìÓ¦Ìض¨Ê¼þ¶øÓ¦Ö´ÐеÄÌض¨²Ù×÷µÄ¼¼Êõ³ÆΪʼþ´¦Àí¡£ÔÚ±àдִÐÐʼþ´¦ÀíµÄ ActionScript ´úÂëʱ£¬ÄúÐèҪʶ
±ðÈý¸öÖØÒªÔªËØ£º
• ʼþÔ´£º·¢Éú¸ÃʼþµÄÊÇÄĸö¶ÔÏó£¿ÀýÈ磬Äĸö°´Å¥»á±»µ¥»÷£¬»òÄĸö Loader ¶ÔÏóÕýÔÚ¼ÓÔØͼÏñ£¿Ê¼þÔ´Ò²³ÆΪʼþÄ¿
±ê£¬ÒòΪ Flash Player »ò AIR ½«´Ë¶ÔÏó×÷ΪʼþµÄÄ¿±ê £¨¼´Ê¼þʵ¼Ê·¢ÉúµÄλÖã©¡£
• ʼþ£º½«Òª·¢ÉúʲôÊÂÇ飬ÒÔ¼°ÄúÏ£ÍûÏìӦʲôÊÂÇ飿ʶ±ðʼþÊǷdz£ÖØÒªµÄ£¬ÒòΪÐí¶à¶ÔÏ󶼻ᴥ·¢¶à¸öʼþ¡£
• ÏìÓ¦£ºµ±Ê¼þ·¢Éúʱ£¬ÄúÏ£ÍûÖ´ÐÐÄÄЩ²½Ö裿
ÎÞÂÛºÎʱ±àд´¦ÀíʼþµÄ ActionScript ´úÂ룬¶¼»á°üÀ¨ÕâÈý¸öÔªËØ£¬²¢ÇÒ´úÂ뽫×ñÑÒÔÏ»ù±¾½á¹¹ £¨ÒÔ´ÖÌåÏÔʾµÄÔªËØÊÇÄú
½«Õë¶Ô¾ßÌåÇé¿öÌîдµÄռλ·û£©£º
function eventResponse(eventObject:EventType):void
{
// Actions performed in response to the event go here.
}
eventSource.addEventListener(EventType.EVENT_NAME, eventResponse);
´Ë´úÂëÍê³ÉÁ½ÏîÈÎÎñ¡£Ê×ÏÈ£¬¶¨ÒåÒ»¸öº¯Êý£¬ÕâÊÇÖ¸¶¨ÎªÏìӦʼþ¶øÒªÖ´ÐеĶ¯×÷µÄ·½·¨¡£½ÓÏÂÀ´£¬µ÷ÓÃÔ´¶ÔÏóµÄ
addEventListener() ·½·¨£¬Êµ¼ÊÉϾÍÊÇΪָ¶¨Ê¼þ “¶©ÔÄ”¸Ãº¯Êý£¬ÒԱ㵱¸Ãʼþ·¢Éúʱ£¬Ö´Ðиú¯ÊýµÄ²Ù×÷¡£ÎÒÃǽ«¸üΪÏêϸ
µØÌÖÂÛÆäÖÐÿ¸ö²¿·Ö
Ïà¹ØÎĵµ£º
Ò»¡¢¹úÍâÕ¾µã
1.×ÊÔ´ÍøÕ¾
Adobe Labs
£ºÕâ¸ö²»ÓÃÎÒ˵ÁË°É¡£
Flex.org
£º¹Ù·½µÄFlexÍøÕ¾£¬»ù±¾ÉÏÓ¦Óо¡ÓС£
Flex Developer Center
£ºAdobe Flex¿ª·¢ ÕßÖÐÐÄ£¬¾³£»áÓÐһЩºÃµÄ½Ì³Ì³öÏÖ¡£
FlexBox
£ºÒ»¸öÊÕ¼¯ÁËÍøÉϺܶ࿪Դ ×é¼þµÄÕ¾µã£¬Êǽø½×ѧϰµÄºÃ°ïÊÖ¡£
FlexLib
£ºGoogle Code ÉÏÃæÒ»¸ö¿ªÔ´Flex×é ......
adobeµÄas3libÀïÃæÓиöJSON¿â£¬µ«ÊDz»ºÃÓ㬸ñʽ¶¨ÒåÒªÇó·Ç³£Ñϸñ£¬¾³£»áÓÐЩĪÃûÆäÃîµÄ´íÎó£¬Èç¹û²»ÊǷdz£±ØÒª·ñ´«ÊäÊý¾Ý»¹ÊÇʹÓÃXML±È½Ï¿É¿¿Ò»µã£¬ÄܼõÉÙһЩ²»±ØÒªµÄµ÷ÊÔʱ¼ä¡£
1¡¢Îı¾¶¨Òåkey¡¢valueÖµ¶¼Òª¼ÓË«ÒýºÅ£¬keyÖµ±ØÐë¼Ó£¬value½¨Òé¼ÓÉÏ£»
2¡¢ÎðʹÓõ¥ÒýºÅ´úÌæË«ÒýºÅ£»
3¡¢ÖÐÎıàÂë±ØÐëÑϸñ²âÊÔ£¬¼´Ê¹Í¬Ê ......
Ò»ÊÇ»ÃæmxmlÖÐÖ±½ÓǶÈ룬ºÜÏñjsµÄʹÓ÷½Ê½
Èç
<mx:Script>
<![CDATA[
public function showTxt():void
{
mytxt.text="Hello Flex baby!"
}
]]>
< ......
Flex Chart ËäÈ»ÓÐÌṩÍêÕûµÄÊÔÓù¦ÄÜ
²»¹ý±àÒëÍê³ÉµÄͼ±í»á¼ÓÉÏˮӡ
“Flex Data Visualization Trial”µÄ×ÖÑù¡£
¼ÈÈ»ÊÇ AS£¬ÄÇÊÂÇé¾Í¼òµ¥ÁË
Ö»ÒªÔÚ Flex Project 內×ÔÐмÓÉÏÒÔÏ Class£º
package
mx.charts.chartClasses {
public class ChartsLicenseHandler {
}
}
È»ºó ......