Flex¾ÑéС¼Ç¼ (ÿÌì¼Ç¼һµãµãing...)
1. releaseʱȥµôËùÓÐtraceÐÅÏ¢ºÍloggerÐÅÏ¢£¬·ñÔòÓ°ÏìÐÔÄÜ
2. Èç¹û±¨ÎÞ·¨·ÃÎʱ¾µØÎļþ»òswf ÔÚcompileÀïÃæд -use-network=false
3. ʵÏÖcomponentÕæÕýÒþ²Ø³ýÁËÉèÖÃvisible=falseÍ⻹ÐèÒªÉèincludeInLayout = false
4. ÉèÊÖÐÍÓÐʱ³öÀ´ÉèbuttonMode="true" useHandCursor="true" »¹ÒªÉèmouseChildren="false"
5. forÑ»·Ê±ÒªÓÃ
var len:int = array.length;
for(var i:int = 0; i<len; i++)
{
//i ²»ÒªÓÃnumber£¬ len±äÁ¿ÍâÌá
}
6. IEÖÐFLASHÁ´½ÓÇøÓòÊó±êÉÁ , ÔÚFLASHµÄÊôÐÔ²ÎÊýÖмÓÉÏÒÔÏÂÁ½¾äÖÐÈÎÒâÒ»¾ä¶¼¿ÉÒÔ½â¾ö
<param name="wmode" value="opaque">
<param name="wmode" value="transparent">
7. ÓÃi>>1 Ìæ´ú i/2
8. ´´½¨Object Óà var obj:Object = {} ´úÌæ var obj:Object = new Object(); ËÙ¶ÈÌáÉý1.5±¶
´´½¨Array Óà var arr:Array = [] ´úÌæ var arr:Array = new Array(); ËÙ¶ÈÌáÉý3.5±¶
ArrayCollectionµÄ´´½¨·Ç³£µÄÂý£¬ºÄʱ´ó¸ÅÊÇvar arr:Array = []µÄ100±¶
9. Ñ»·ÖУ¬³£Á¿ÒªÌá³öÀ´£¬ÀýÈ磺
var constant:String= MouseEvent.CLICK
for(var i:Number=0; i<100000; i++)
{
tmpVar = constant£»
}
10. flex¼ÓÔØÍêmoduleºó£¬moduleÀïÃæµÄ¶«Î÷Èç¹ûÊÇÓÃflashµÄ×é¼þ£¬ÓÐʱ»á³öÏÖflash×é¼þ²»ÏÔʾ£¬ÐèÒªµ÷ÓÃvalidateNow()
11. air¹¤³ÌÖУ¬×Ô¶¨Òåalert¸úflex¹¤³Ì²»Ò»Ñù£¬flex¿ÉÒÔApplication.application.addChild(alert)£¬airÔÚ¿ª¶à´°ÌåʱҪWindow.getWindow(obj).addChild(alert)£¬ objÊÇ´«½øÀ´µÄµ±Ç°¶ÔÏó
12. Íⲿ¶ÁÈ¡Îı¾Òª¿¼ÂÇתÒå×Ö·ûµÄÎÊÌ⣨±ÈÈç »»ÐÐ\n»á±ä³É\\n ÒªÌ滻ϣ©
13. ContainerµÄborderStyleÊôÐÔÉèΪsolid£¬cornerRadius²Å»áÓÐЧ¹ûÁË¡£
14. .actionScriptProperties Õâ¸öÎļþÓÃÀ´ÅäÖñàÒëµÄÊôÐÔ£¬³öÏÖĪÃûÆäÃîµÄÎÊÌâµÄ»° ²»·Á¿´¿´Õâ¸öÎļþ
Ïà¹ØÎĵµ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" fontSize="12">
<mx:Script>
<!--[CDATA[
import mx.controls.Alert;
public var newBuildMenuItem:ContextMenuItem;//²Ëµ¥Ïî±äÁ¿
private ......
½ñÌ쿪ʼѧϰflexÁË¡£Å¼ÓõÄÔÚÍøÉÏ¿´Á˺ܶà±ðÈ˵IJ©¿Í¡£¸Ðл´ó¼ÒµÄÎÞ˽¡£ ËùÒÔ¾ö¶¨Ò²°Ñ×Ô¼ºÑ§Ï°µÄ³É¹ûºÍÐĵ㬻¹ÓÐһЩ
ÓÐÓõÄÎÄÕ·¢±íµ½²©¿ÍÖС£ ´íÎóµÄµØ·½»¹ÇëÖ¸³ö¸ÄÕý¡£Ð»Ð»£¡
×Ô¼ºµÄµÚһƪÎÄÕÂ
תÔØһƪ¸Õ¸ÕÓõ½µÄÎÄÕÂ
FlexÌøתµ½JSP»òÕßÆäËû· ......
var request:URLRequest = new URLRequest('lx2.html');
navigateToURL(request,"_top");
"_top" ÀàËÆÓÚhtmlÖеÄtarget
"_self" Ö¸¶¨µ±Ç°´°¿ÚÖеĵ±Ç°Ö¡¡£
"_blank" Ö¸¶¨Ò»¸öд°¿Ú¡£
"_parent" Ö¸¶¨µ±Ç°Ö¡µÄ¸¸¼¶¡£
"_top" Ö¸¶¨µ±Ç°´°¿ÚÖеĶ¥¼¶Ö¡¡£
function check(us ......
ÔÌû£ºhttp://hi.baidu.com/flex2/blog/item/3501c1622af2b1dde6113aef.html
ÏÖÔÚ²»ÉÙÈË¿ªÊ¼¹Ø×¢²¢Ñ§Ï°FlexÁË£¨ÖÁÉÙ±ÈÒÔÇ°¶àÁË£©£¬µ«ÊÇÏÖÔÚ¹ØÓÚFlexµÄ×ÊÁϲ¢²»¶à£¬¹úÄÚµÄ×ÊÁϾ͸üÉÙÁË£¬¶øÇÒFlexµÄÂÛ̳ÈËÆø¶¼²îµÄºÜ£¬Ò»ÑÛÍûȥȫ¶¼ÊÇÌáÎÊÌû×Ó£¬»ØÌû³¬¹ý5¸öµÄÁÈÁÈÎÞ¼¸£¬²Ò²»È̶ð¡¡£ÎÒ·ÒëһЩ¶«Î÷Ò²ÊÇΪÁËÔö¼ÓÖÐÎÄѧϰ×ÊÁÏ£¬ ......
ÒòΪ×î½ü×öÒ»¸öDIYµÄÉè¼ÆÆ÷£¬ÐèÒªÈÃÓû§Ñ¡Ôñij¸ö×ÖÌ壬²¢ÇÒÖ§³ÖÐýת£¬ÍÏÀµÈ²Ù×÷¡£Ö±½ÓʹÓÃÎı¾¿òÊDz»Ðеģ¬ÒòΪflex²»Ö§³Ö×ÖÌåµÄÖ±½ÓÐýת£¬´ó¼Ò¿ÉÒÔ³¢ÊÔһϣ¬Èç¹ûÑ¡ÔñÁËtext¿Ø¼þ£¬ÎÄ×־Ϳ´²»µ½ÁË£¬Óиö°ì·¨ÊÇ°ÑÎÄ×ÖembedǶÈëµ½swfÖÐÈ¥£¬ÕâÑù¾ÍÖ§³ÖÁË¡£
µ«ÊÇÓ¢ÎÄ»¹ºÃ£¬×ÖÌåÎļþ²»´ó£¬ÖÐÎĵĻ°¶¯éü¼¸¸öM£¬Õâ¸ö×ö·¨ºÜ²»ÏÖʵ ......