I have a an image, lets call it "StageSkin.png". This is an image which is really just a border, and the middle of the image is "windowed", meaning that it is meant to show other information inside of it. The information inside of it is in the form of a component (based on a canvas component, lets call it 'Gauge').
I want to create a component out of the 'StageSkin' image and the 'Gauge' component inside of it that would allow me to resize the component with the 'Gauge' component staying inside of StageSkin's window. I searched on this, and got the code below, but the embedded component just overlaps the entire image. What do I need to do?
<mx:Style>
.nineSliceScalingBackground
{
background-image: Embed("assets/StageSkin.png",
scaleGridTop="53", scaleGridBottom="523",
scaleGridLeft="20", scaleGridRight="485");
background-size:"100%";
}
</mx:Style>