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»òFlashµÄ¿çÓò·ÃÎʵĽâ¾ö·½°¸£¬ÊÂÇéµÄÆðÒòÊÇ£¬ÓÉÎÒ¹«¿ªµÄÒ»¸öwebservice£¨²»Çå³þÕâ¸öwebservice¸ÉʲôµÄÇë¿´ÕâÀ¿ªÊ¼µÄ£¬kenshinµÄÅóÓÑsensunÔÚÕâ¸ö¹«¿ªµÄwebserviceµÄ»ù´¡ÉÏÖÆ×÷ÁËÒ»¸öweather²éѯµÄ£¬ÔÚ±¾»ú²âÊÔok£¬Ò»Äõ½ÍøÉÏ£¬¾Í»á³öÏÖerror£¨ÊÇ¿çÓò·ÃÎʵĴíÎ󣩣¬ºóÀ´£¬kenshinÖÕÓÚÕÒµ½ÁËÕâ¸öÎÊÌâµÄ½â¾ö·½° ......
×î½ü½Ó´¥Á˺ܶණÎ÷£¬²»Í£µÄÅä»·¾³£¬Ã¿´Î°æ±¾ÎÊÌⶼµÃÕÛÌÚÒ»·¬¡£
MicrostrategyÌṩÁËÒ»¸öFlex²å¼þ£¬ÓÃÀ´¿ª·¢ÏÔʾ±¨±íÊý¾ÝµÄFlashÄ£°å¡£
ÀûÓÃflex¿ª·¢¼òµ¥±¨±í¹ý³Ì£º
1.°²×°£ºMicrostrategy8.1
2.°²×°Flex Builder 2.2¡£
3.ÔÚFlex BuilderÖа²×°visualization builder²å¼þ
·½·¨£º½«\Microstrategy\SDK\t ......
Ò»¡¢¹úÍâÕ¾µã
1.×ÊÔ´ Àà
Adobe Flex 2 Component Explorer £º ¹Ù·½µÄ£¬Õ¹Ê¾Á˸÷ÖÖ×é¼þ µÄÓ÷¨ £¬ÈëÃÅ ±Ø¿´¡£
CFlex £ººÜºÃµÄÒ»¸öFlex×ÊÔ´Õ¾µã£¬°üÀ¨½Ì³Ì £¬ÐÂÎÅ£¬×ÊÔ´Õ¾µã¡¡ Ö»ÊÇÒ³ÃæÓеãÔÓÂÒ£¬´ó¼ÒÒ»°ã¿´ÓÒ±ßÄÇÒ»À¸¾ÍÐÐÁË¡£
FlexBox £ºÒ»¸öÊÕ¼¯ ÁËÍøÉϺܶ࿪Դ ×é¼þµÄÕ¾µã£¬Êǽø½×ѧϰ µÄºÃ°ïÊÖ¡£ ......
/**=========main.mxml=========*/
/* µ¼³öexcel */
private function exp():void{
if(dgEnterprise.dataProvider==null){
Alert.show("Êý¾ÝΪ¿Õ£¬ÎÞ·¨µ¼³öexcel","ÓÑÇéÌáʾ");
}else{
ExportExccel.loadDGInExcel(dgEnterprise,"/ssfxSystem/excelexport.jsp?tableName=ÆóÒµÐÅÏ¢");
}
}
/**===== ......
ÏÖÔÚÓÐÒ»¸ö¹¤³ÌÊÇjava web project£¬»¹ÓÐÒ»¸ö¹¤³ÌÊÇflex¹¤³Ì£¬°²×°µÄÊÇflex builder 4Õýʽ°æ¡£·¢ÏÖÔÚÐÞ¸Äflex¹¤³ÌÊôÐԵĹ¹½¨Â·¾¶Ê±£¬Ð޸Ľá¹û²»Äܱ£´æ¡£ ½â¾ö°ì·¨£º ÔÚ.actionScriptPropertiesÎļþÖУ¬ÕÒµ½Â·¾¶Ö±½ÓÐ޸ġ£ ......