Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Builder 3 ÏÂÔØ°²×°Óë×¢²áÂë

Flex Builder 3 Õýʽ°æ£¬·¢²¼ÓÚÖйúʱ¼ä 2008 Äê 2 Ô 25 ÈÕ£»
ÏÂÔصØÖ·Ò»£º
http://download.macromedia.com/pub/flex/flex_builder/FB3_win.exe
´óС£º 424 MB £»Î´½øÐÐѹËõµÄ Flex Builder 3 °²×°Îļþ
²»ÓÃ×¢²áµÇ¼£¬¿ÉÒÔÖ±½ÓÏÂÔØ¡£
ÏÂÔصØÖ·¶þ£º
http://trials.adobe.com/Applications/.../FB3_WWEJ.exe
´óС£º¡ ......

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

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

flex Êý¾Ý°ó¶¨Ö®Àí½â


       ֮ǰдÁË¡¶ flex ʼþÖ®Àí½â¡·ºÍ¡¶ flex meta tag Ö®Àí½â¡·£¬±¾ÏëÊÇΪд±¾ÎÄ flex Êý¾Ý°ó¶¨Ö®Àí½â×öÆ̵æµÄ£¬Ë­ÖªÍøÉÏÒÑÓÐ flex Êý¾Ý°ó¶¨Ö®Àí½âºÜºÃµÄÎÄÕ£¬ÈçÏ£º
       http://www.cnblogs.com/nianshi/archive/2010/05/19/1739407.html £¬ FLEX ......

flexµÄCanvas¿ÉÒÔºÍHTMLµÄDIVÒ»Ñù×ö¿é×´µÄÍø¸ñ²¼¾Ö

Óõ½µÄMX±êÇ©£ºconstraintColumns¡¢ConstraintColumn¡¢constraintRows¡¢ConstraintRow
¸ø´ó¼Ò˵˵ǰÌáÇé¿ö£ºÔÚ×öMXML²¼¾Öʱ£¬ÒªÇ¶Ì׺ܶà²ã¼¶£¬ÕâÀïÃæÓкܶàÎÊÌ⣺
1¡¢Ç¶Ì×Ì«¶à²ã¼¶»áÓ°ÏìЧÂÊ£¡
2¡¢Ç¶Ì×Ì«¶à²ã¼¶£¬´úÂëµÄ¿É¶ÁÐÔ¡¢¿Éά»¤ÐԲ
3¡¢Ç¶Ì×Ì«¶à²ã¼¶ÊÇÒòΪCanvas¡¢Vbox¡¢Hbox¹¦Äܵ¥Ò»£¬²»ÄÜÂú×ãÐèÒª£¬¶ø²»ÊDZØÐ ......

flexÈ¡ÕûÔËËã

ת×Ô£ºhttp://hi.baidu.com/wosinmaiken/blog/item/ee59f7a8f72604bdca130c24.html
 /**ceil   ÏòÇ°(ÊýÖáÏòÓÒ)È¡Õû(·µ»ØֵΪNumber)**/
         trace(Math.ceil(10.4));    //11
         trace(Math ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ