ÔÚFlex Chaet ÖлæÖÆ3Dͼ±í
Ç°Ò»ÕóÔÚÂÛ̳ÉÏ¿´µ½Ò»¸öÐֵܣ¬ÏëÔÚFlex ChartÖÐΪͼÀýÉèÖÃ3DЧ¹û,½ü¼¸Ìì²éÕÒÁËЩ×ÊÁÏ£¬¶¯ÊÖ×öÁ˸öDEMO¹©´ó¼Ò²Î¿¼!
DEMOÑÝʾµØÖ·http://xingjunli.webs.com/flash/flexChartDemo.swf,ÏÈÀ´¸öͼƬ¿´¿´×îÖÕЧ¹û:
Ïà¹Ø֪ʶµã
1¡¢Í¼±íʹÓõÄÎҾͲ»¶à×ö½éÉÜÁË£¬ÍøÉÏÒ²ºÜ¶à¹Ù·½Ò²Óв»´íµÄ½Ì³Ì(²Î¿¼:Skinning ChartItem objects );
2¡¢Òª×Ô¶¨Òåͼ±íSeries,ÎÒÃÇÒª×öµÄ¾ÍÊÇÖØдProgrammaticSkin»ùÀಢʵÏÖIDataRenderer½Ó¿Ú·½·¨ÖеÄupdateDisplayList·½·¨,ÔÚSeriesÖÐÓ¦ÓÃÎÒÃÇ×Ô¶¨ÒåµÄÍâ¹ÛÀà“drawhelper.histogramSkin”¾ÍºÃÁËÈç:
<mx:ColumnSeries showDataEffect="slideIn" hideDataEffect="slideOut" xField="label" yField="value" itemRenderer="drawhelper.histogramSkin" />
3¡¢ÎÒÃÇÕâÀïʹÓÃGraphicÔÚ2D³¡¾°ÖлæÖÆ£¨3D£©Á¢·½ÌåµÄ·½Ê½»æÖÆSeries£¬ÏÈÀí½âÓ¦ÓÃ3D×ø±ê(ÔÚSeriesÖлæÖÆÊÇ´ÓÏÂÏòÉÏ»æÖƵÄËùÄã¿´µ½µÄ»æÖƹý³ÌÖÐ×ø±êϵ¸ÕºÃÊǵ¹×ª¹ýÀ´µÄ)Èçͼ:
ʵÏÖ¹ý³Ì¼°´úÂë:
1¡¢×Ô¶¨ÒåÁ¢·½Í¼Íâ¹ÛÀࣺ
package drawhelper
{
import flash.geom.Point;
import mx.charts.series.items.ColumnSeriesItem;
import mx.core.IDataRenderer;
import mx.skins.ProgrammaticSkin;
public class solidSkin extends ProgrammaticSkin implements IDataRenderer
{
private var colors:Array = [0x60cb00,0x6a7a88,0x3698ff,0x66a800,0xff6600,0x655fc8,0xd2691e];
private var _chartItem:ColumnSeriesItem;
public function solidSkin()
{
super();
}
public function get data():Object
{
return Object(_chartItem);
}
public function set data(value:Object):void
{
_chartItem = value as ColumnSeriesItem;
invalidateDisplayList();
}
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth,unscaledHeight);
this.graphics.clear();
var points:Array = getPoints
Ïà¹ØÎĵµ£º
CategoryAxisÓÐÒ»¸ö½Ð×ölabelFunctionµÄÊôÐÔ£¬Õâ¸öÊôÐԵĶ¨Ò壺ָ¶¨Ò»¸öº¯Êý£¬ÓÃÓÚ¶¨ÒåΪCategoryAxisµÄdataProviderÖеĸ÷¸öÏîÄ¿Éú³ÉµÄ±êÇ©¡£
ËùÒÔÐ޸ĵÄÔÀí£º¿ÉÒÔÀûÓÃlabelFunctionµÃµ½Ã¿¸öLabel£¬È»ºóÔÙ¶ÔÆä½øÐÐÐ޸ġ£
Ƭ¶Î´úÂ룺
<mx:horizontalAxis>
<mx:CategoryAxis id="ca"
&nbs ......
http://elromdesign.com/blog/2010/03/10/test-driven-development-tdd-with-flexunit-4-complete-tutorial/
±¾À´ÊÇ´òËãÍêÕûµÄ·ÒëÍê³ÉÕâƪ²©Îĵģ¬Ò»±ß·Ò룬һ±ß̸̸×Ô¼º¶ÔÇý¶¯²âÊÔ¿ª·¢µÄÀí½â¡£ µ±È»ÎÒµÄÀí½âºÍÔÎÄ×÷ÕßµÄÀí½â²»Ò»¶¨Ò»Ñù£¬µ«ÊÇÖÁÉÙ£¬ÎÒÃǶ¼³ÐÈÏ¿ª·¢µÃÊDzâÊÔÇý¶¯µÄ¡£ È»¶øCSDNµÄ²©¿ÍϵͳÊÇʵÔÚ²»ÄÜÀí½â¡¾Î ......
·¸ÁËÒ»¸ö¼«µÍµÄ´íÎó£¬Õâ¸öÔÒòÊÇ×Ô¼ºÔì³ÉµÄ£¬ÊÇ×Ô¼º°Ñ
¸ÄΪ±¾µØ×Ô¼º¼´¿É£¬
²éÁËЩӢÎÄÍøÕ¾µÄ½â¾ö·½°¸£¬ËµÊÇʲôϵͳÉý¼¶£¬Åµ¶Ùɱ¶¾Èí¼þÎÊÌ⣬¶¼²»ÊÇ×Ô¼ºÒªµÄ´ð°¸£¬ÊÇ×Ô¼ºÒÔÇ°²»Ð¡ÐĸÄÁË£¬ºóÀ´ÎÞÂÛÔõôжÔØ¡¢Éý¼¶¡¢ÖØ×°flash²å¼þ¶¼Ò»¸öÑù
http://hi.baidu.com/phperbo/blog/item/bf77fefb29a73b1e6d22ebe4.html
ÀÏÊÇÓö¼û ......
First, enough bytes for frame 1 are streamed down to the Flash
Player.
The Flash Player executes those bytes by creating a SystemManager
instance.
SystemManager instruct the Flash Player to stop at the end of frame
1.
SystemManager then goes on to create the Preloader which creates the ......
<mx:TextInput id="userName" maxChars="4" restrict="a-zA-Z" />
restrictÊôÐÔȷʵ¿ÉÒÔÊäÈëÕýÔò±í´ïʽ£¬½øÐÐÊäÈëµÄÑéÖ¤¡£
µ«ÊÇÔÚ³ÌÐòÖ´ÐеÄʱºòÈç¹ûΪuserName.text = "999"»¹ÊÇ¿ÉÒԳɹ¦µÄ¡£
´ýÐø¡£¡£¡£¡£Ñ§Ï°ÖС£¡£¡£ ......