Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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://52friends.com'), '_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);
}
//10.Çå³ý×Ö´®×óÓҵĿոñ
public function Trim(s : String):String
{
return LTrim(RTrim(s));
}
//11.»ñÈ¡Êý¾ÝÀàÐÍ
getQualifiedClassName(data)
//12.Éú³ÉËæ»ú×Ö·û´®.
private function GenerateCheckCode():String
{
//init
var ran:Number;
var number:Number;
var code:String;
var checkCode:String ="";
//get 4 radom
for(var i:int=0; i<4; i++)
{
ran=Math.random();
number =Math.round(ran*10000); //get result like 0.1234
if(number % 2 == 0)


Ïà¹ØÎĵµ£º

Flex (actionscript3.0)×Ö·û´®´¦ÀíÀà

Flex (actionscript3.0)×Ö·û´®´¦ÀíÀàMyStringUtils.as
×öÏîÄ¿µÄ¹ý³ÌÖУ¬ÄÑÃâÒªÓõ½Ò»Ð©¸ö¹«¹²µÄ´¦ÀíÀ࣬±ÈÈç ×Ö·û´® ÈÕÆÚ ¸ñʽ»¯ Êý×éµÈ¡£±¾ÈËдµÄÒ»¸ö×Ö·û´®´¦ÀíÀ࣬ϣÍû´ó¼ÒÖ¸µã½»Á÷¡£
¹¦ÄÜ°üÀ¨£º
1,´¦ÀíxmlÏà¹ØµÄ×Ö·û£¬ÒòΪÔÚ¸úºǫ́java´ò½»µÀʱ£¬Õâ¸öÎÊÌâ¾­³£Óöµ½:°ÑxmlÀïÃæµÄÌØÊâ×Ö·ûת»»³ÉÌæ´ú×Ö·û
2,ÅжϿÕ
3, ......

¹ØÓÚflexÔÚ×öÏîÄ¿ÖÐÓöµ½µÄÎÊÌâ

×î½üÓÃflexÀ´×öÒ»¸ö¹¤×÷Á÷¶¨Òå±à¼­Æ÷¡£ÔÚÍøÉÏÕÒÁ˺ܶàÀý×Ó£¬Ò²Ñ§µ½Á˲»ÉÙ¶«Î÷¡£
flexÊÇadobe¹«Ë¾³öµÄ¶ÔÓÚflashµÄÒ»¸ö²úÆ·¡£¶ÔÓÚѧ¹ýjavaµÄÈËÀ´ËµÔÙ¼òµ¥²»¹ýÁË¡£ÕâÀïÒ²²»¶à˵ÁË£¬¾Í¶ÔÓÚÕ⼸ÌìÔÚÏîÄ¿ÖÐÓöµ½µÄÎÊÌâ̸һÏÂ×Ô¼ºµÄ½â¾ö·½·¨ÓëÈÏʶ¡£
Ò»¡¢flexÖн«×Ô¼ºµÄÒ»¸öCanvas±ä³ÉΪͼƬ£¬±£´æµ½±¾µØ¡£
 var bitmapData ......

flexÊý¾Ý°²È«ÐÔ

³öÓÚ°²È«ÐÔ¿¼ÂÇÂú×ãÒÔÏÂÌõ¼þÖ®Ò»Flash Player²ÅÄÜ·ÃÎÊÔ¶³ÌÊý¾Ý£º
Ò»£ºÓ¦ÓóÌÐòËù±àÒëµÄswfÎļþÓëÔ¶³ÌÊý¾ÝÔ´ÔÚͬһ¸öÓòÖÐ
¶þ£ºÊ¹ÓôúÀí£¨Proxy£©£¬ÇÒswfÎļþºÍ´úÀíÔÚÏàͬµÄ·þÎñÆ÷ÉÏ¡£»òÕßʹÓÃweb½Å±¾ÓïÑÔÈçJSP£¬PHP£¬ASP´´½¨¼òµ¥µÄÊý¾Ý´úÀí
Èý£º°²×°crossdomain.xmlÎļþλÓÚÊý¾ÝÔ´ËÞÖ÷µÄweb·þÎñÆ÷ÉÏ ......

Flex Chart ¼¼ÇÉ ÒƳý¸¡Ë®Ó¡

Flex Chart ËäÈ»ÓÐÌṩÍêÕûµÄÊÔÓù¦ÄÜ
²»¹ý±àÒëÍê³ÉµÄͼ±í»á¼ÓÉÏˮӡ
 “Flex Data Visualization Trial”µÄ×ÖÑù¡£
¼ÈÈ»ÊÇ AS£¬ÄÇÊÂÇé¾Í¼òµ¥ÁË
Ö»ÒªÔÚ Flex Project 內×ÔÐмÓÉÏÒÔÏ Class£º
package
mx.charts.chartClasses {
 public class ChartsLicenseHandler {
 }
}
È»ºó ......

Êý¾ÝÀàÐÍ˵Ã÷£¨FLEX£©


»ùÔªÊý¾ÝÀàÐÍ°üÀ¨ Boolean¡¢int¡¢Null¡¢Number¡¢String¡¢uint ºÍ void¡£ActionScript ºËÐÄÀ໹¶¨ÒåÏÂÁи´ÔÓÊý¾ÝÀàÐÍ£º
Object¡¢ Array¡¢Date¡¢Error¡¢Function¡¢RegExp¡¢XML ºÍ XMLList¡£ 
Boolean Êý¾ÝÀàÐÍ 
Boolean Êý¾ÝÀàÐÍ°üº¬Á½¸öÖµ£ºtrue ºÍ false¡£¶ÔÓÚ Boolean ÀàÐ͵ıäÁ¿£¬ÆäËüÈκÎÖµ¶¼ÊÇÎÞЧµÄ¡£Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ