Repeaters require a halo container based parent

ปัญหาการใช้งาน Repeater  ใน Flex 4 ที่แจ้งข้อผิดพลาดว่า Repeaters require a halo container based parent หมายความว่า Repeater จะต้อง Halo container เป็น Parent based หรือมี Parent tag ที่มี namespace ขึ้นต้นด้วย <mx:/> เท่านั้น

ดังนั้นเราไม่สามารถใช้แบบนี้ได้

<s:VGroup>
<mx:Repeater id="repeatBt" dataProvider="{ac}">
<s:Button width="100%" height="40"/>
</mx:Repeater>
</s:VGroup>

ต้องจัด Repeater ให้อยู่ใน <mx:/> ดังนี้

<mx:VBox id="vBx" width="100%">
<mx:Repeater id="repeatBt" dataProvider="{ac}">
<s:Button width="100%" height="40"/>
</mx:Repeater>
</mx:VBox>

Advertisement

About knopsod
Developer by Flex/Flash, ActionScript, PHP, Java, MySQL,PostgreSQL, Oracle, Ebay, PayPal, Alibaba, iOffer รับปรึกษา สอน และพัฒนาซอฟแวร์ ซื้อ ขาย ประมูลสินค้าออนไลน์

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.