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µÄ¿Ø¼þûÓйö¶¯ ¶øÊÇͨ¹ýÆäËûµÄ°´Å¥·½Ê½½øÐпؼþÄÚÈݵĹö¶¯£¬ÕâÑùʵÏֵĿªÊ¼µ±È»ÊÇÒªÉèÖÃhorizontalScrollPolicy="off" verticalScrollPolicy="off"ÁË£¬È»ºóͨ¹ýcontainerµÄhorizontalScrollPosition »òverticalScrollPositionµÄ¼Ó ¼õÀ´ÊµÏÖÄÚÈÝ×óÓÒ¡¢ÉÏϹö¶¯¡£Ë¼Â··½·¨ÍêÈ«ÕýÈ·£¬µ«ÊÇÔÚÕâÑùµÄÇ ......
Ò»¡¢×Ô¶¨ÒåPanel×é¼þ
package test
{
import mx.containers.Panel;
import mx.core.UIComponent;
/**
* ×Ô¶¨ÒåPanel
* **/
public class MyPanel extends Panel
......
Ñ¡¶¨¾ØÐεÄÒ»¸ö¶¥µãΪÆðµã£¬¿ªÊ¼»
x0:¶¥µãºá×ø±ê
y0:¶¥µã×Ý×ø±ê
x1:ˮƽÏßÉÏÁíÒ»¶¥µãµÄºá×ø±ê
y1:ˮƽÏßÉÏÁíÒ»¶¡µãµÄ×Ý×ø±ê
private function drawDottenRect(g:Graphics,
x0:Number,
&nbs ......
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Àһ°ãµÄµ¯³ö´°¿Ú£¨³ýÁËAlertÒÔÍ⣩¶¼¿ÉÒÔÓÃTitleWindow×é¼þÍê³É£¬Ö÷´°¿ÚºÍTitleWindowµÄÊý¾Ý´«Êä¿ÉÒÔÓÃÒÔÏ·½·¨
¼ÙÉèTitleWindowµÄʵÀýÎļþΪtitleWin.mxml£¬ÔòÒªÔÚApplicationÖÐÓÃPopUpManager´´½¨Ò»¸ötitleWinµÄÒýÓÃ
private var popWin:titleWin = titleWin(PopUpManager.createPopUp(this,titleWin,true) ......