flexǶÈë×ÖÌå
Hey,buddy! How are you doing these days?All right,Let us straight to the point.
flexǶÈë×ÖÌåÓÐÁ½ÖÖ·½Ê½£º
·½Ê½1£¬Ö±½ÓǶÈ룺
[Embed(mimeType='application/x-font', source='font/minicartoon.ttf', fontName='ÃÔÄã¼ò¿¨Í¨')]
private var mnCartonFont:Class;
¸Ã·½Ê½²»¶à˵ÁË¡£
·½Ê½2£¬½«×ÖÌå´ò°ü³Éswf£¬È»ºóÔËÐмÓÔØ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" initialize="init()">
<mx:Script>
<![CDATA[
import mx.core.UIComponent;
private var tf:TextField;
private var fontLoader:Loader;
private var swfUrl:String = "font/MiniCartoonFont.swf";
private var allFonts:Array = new Array();
//ÔËÐмÓÔØ
private function init():void {
fontLoader = new Loader();
fontLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadCompleteHander);
fontLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,loadFailHandler);
var re:URLRequest = new URLRequest(swfUrl);
fontLoader.load(re);
}
private function loadCompleteHander(event:Event):void {
var loaderInfo:LoaderInfo = event.target as LoaderInfo;
if (loaderInfo && loaderInfo.contentType == "application/x-shockwave-flash"){
var className:String = getFilename(loaderInfo.url);
var font:Class = loaderInfo.applicationDomain.getDefinition(className) a
Ïà¹ØÎĵµ£º
ÉÏÃæÊÇÒ»¸öflex×öµÄÑ¡Ôñ£¬Ö÷ҪѧϰÊý¾Ý Model¸úDateGridµÄÓ÷¨ ¹þ£¬Ô´ÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" fontSize="12">
<mx:Model id="books">
<datas>
<book>
  ......
1. chart£º×ÜÌå¿ØÖÆ
2.
series£º¶¨ÒåʲôÑùµÄÊý¾ÝÀ´Õ¹Ê¾£¬x,yÖá·Ö±ðÏÔʾʲôÊý¾Ý¡£ËüÊǰüº¬ÏàÓ¦µÄseriesItemµÄArray¡£SeriesItem·â×°Á˼«Öµ
µã£¬Ìî³ä·½Ê½£¬xyÊý¾ÝµÈ¡£
3. series ÖÐdisplayNameÊôÐÔ¿ ......
ÊÕ²ØÀ´×ÔÔÆ×ÔÎÞÐÄË®×ÔÏС£
Ê×ÏȽéÉÜÒ»ÏÂSystemManager. SystemManagerÊÇFlexÓ¦ÓõÄÖ÷¿ØÕß, Ëü¿ØÖÆ×ÅÓ¦Óô°¿Ú, ApplicationʵÀý, µ¯³ö´°¿Ú, cursors, ²¢¹ÜÀí×ÅApplicationDomainÖеÄÀà. SystemManagerÊÇFlashPlayerʵÀý»¯µÄµÚÒ»¸öÀà, Ë ......
Ò»¡¢¹úÍâÕ¾µã
1.×ÊÔ´Àà
Adobe Flex 2 Component Explorer£º ¹Ù·½µÄ£¬Õ¹Ê¾Á˸÷ÖÖ×é¼þµÄÓ÷¨£¬ÈëÃűؿ´¡£
CFlex£ººÜºÃµÄÒ»¸öFlex×ÊÔ´Õ¾µã£¬°üÀ¨½Ì³Ì£¬ÐÂÎÅ£¬×ÊÔ´Õ¾µã…… Ö»ÊÇÒ³ÃæÓеãÔÓÂÒ£¬´ó¼ÒÒ»°ã¿´ÓÒ±ßÄÇÒ»À¸¾ÍÐÐÁË¡£
FlexBox£ºÒ»¸öÊÕ¼¯ÁËÍøÉϺܶ࿪Դ×é¼þµÄÕ¾µã£¬Êǽø½×ѧϰµÄºÃ°ïÊÖ¡£
FlexLib£ºÒ²ÊÇÒ» ......