FlexµÄÊý¾ÝÀàÐÍ
• String£ºÒ»¸öÎı¾Öµ£¬ÀýÈ磬һ¸öÃû³Æ»òÊéÖÐijһÕµÄÎÄ×Ö
• Numeric£º¶ÔÓÚ numeric ÐÍÊý¾Ý£¬ActionScript 3.0 °üº¬ÈýÖÖÌض¨µÄÊý¾ÝÀàÐÍ£º
• Number£ºÈκÎÊýÖµ£¬°üÀ¨ÓÐСÊý²¿·Ö»òûÓÐСÊý²¿·ÖµÄÖµ
• Int£ºÒ»¸öÕûÊý £¨²»´øСÊý²¿·ÖµÄÕûÊý£©
• Uint£ºÒ»¸ö“ÎÞ·ûºÅ”ÕûÊý£¬¼´²»ÄÜΪ¸ºÊýµÄÕûÊý
• Boolean£ºÒ»¸ö true »ò false Öµ£¬ÀýÈ翪¹ØÊÇ·ñ¿ªÆô»òÁ½¸öÖµÊÇ·ñÏàµÈ
¸´ÔÓһЩµÄ£º
• MovieClip£ºÓ°Æ¬¼ô¼Ôª¼þ
• TextField£º¶¯Ì¬Îı¾×ֶλòÊäÈëÎı¾×Ö¶Î
• SimpleButton£º°´Å¥Ôª¼þ
• Date£ºÓйØʱ¼äÖеÄij¸öƬ¿ÌµÄÐÅÏ¢£¨ÈÕÆÚºÍʱ¼ä£©
Ïà¹ØÎĵµ£º
adobeµÄas3libÀïÃæÓиöJSON¿â£¬µ«ÊDz»ºÃÓ㬸ñʽ¶¨ÒåÒªÇó·Ç³£Ñϸñ£¬¾³£»áÓÐЩĪÃûÆäÃîµÄ´íÎó£¬Èç¹û²»ÊǷdz£±ØÒª·ñ´«ÊäÊý¾Ý»¹ÊÇʹÓÃXML±È½Ï¿É¿¿Ò»µã£¬ÄܼõÉÙһЩ²»±ØÒªµÄµ÷ÊÔʱ¼ä¡£
1¡¢Îı¾¶¨Òåkey¡¢valueÖµ¶¼Òª¼ÓË«ÒýºÅ£¬keyÖµ±ØÐë¼Ó£¬value½¨Òé¼ÓÉÏ£»
2¡¢ÎðʹÓõ¥ÒýºÅ´úÌæË«ÒýºÅ£»
3¡¢ÖÐÎıàÂë±ØÐëÑϸñ²âÊÔ£¬¼´Ê¹Í¬Ê ......
Flex (actionscript3.0)×Ö·û´®´¦ÀíÀàMyStringUtils.as
×öÏîÄ¿µÄ¹ý³ÌÖУ¬ÄÑÃâÒªÓõ½Ò»Ð©¸ö¹«¹²µÄ´¦ÀíÀ࣬±ÈÈç ×Ö·û´® ÈÕÆÚ ¸ñʽ»¯ Êý×éµÈ¡£±¾ÈËдµÄÒ»¸ö×Ö·û´®´¦ÀíÀ࣬ϣÍû´ó¼ÒÖ¸µã½»Á÷¡£
¹¦ÄÜ°üÀ¨£º
1,´¦ÀíxmlÏà¹ØµÄ×Ö·û£¬ÒòΪÔÚ¸úºǫ́java´ò½»µÀʱ£¬Õâ¸öÎÊÌâ¾³£Óöµ½:°ÑxmlÀïÃæµÄÌØÊâ×Ö·ûת»»³ÉÌæ´ú×Ö·û
2,ÅжϿÕ
3, ......
×î½üÓÃflexÀ´×öÒ»¸ö¹¤×÷Á÷¶¨Òå±à¼Æ÷¡£ÔÚÍøÉÏÕÒÁ˺ܶàÀý×Ó£¬Ò²Ñ§µ½Á˲»ÉÙ¶«Î÷¡£
flexÊÇadobe¹«Ë¾³öµÄ¶ÔÓÚflashµÄÒ»¸ö²úÆ·¡£¶ÔÓÚѧ¹ýjavaµÄÈËÀ´ËµÔÙ¼òµ¥²»¹ýÁË¡£ÕâÀïÒ²²»¶à˵ÁË£¬¾Í¶ÔÓÚÕ⼸ÌìÔÚÏîÄ¿ÖÐÓöµ½µÄÎÊÌâ̸һÏÂ×Ô¼ºµÄ½â¾ö·½·¨ÓëÈÏʶ¡£
Ò»¡¢flexÖн«×Ô¼ºµÄÒ»¸öCanvas±ä³ÉΪͼƬ£¬±£´æµ½±¾µØ¡£
var bitmapData ......
³öÓÚ°²È«ÐÔ¿¼ÂÇÂú×ãÒÔÏÂÌõ¼þÖ®Ò»Flash Player²ÅÄÜ·ÃÎÊÔ¶³ÌÊý¾Ý£º
Ò»£ºÓ¦ÓóÌÐòËù±àÒëµÄswfÎļþÓëÔ¶³ÌÊý¾ÝÔ´ÔÚͬһ¸öÓòÖÐ
¶þ£ºÊ¹ÓôúÀí£¨Proxy£©£¬ÇÒswfÎļþºÍ´úÀíÔÚÏàͬµÄ·þÎñÆ÷ÉÏ¡£»òÕßʹÓÃweb½Å±¾ÓïÑÔÈçJSP£¬PHP£¬ASP´´½¨¼òµ¥µÄÊý¾Ý´úÀí
Èý£º°²×°crossdomain.xmlÎļþλÓÚÊý¾ÝÔ´ËÞÖ÷µÄweb·þÎñÆ÷ÉÏ ......
Ò»ÊÇ»ÃæmxmlÖÐÖ±½ÓǶÈ룬ºÜÏñjsµÄʹÓ÷½Ê½
Èç
<mx:Script>
<![CDATA[
public function showTxt():void
{
mytxt.text="Hello Flex baby!"
}
]]>
< ......