如何在图像组件后放置标签?

时间:2011-08-01 05:16:15

标签: flash flex actionscript-3 actionscript flex4

    <s:Label y="77" textAlign="center"  color="#737373" fontSize="10" text="{_data.name}" horizontalCenter="0" verticalAlign="top" fontFamily="Arial" fontWeight="bold"/>
    <mx1:Image id="previewGroup" width="20"  source="/flex_bin/img/icons/prewiew-icons.png" />

    </s:Group >

我想在标签终点放置图像......如何使用Flex 4?

1 个答案:

答案 0 :(得分:4)

<HGroup y="77" verticalAlign="middle">
    <s:Label textAlign="center"  color="#737373" fontSize="10" text="{_data.name}" fontFamily="Arial" fontWeight="bold"/>
    <s:Image id="previewGroup" width="20" source="/flex_bin/img/icons/prewiew-icons.png" />
</HGroup>