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

ÔÚ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


Ïà¹ØÎĵµ£º

FlexÀý×Ó Í¨¹ý¼Ì³ÐÔö¼ÓÐµĹ¦ÄÜ

FlexÖÐͨ¹ý¼Ì³Ð¿ÉÒÔΪÐÂ×é¼þÔö¼ÓÐµĹ¦ÄÜ£¬Èçͨ¹ý×¢Èë·½·¨£¬¸Ä±ä±³¾°É«£¬¸Ä±äλÖú͸߶ȵȡ£ÕâÀïÖ÷ÒªÕÆÎÕÔ­×é¼þµÄÒ»Ð©ÌØÐÔ£¬ÊôÐԺͷ½·¨£¬ÒÔ±ã¸ù¾ÝÐèÒªµÄ¹¦ÄܼÓÒÔ¸²Ð´£¨Ò²¿ÉÒÔ×Ô¼ºÀ©Õ¹£©£¬´ïµ½×Ô¼ºÏëÒªµÄЧ¹û¡£ÏÂÃæÊÇÒ»¸ö¼òµ¥µÄÀý×Ó
1¡¢Ð½¨MyDataGrid.as,¼Ì³ÐDataGrid,¸²Ð´drawRowBackground·½·¨£¬×¢ÈërowColorFunction·½ ......

flexͼ±í×ø±êÖáÑùʽÉèÖÃ

<?xml version="1.0"?>
<!-- Simple example to demonstrate the ColumnChart and BarChart controls. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initApp()"
backgroundColor="#FFFFFF" width="350" height="125"
layout="absolute">
<!- ......

¡¾Êղء¿FlexÊý¾ÝͨѶ

Flex/Flash Ö§³ÖµÄÊý¾ÝͨѶ·½Ê½ÓУº
http URLLoader
SOAP(webservice)
json
xml
flash remoting / AMF3
xmlsocket
socket(¶þ½øÖÆ)(×Ô¶¨ÒåЭÒé)
¸ß²¢·¢µÄÓ¦ÓÃÖÐÓû§×´Ì¬¿ÉÒÔÓÃcookie£¬²»ÓÃsession
Èç¹ûÊǶàÈËʵʱ½»»¥ÈçÁÄÌìϵͳ£¬¶àÈËÔÚÏß»¥¶¯µÈÓ¦ÓÃÄ£¿é¡¡ÐèÒªÓÃsocket½øÐÐͨѶ(Óë·þÎñÆ÷½¨Á¢³¤Á¬½Ó)£¬·þÎñÆ÷¶Ë¿ÉÒÔ× ......

Flex Æô¶¯»ù±¾Á÷³Ì


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 ......

Flex¼ÆËãÆ÷/ÈëÃÅ

Ö»ÊǼòµ¥ÊµÏÖÁËһϼÆËã¡£Ö÷ÒªÊÇÁ·ÏÂÊÖ¡£
ʵÏÖÁËÊó±ê¸ú¼üÅ̵ÄʼþÏìÓ¦¡£
-----------------------------
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
width="198" height="224" fontSize="12" themeColor="#4D8853" borderColor="#B1C2CE" backgroundGradientAlphas="[1.0, 1. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ