我已经使用皮肤类创建了具有背景图像的应用程序。我想在应用程序中的图像顶部显示一些图像。能否请你建议如何做到这一点Flex 4中 代码是在这里:在背景图像顶部显示另一图像4
BackGroundImageskin: -
<fx:Metadata>
[HostComponent("spark.components.supportClasses.SkinnableComponent")]
</fx:Metadata>
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
</s:states>
<s:BitmapImage source="@Embed('Img/asianwoman.jpg')" left="0" right="0" top="0" bottom="0" smooth="true"/>
主要应用: -
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Group visible="true">
<mx:Image source="Img/News1.png" visible="true" />
<s:Button label="My Button"/>
</s:Group>
这里New1.png不显示,只背景图像显示
后整个皮肤。我怀疑你将contentGroup放置在皮肤类中的背景图像的下面。 – drkstr1
没有在bitmapImage之后,皮肤类在关闭状态。没有添加contentGroup。 – Ravikanth
你的皮肤需要一个contentGroup,否则它不会显示任何子元素。我会建议复制默认的皮肤,并添加你的背景。 – drkstr1