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

flexС´íÎ󣨳£¼Ç¶à×ö£©2

   ArrayCollection¾­³£×öComboBox¿Ø¼þµÄ¼¯ºÏ»¹ÓÐDataGridµÄ¼¯ºÏ£¬Òª×¢ÒâËüµÄ¸ñʽ¡£dataµÄÊôÐÔÀïÃæÈç¹ûÊÇÊý×Ö²»ÐèҪ˫ÒýºÅ£¬ÈôÊÇ×Ö·û´®¾Í±ØÐë¼Ó£¬¶øÇÒÐèÒªÌáÇ°×÷var¶¨Òå     
           public var outgoing:String;
           public var incoming:String; 
           [Bindable]
            public var cards:ArrayCollection = new ArrayCollection(
                [ {label:"outgoing", data:"outgoing"},
                  {label:"incoming", data:"incoming"}
                   ]);
ComboBox.selectedItem.labelΪѡÖеÄlabel
ComboBox.selectedItem.dataΪѡÖеÄdata


Ïà¹ØÎĵµ£º

flex ÖÐʵÏÖ×Ô¶¨Òå¹ö¶¯

ÔÚÓ¦ÓÃÖУ¬ºÜ¶à¶¼ÏëʵÏÖflexµÄ¿Ø¼þûÓйö¶¯ ¶øÊÇͨ¹ýÆäËûµÄ°´Å¥·½Ê½½øÐпؼþÄÚÈݵĹö¶¯£¬ÕâÑùʵÏֵĿªÊ¼µ±È»ÊÇÒªÉèÖÃhorizontalScrollPolicy="off" verticalScrollPolicy="off"ÁË£¬È»ºóͨ¹ýcontainerµÄhorizontalScrollPosition »òverticalScrollPositionµÄ¼Ó ¼õÀ´ÊµÏÖÄÚÈÝ×óÓÒ¡¢ÉÏϹö¶¯¡£Ë¼Â··½·¨ÍêÈ«ÕýÈ·£¬µ«ÊÇÔÚÕâÑùµÄÇ ......

ÔÚFLEX PanelµÄTitleÉÏÌí¼Ó¿Ø¼þʵÀý

Ò»¡¢×Ô¶¨ÒåPanel×é¼þ
package test
{
    import mx.containers.Panel;
    import mx.core.UIComponent;
   
    /**
    * ×Ô¶¨ÒåPanel
    * **/
    public class MyPanel extends Panel
  ......

flex »­ÐéÏß¾ØÐÎËã·¨

Ñ¡¶¨¾ØÐεÄÒ»¸ö¶¥µãΪÆðµã£¬¿ªÊ¼»­
x0:¶¥µãºá×ø±ê
y0:¶¥µã×Ý×ø±ê
x1:ˮƽÏßÉÏÁíÒ»¶¥µãµÄºá×ø±ê
y1:ˮƽÏßÉÏÁíÒ»¶¡µãµÄ×Ý×ø±ê
 private function drawDottenRect(g:Graphics,
                   x0:Number,
&nbs ......

Flex ´´½¨Ò»¸ö×Ô¶¨Òå·ç¸ñµÄHRule»òVRule

FlexÖÐÈçºÎͨ¹ýstrokeWidth, strokeColorºÍshadowColorÑùʽ£¬´´½¨Ò»¸ö×Ô¶¨Òå·ç¸ñµÄHRule»òVRule
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical"
    verticalAlign="middle"
 &nbs ......

FLEX TitleWindowÖ®¼äÊý¾Ý´«ÊäµÄʾÀý


ÔÚFlexÀһ°ãµÄµ¯³ö´°¿Ú£¨³ýÁËAlertÒÔÍ⣩¶¼¿ÉÒÔÓÃTitleWindow×é¼þÍê³É£¬Ö÷´°¿ÚºÍTitleWindowµÄÊý¾Ý´«Êä¿ÉÒÔÓÃÒÔÏ·½·¨
¼ÙÉèTitleWindowµÄʵÀýÎļþΪtitleWin.mxml£¬ÔòÒªÔÚApplicationÖÐÓÃPopUpManager´´½¨Ò»¸ötitleWinµÄÒýÓÃ
private var popWin:titleWin = titleWin(PopUpManager.createPopUp(this,titleWin,true) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ