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

ÿÌìѧһµãFlex£¨1£©£ºDataGrid×é¼þ·ÖÒ³

    ÓÐÒ»¶Îʱ¼äûÓнӴ¥flex £¬Óе㲻Ôõ»áÓÃflex¡£»¹ºÃ×î½üŪÁËһϷÖÒ³µÄ¶«Î÷£¬¶Ôxml½øÐзÖÒ³»¹ÊÇͦ¹ÜÓ᣽èÓÃ֮ǰ·â×°ºÃµÄÀà¾ÓÈ»½â¾öºÜ¾Ã֮ǰµÄÎÊÌâ¡£¶ÔDataGrid µÄ×é¼þ·ÖÒ³£¬¿ÉÒÔͨ¹ý¶ÔXML½øÐÐһЩ´¦Àí£¬¿´ÆðÀ´ÕæµÄ·ÖÒ³ÁË¡£Êµ¼ÊÉÏÖ»ÊÇÒ»ÖÖ´í¾õ¡£
Ê×ÏÈÏÈ×¼±¸Ò»¸öÊý¾ÝÔ´XML¡£´ó¸ÅÒÔÒ»¸öÔ±¹¤×÷ÐÕÃû ÄêÁäºÍÐÔ±ð ΪÊý¾ÝÔ´¡£Õâ¸öXML °üº¬ºÜ¶àÌõÔ±¹¤µÄÐÅÏ¢¡£ÏÂÃæÖ»ÊÇÏÔʾ2Ìõ£¬¿ÉÒÔ×Ô¼º½øÐг䡣
<?xml version="1.0" encoding="UTF-8"?>
<member>

<worker>
<name>jim</name>
<age>12</age>
<sex>man</sex>
</worker>
<worker>
<name>lili</name>
<age> 23</age>
<sex> girl</sex>
</worker>
</member>
//ÓÃÓÚ¼ÆËãµÄ·ÖÒ³Àà¡£°üº¬·ÖÒ³µÄ·½Ê½£¬µ±Ç°Ò³£¬ÏÔʾ·ÖÒ³ÊýµÄ¡£
package com.web
{
//·ÖÒ³Àà
public class Page
{
private var max:int;
private var pagenum:int;
private var currentPages:int;
public function Page()
{
}
//ÉèÖ÷ÖÒ³ÏîÊý
public function set MaxRow(max:int):void
{
this.max=max;
}
//»ñÈ¡·ÖÒ³ÏîÊý
public function get MaxRow():int
{
return max;
}

public function set currentPage(value:int):void
{

this.currentPages=value;
}

public function get currentPage():int
{
return currentPages;

}


//»ñÈ¡×ܵķÖÒ³Êý£¬ÀûÓÃÇóÓàµÄ·½Ê½ÅжÏÊDz»ÊÇÕûÒ³
public function getPageNumber(total:int):int
{
if (total%MaxRow==0)
{
pagenum=total/MaxRow;
} else
{
pagenum=int(total/MaxRow)+1;
}
return pagenum;
}

public function get TotalPage():int
{
return pagenum;
}

//ÏÔʾҳÂë
public function getPage():String
{
var str:String=(currentPage+1)+"/"+TotalPage;
return str;
}



}
}
ÏÂÃæΪMXML¡£
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>


Ïà¹ØÎĵµ£º

flex »ñµÃ¿Í»§¶ËÐÅÏ¢


flash.system. Capabilities.os;//¿Í»§¶Ëϵͳ°æ±¾
flash.system.Capabilities.language;//¿Í»§¶ËÓïÑÔ
flash.system.Capabilities.version;//²¥·ÅÆ÷°æ±¾
flash.system.Capabilities.playerType;//²¥·ÅÆ÷ÀàÐÍ
flash.system.Capabilities.screenResolutionX&Y;//·Ö±æÂÊ ......

È¥µôFlexÀ¶É«Ñ¡ÖÐ״̬

 Æäʵһ°ãµÄÇé¿öÏÂÊDz»»áÓõ½ÕâÖÖÇé¿öµÄ£¬Ò»°ãÔÚ³ÌÐòÀ±ÈÈçÑ¡ÖÐÒªÌîдµÄÏîÄ¿£¬¶¼Ï²»¶ÓÐÒ»¸öÑ¡ÖеÄ״̬£¬µ«ÊÇÏÖÔÚÎÒÃÇÀ´¸ö·´ÆäµÀ¶øÐÐ,Èç¹ûÎÒ²»ÏëÒªÕâ¸ö״̬¸ÃÔõô°ìÄØ?
      ²Î¿¼ÁËЩ×ÊÁÏ,ÆäʵҲ¼òµ¥,Óкü¸ÖÖ·½·¨£¬µ«ÊÇ·¢ÏÖÁËÒ»¸ö×îÓÐÓõķ½·¨,Ê×ÏÈÎÒÃÇÔÚÎę̀ÉÏËæÒâ·Å¼¸¸öTEXTINPUT ......

flex¹ú¼Ê»¯

£¨ÉÏ£©
µ±ÒªÊ¹Óò»Í¬ÓïÑԵİ汾µÄʱºò£¬±ãÐèÒªÁËÓ¦ÓóÌÐòµÄ¹ú¼Ê»¯¡£
¹ú¼Ê»¯²»µ¥Ö¸×Ö·û´®µÄ¹ú¼Ê»¯£¬»¹ÓÐǶÈëʽ×ÊÔ´£¨Í¼Æ¬£©µÄ¹ú¼Ê»¯£¬½Å±¾ÀඨÒåµÄÒýÓá£ÔÚ³ÌÐòµ±ÖÐʹÓùú¼Ê»¯µÄÒªµã°üÀ¨Á˱àд×ÊÔ´Îļþ£¬²ÎÊýµÄÉèÖ㬱¾µØ»¯Ïà¹ØµÄflex¿ò¼ÜÄÚÈÝ¡£
×ÊÔ´ÎļþÊÇÓúó׺ÃûΪ“.properties”½áÊøµÄÎļþ£¬ÒÔÒ»ÖÖ¼üÖµµÄÐ ......

ÔÚflashÖÐÃüÃûµÄmcʵÀýÔÚflex±à¼­»·¾³Ï·ÃÎÊ

ÔÚflex¿ª·¢»·¾³Öбàдas3´úÂëÊǺܷ½±ãµÄ£¬½èÖúflex¿ª·¢»·¾³´úÂ붼ÓÐ×Ô¶¯Ìáʾ¹¦ÄÜ£¬µ«ÊÇÔÚ×öflashÓÎÏ·µÄʱºò£¬ÔÚÉæ¼°µ½¶Ô»°¿òµÄʱºò£¬ÎÒÓöµ½Ò»¸öºÜ¼¬ÊÖµÄÎÊÌ⣬¾ÍÊÇÔÚÃÀ¹¤ÓÃflash cs²¼¾ÖºÃÁ˵ĽçÃ棬ÎÒÔÚ½çÃæÉÏÃüÃûÁËʵÀý£¨ÈçtextfieldÀàÐÍ var nameText:String£©£¬ÔÚµ¼³öÕâ¸öÀࣨguestDialog£©µÄʱºò(Õâ¸öÀà¼Ì³Ð×ÔMovieClip ......

FLEX SDK Ô´Âë

Flex
4 SDKÔ´ÂëdzÎö£¡

Èç´ó¼ÒҪתÔØ£¬Çë±£Áô±¾È˵İæȨ:
/*
*Description:PV3DÀà¼Ì³ÐÌåϵ½á¹¹
*Auther:³ç³ç-ÌìÕæµÄºÃÀ¶°¡
*MSN:chongchong2008@msn.com
*Blog:chongchong2008
*Dates:2009-06-02
*Copyright:ChongChong2008
YiChang HuBei China
*/
Flex 4 SDKÔ´ÂëdzÎö£¡
×î½üÏÂÁËFlex 4 SDK £¨flex_sd ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ