Hi!
I would like to scale my main content components in Flex 4.5 using AutoFitArea.
For example i tried:
public var area:AutoFitArea = AutoFitArea.createAround(contactM);
private function addedComplete():void{
area.attach(contactM, {scaleMode:ScaleMode.PROPORTIONAL_INSIDE});
}
<components:Contact id="contactM" includeIn="KONTAKT" resizeMode="scale" x="0" y="0" width="100%" height="100%" horizontalCenter="0" verticalCenter="0">
</components:Contact>
This is not working. I am new in flex/flash. I would be happy for any guidance! Thank you!