Adobe Flex ActionScript Interview Questions and Answers


I am going to add images into a tag. How will it resize itself in adobe flex actionscript?

To let Flex resize the image as part of laying out your application, set the height
or width properties to a percentage value. Flex attempts to resize components with
percentage values for these properties to the specified percentage of their parent

Or by default, Flex does not resize the image. The scaleContent property has a default
value of true, therefore, Flex scales the image as it resizes it to fit the specified
height and width. The aspect ratio is maintained by default, so the image may not
completely fill the designated space. Set the scaleContent property to false to
disable scaling. Set the maintainAspectRatio property to false to allow an image
to fill all available space regardless of its dimensions.

Posted by:Richards