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

Flex4¶¯Ì¬¼ÓÔØ Çл»CSS

Flex4Öж¯Ì¬¼ÓÔØCSSÎļþµÄ·½Ê½ÒѾ­ºÍFlex3ÓÐÁËÒ»¶¨µÄÇø±ð
Ö÷Òª²½ÖèÈçÏ£º
1.±àд²»Í¬µÄCSSÎļþ
¼ûºóÎÄ
2.½«CSSÎļþ±àÒë³ÉSWFÎļþ
ÔÚFlashBuilderÖÐÓÒ¼üCSSÎļþ£¬Ñ¡ÔñCompile CSS to SWF£¬
Õâʱbin-debugĿ¼ÏµĶÔӦλÖþͻáÉú³ÉÒ»¸öÓëCSSͬÃûµÄSWFÎļþ¡£
Ñ¡Öкó¸ÃÑ¡ÏîÇ°»áÓй´£¬Ö®ºóÖ»ÒªÐÞ¸ÄÁËCSSÎļþ£¬¾Í»á×Ô¶¯±àÒë³ÉSWF
2.ÓÃstyleManager¼ÓÔØSWF
´úÂëÖÐÕâÑùд£º
this.styleManager.loadStyleDeclarations2("MyCss1.swf");   //´úÂëÖÐÌîдÉÏÒ»²½ÓÉCSSÉú³ÉµÄSWFÎļþ·¾¶
CSSд·¨£º
MyCss1.css
/* CSS file */
/*ÃüÃû¿Õ¼ä*/
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
/*ʹÓÃskinÀàÀ´¶¨ÒåƤ·ô£¬ËùÒÔÒªÓÃClassReferenceº¯Êý*/
s|List{
skin-class:ClassReference("skins.ListSkin1");
}
/*·ûºÅ#´ú±íÖ¸¶¨µÄID*/
s|Label#labelExamples{
font-size:14;
color:#990099;
}
s|CheckBox{
font-size:9;
color:#FF3300;
}
s|RadioButton{
font-size:92;
color:#990099;
}
s|Button{
    font-size:32;
color:#FF3300;
}
×¢£ºCSSÖÐÎÞ·¨ÉèÖÃItemRenderer£¬ËùÒÔÈç¹ûҪʵÏÖ²»Í¬CSSÓò»Í¬µÄItemRenderer£¬Îª¸÷¸öCSSÖ¸¶¨²»Í¬µÄskinÀ࣬²¢ÇÒÔÚskinÀàÖзֱðÉèÖõÄItemRenderer
ÀýÈ磬ÎÒµÄÀý×ÓÖÐҪΪListÉèÖò»Í¬µÄItemRenderer£¬¾Í²»ÒªÐ´³É<s:List itemRenderer="itemRenderers.ListItemRenderer1".../>
¶øÒªÔÚCSSÖÐΪListÖ¸¶¨skinClassΪskins.ListSkin1£¬´úÂ룺skin-class:ClassReference("skins.ListSkin1");
È»ºó£¬ÔÚskin.ListSkin1ÖÐÉèÖÃItemRenderer£¬´úÂ룺 
<s:DataGroup id="dataGroup" itemRenderer="itemRenderers.ListItemRenderer1">
            <s:layout>...
MyCss2.css——ÁíÒ»¸öCSSÎļþ
/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
/* ʹÓÃÁËÁíÒ»¸öSkinÀà*/
s|List{
skin-class:ClassReference("skins.ListSkin2");
}
s|Label#labelExamples{
font-size:42;
color:#009966;
}
s|CheckBox{
font-size:22;
color:#009966;
}
s|RadioButton{
font-size:20;
color:#009966;
}
s|Button{
    font-size:12;
  color


Ïà¹ØÎĵµ£º

ÓÃFlexµ÷ÓÃSWF²é¿´PDF

  ÓÐʱºòһЩ×ÊÁÏÖ»Äܸø±ðÈË¿´£¬Èç¿É´òÓ¡µÄÎĵµÈçDOC£¬PDF£¬µ«²»ÄÜÈÃÆäËûÎÞȨÏÞµÄÈËÁí´æ»òÕß´òÓ¡£¬ÌرðÊÇweb°æµÄÎļþ¹ÜÀíÀàµÄϵͳ£¬×ܻῼÂǵ½Õâ¸öÎÊÌâ¡£µ±ÓÃIEÖ±½Ó´ò¿ªpdfµÄʱºò£¬¾¡¹Ü¿ÉÒÔÆ£±ÖIEµÄÁí´æΪ£¬µ«Êǵã»÷PDFÎļþµÄʱºò£¬ÔÙ°´F8µÄʱºò£¬PDFµÄÔĶÁÆ÷È磨adobereader£©»áÏÔʾToolsBar£¬ËùÒÔÖ±½Ó´ò¿ªpdfòËÆÐв ......

ÈçºÎÔÚFlex »ò ActionScriptÖдò¿ªWORD Doc

Adobe Flash Builder 4 ¼òÌåÖÐÎÄÕýʽ°æ ÏÂÔØ:
http://subject.csdn.net/adobedownload/index.html
ʹÓÃÏà¹ØµÄÓò£¬ÀûÓÃAdobe Livecycle Designer´´½¨Ò»¸öPDFÄ£×飬ÒÔXML½ÚµÄÃû³Æ£¨ÓëPDFÄ£×éÖеÄÓòµÄÃû³ÆÆ¥Å䣩ÏòPDFÔ¶³Ì¶ÔÏó·¢ËÍXMLÊý¾Ý£¬È»ºóÄúµÄFlexÓ¦ÓóÌÐò¾Í»á´ò¿ªPDF, »ò½«PDFÎļþ·ÅÈëÄúµÄwebserv ......

FlexµÄÀ¬»ø»ØÊÕ»úÖÆ

½ñÌìÔÚ×öÏîĿʱºò£¬ÔÚ¿ªÊ¼ÏîĿʱºòÓÐÒ»¸öºÜÖØÒªµÄÎÊÌ⣬¾ÍÊÇÔÚ×ö»ÃµÆµÄÏîĿʱºò£¬ÒòΪ³õʼ»¯µÄʱºò½«Í¼Æ¬È«²¿¼ÓÔؽø³ÌÐò£¬Ôì³ÉÏîÄ¿Æô¶¯µÄʱºò£¬»úÆ÷¾Í±ÀÀ£ÁË£¬ÒòΪÏîÄ¿ÒѾ­Íê³ÉÁË£¬Ö»ÄÜÏëһЩ²¹¾ÈµÄ·½·¨£¬¾ÍÊÇÀûÓÃflashplayµÄÀ¬»ø»ØÊÕ£¬ÒÔÏÂÊÇÁ½ÖÖ·½·¨¡£
1.   flash.system.System.gc();
2.   try
& ......

flex ʼþÖ®Àí½â


      
Ê×ÏÈ£¬ÉêÃ÷±¾ÎÄÊÇתÔØ
http://blog.csdn.net/ivanmarkliu/archive/2009/07/08/4327570.aspx
£¬´ó¼Ò¿ÉÒÔ·ÃÎʸÃÁ´½Ó£¬Ò²¿ÉÒÔÖ±½ÓÔĶÁ±¾ÎĺóÐø²¿·ÖÒÔÁ˽â
flex
ʼþ¡£½ÓÏÂÀ´¼òµ¥Ì¸ÏÂΪºÎҪתÔØ´ËÎļ°±¾È˶ԴËÎĵÄһЩ²¹³ä¡£
      
¿ÉÒÔÕâÑù˵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ