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

Flex¿É¿ò選µÄTileList

ÖÆ×÷¿ÉÓÃÊó標¿ò選µÄTileList£¬Òò為時間±È較´Ò棬ËùÒÔ´í©ÔÚËùÄÑÃ⣬Çë´ó¼Ò²»Áߴͽ̡£ÁíÍâС²¿·Ö´úÂë²Î¿¼×ÔÍøÉÏ¡£Ö±½ÓÉÏ´úÂë¡£
package
{
import flash.events.Event;
import flash.events.MouseEvent;
import flash.geom.Point;

import mx.controls.TileList;
import mx.controls.listClasses.TileBaseDirection;
import mx.core.UIComponent;
import mx.events.FlexEvent;
import mx.events.ScrollEvent;

[Style(name="nVerticalGap", type="String", inherit="no")]
[Style(name="nHorizontalGap", type="String", inherit="no")]

public class CustomTileList extends TileList
{
/**
* ´¹Ö±間¾à
*/
private var _verticalGap:Number = 0;
/**
* ˮƽ間¾à
*/
private var _horizontalGap:Number = 0;
/**
* µ×²¿±³¾°
*/
private var bg:UIComponent;
/**
* 選圖ui
*/
private var selectBox:UIComponent;
/**
* 開ʼ畫圖µÄÂä點
*/
private var startPoint:Point;
/**
* Æð點index×ø標
*/
private var startIndexPoint:Point;
/**
* 終點index×ø標
*/
private var endIndexPoint:Point;
/**
* ¿ò選時Êó標離開邊¿òµÄx軸¾à離
*/
private var offsetX:Number = 0;
/**
* ¿ò選時Êó標離開邊¿òµÄy軸¾à離
*/
private var offsetY:Number = 0;
/**
* ԭʼˮƽscrollbarλÖÃ
*/
private var oHScrollPosition:Number = 0;
/**
* ԭʼ´¹Ö±scrollbarλÖÃ
*/
private var oVScrollPosition:Number = 0;

public function CustomTileList()
{
addEventListener(FlexEvent.CREATION_COMPLETE, initBgHandler);
addEventListener(Event.ENTER_FRAME, autoScrollHandler);
}

/**
* ³õʼ»¯
* @param evt
*
*/
private function initBgHandler(evt:FlexEvent):void
{
initStyle();
bg = new UIComponent();
with(bg.graphics){
beginFill(0x0


Ïà¹ØÎĵµ£º

flex chart µÄÏà¹ØÊôÐÔ×÷ÓÃ


1.       chart£º×ÜÌå¿ØÖÆ
2.      
series£º¶¨ÒåʲôÑùµÄÊý¾ÝÀ´Õ¹Ê¾£¬x,yÖá·Ö±ðÏÔʾʲôÊý¾Ý¡£ËüÊǰüº¬ÏàÓ¦µÄseriesItemµÄArray¡£SeriesItem·â×°Á˼«Öµ
µã£¬Ìî³ä·½Ê½£¬xyÊý¾ÝµÈ¡£
3.       series ÖÐdisplayNameÊôÐÔ¿ ......

ѧϰFlex µÄ³£Óü¼ÊõÍøÖ·ÊÕ¼¯

ÖÐÎÄÔÚÏß°ïÖúÎĵµ£ºhttp://livedocs.adobe.com/flex/3_cn/langref/  
http://examples.adobe.com/flex3/componentexplorer/explorer.html¡£
ÆäËûÍøÕ¾£º
http://bbs.actionscript3.cn
http://www.airia.cn
http://www.anyflex.cn/bbs
http://www.5uflash.com/flex-air
http://www.52ria.com
http:// ......

flex ǰ̨µ¼³öExcel

/**=========main.mxml=========*/
/* µ¼³öexcel */
private function exp():void{
if(dgEnterprise.dataProvider==null){
Alert.show("Êý¾ÝΪ¿Õ£¬ÎÞ·¨µ¼³öexcel","ÓÑÇéÌáʾ");
}else{
ExportExccel.loadDGInExcel(dgEnterprise,"/ssfxSystem/excelexport.jsp?tableName=ÆóÒµÐÅÏ¢");
}
}
/**===== ......

flex builder4ÐÞ¸ÄswfÊä³ö·¾¶½øÐжàÏîÄ¿ÅäºÏ

ÏÖÔÚÓÐÒ»¸ö¹¤³ÌÊÇjava web project£¬»¹ÓÐÒ»¸ö¹¤³ÌÊÇflex¹¤³Ì£¬°²×°µÄÊÇflex builder 4Õýʽ°æ¡£·¢ÏÖÔÚÐÞ¸Äflex¹¤³ÌÊôÐԵĹ¹½¨Â·¾¶Ê±£¬Ð޸Ľá¹û²»Äܱ£´æ¡£ ½â¾ö°ì·¨£º ÔÚ.actionScriptPropertiesÎļþÖУ¬ÕÒµ½Â·¾¶Ö±½ÓÐ޸ġ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ