12ÌõÓÐÓõÄFlex´úÂë
1.¸´ÖÆÄÚÈݵ½ÏµÍ³¼ôÌù°å
System.setClipboard(strContent);
2.¸´ÖÆÒ»¸öArrayCollection
//dummy solution( well, it works )
var bar:ArrayCollection = new ArrayCollection();
for each ( var i:Object in ac ){
bar.addItem( i );
}
// fantastic ! //
var bar:ListCollectionView = new ListCollectionView( ListCollectionView( ac ).list );
3.´ò¿ªÒ»¸öÐÂä¯ÀÀÆ÷´°¿Ú
navigateToURL(new URLRequest('http://ntt.cc'), '_blank');
4.Ë¢ÐÂä¯ÀÀÆ÷
navigateToURL(new URLRequest("javascript:location.reload();"),"_self");
5.¹Ø±Õä¯ÀÀÆ÷
navigateToURL(new URLRequest("javascript:window.close()"),"_self");
6.ÉèÖÃAlert ´°¿ÚµÄ±³¾°ÎªÍ¸Ã÷
Alert
{
modalTransparency:0.0;
modalTransparencyBlur:0;
}
7.È¡Ëæ»úÑÕÉ«
lbl.setStyle('color', 0xffffff*Math.random());
8.Çå³ý×Ó´®×ó²à¿Õ¸ñ
public function LTrim(s : String):String
{
var i : Number = 0;
while(s.charCodeAt(i) == 32 || s.charCodeAt(i) == 13 || s.charCodeAt(i) == 10 || s.charCodeAt(i) == 9)
{
i++;
}
return s.substring(i,s.length);
}
9.Çå³ý×Ö´®ÓÒ²à¿Õ¸ñ
public function RTrim(s : String):String
{
var i : Number = s.length - 1;
while(s.charCodeAt(i) == 32 || s.charCodeAt(i) == 13 || s.charCodeAt(i) == 10 ||s.charCodeAt(i) == 9)
{
i--;
}
return s.substring(0,i+1);
 
Ïà¹ØÎĵµ£º
<?xml version="1.0"?>
<!-- Simple example to demonstrate the Alert control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script& ......
Ç°¼¸ÌìÒ»Ö±±»ÎªÊ²Ã´ÎÒµÄpdfÎļþÎÞ·¨ÔÚair³ÌÐòÖÐÏÔʾ³öÀ´·³×Å.
ÔÚ¼¸¸ö²»Í¬µÄÂÛ̳·¢ÁËÌû×Ó,¿ÉÊǻشðµÄÈËÁÈÁÈÎÞ¼¸, ÎÒ¶¼»³ÒÉÊDz»ÊÇÎÒµÄÎÊÌâÌ«¼òµ¥ÁË,´ó¼Ò¶¼Ã»ÓÐÈ¥»Ø´ðµÄÓûÍû, ±Ï¾¹ÎҲŽӴ¥flex.
½ñÌìÔçÉÏÖÕÓÚÏë³öÁË´ð°¸:
ÔÀ´±ØÐëÔÚÕýÈ·°²×°ÁËair³ÌÐòÖ®ºó²ÅÄܼÓÔØpdfÎļþ.
ÎҵijÌÐòûÓдí,´íÔÚÎÒÊÇÔÚFlex builderÏÂÔËÐÐµÄ ......
×÷Ϊһ¸ö²»ÈëÁ÷µÄflex¿ª·¢ÈËÔ±×ܽáһϲ»ÈëÁ÷µÄ¸ÐÎò¡£
ÎÒÒ»¶¨Òª¼Çס£¬asÖеıäÁ¿µÄ×÷Ó÷¶Î§Ö»ÓÐÁ½ÖÖ£¬functionºÍclass,ËùÒÔÒªÏëÓñհü¾ÍÐèÒªÒ»¸öcreateFunctionµÄ¶«Î÷²ÅÐУ¬²»ÒªÍýÏëÔÚforÑ»·ÖÐÓñհüÁË¡£¿´ÁËÒ»ÏÂas3µÄ²Î¿¼£¬·¢ÏÖËüµÄÇ°ÊÀºÍlua»¹ÕæÏñ£¬as3µÄ¼Ì³ÐÆäʵ»¹ÊÇprototypeÀ´×öµÄ£¬¾ÍÊÇluaµÄÔª±íÁË£¬ ......
2ÖÖ·½·¨£¬
Ò»£¬ÀûÓÃjs¶ÁÈ¡ð¤Ìù°æ£º
var content = clipboardData.getData("Text");
document.getElementById("${application}").getClipboardData(content);
¶þ£¬Ö±½Ó¸´ÖƵ½datagrid
ÔÚDataGridÖУ¬µ±°´ÏÂCtrl¼üʱ£¬ÎÒÃÇ´´½¨Ò»¸öÒþ²ØµÄÎı¾£¨TextField£©×é¼þ£¬²¢½«½¹µã¶¨Î»¸øËü£¬ÕâÑù£¬ÎÒÃǾͿÉÒÔ½ÓÊÜÈκÎͨ¹ýCtrl+VÕ ......
Flex Project Nature/Add Flex Project Nature Ö´Ðкó³öÏÖÒÔÏ´íÎó£¬
Severity and Description Path Resource Location Creation Time Id
Server SDK: Directory does not contain a Flex SDK.
ÐèÒªÔÚ¹¤³ÌÊôÐÔµÄFlex co ......