4,328
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
[Bindable]
private var dp:Array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36];
]]>
</mx:Script>
<mx:HBox id="hbox" width="30%" height="35" backgroundColor="white">
<mx:Repeater id="rp" dataProvider="{dp}">
<mx:Label text="{String(rp.currentItem)}"/>
</mx:Repeater>
</mx:HBox>
</mx:Application>
package
{
import mx.containers.HBox;
public class FwHbox extends HBox
{
public function FwHbox()
{
super();
}
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth, unscaledHeight);
}
override protected function measure():void
{
// super.measure();
}
}
}