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
Ïà¹ØÎĵµ£º
·µ»ØÊý¾ÝµÄ¸ñʽresultFormatÓм¸ÖÖÀàÐÍ£¬object¡¢array¡¢xml¡¢flashvars¡¢textºÍe4x£¬Ä¬ÈϵÄÉèÖÃΪobject¡£
RESULT_FORMAT_ARRAY : String = "array"
[] ½á¹û¸ñʽ“array”Óë“object”ÏàËÆ£¬µ«ÊÇÆä·µ»ØµÄֵʼÖÕΪÊý×飻ÕâÑù£¬Èç¹û´Ó½á¹û¸ñʽ“object”·µ»ØµÄ½á¹ûÉв»ÊÇÊý×飬Ôò½«°Ñ¸ÃÏî ......
ÖÐÎÄÔÚÏß°ïÖúÎĵµ£º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:// ......
Ò»¡¢¹úÍâÕ¾µã
1.×ÊÔ´ Àà
Adobe Flex 2 Component Explorer £º ¹Ù·½µÄ£¬Õ¹Ê¾Á˸÷ÖÖ×é¼þ µÄÓ÷¨ £¬ÈëÃÅ ±Ø¿´¡£
CFlex £ººÜºÃµÄÒ»¸öFlex×ÊÔ´Õ¾µã£¬°üÀ¨½Ì³Ì £¬ÐÂÎÅ£¬×ÊÔ´Õ¾µã¡¡ Ö»ÊÇÒ³ÃæÓеãÔÓÂÒ£¬´ó¼ÒÒ»°ã¿´ÓÒ±ßÄÇÒ»À¸¾ÍÐÐÁË¡£
FlexBox £ºÒ»¸öÊÕ¼¯ ÁËÍøÉϺܶ࿪Դ ×é¼þµÄÕ¾µã£¬Êǽø½×ѧϰ µÄºÃ°ïÊÖ¡£ ......
ÏÖÔÚÓÐÒ»¸ö¹¤³ÌÊÇjava web project£¬»¹ÓÐÒ»¸ö¹¤³ÌÊÇflex¹¤³Ì£¬°²×°µÄÊÇflex builder 4Õýʽ°æ¡£·¢ÏÖÔÚÐÞ¸Äflex¹¤³ÌÊôÐԵĹ¹½¨Â·¾¶Ê±£¬Ð޸Ľá¹û²»Äܱ£´æ¡£ ½â¾ö°ì·¨£º ÔÚ.actionScriptPropertiesÎļþÖУ¬ÕÒµ½Â·¾¶Ö±½ÓÐ޸ġ£ ......
Ò»¡¢ÏÂÔØ eclpse 3.4
µØÖ·£ºhttp://archive.eclipse.org/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-win32.zip
Íê³Éºó£¬È¥ eclipse Àï¸üÐÂÈí¼þ£¬²Ëµ¥£º Help --- Software Updates µã Ganymede Update Site £¬Ñ¡ÖÐ Java Development £¬´Ë¶¯×÷Ϊ°²×° eclipse 3.4 ÀïµÄ Web ¿ª·¢²å¼þ£»
¶þ¡¢Ï ......