Adobe Flex Actionscript Question:
Download Questions PDF

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

Answer:

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 container.

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.

Download Adobe Flex Actionscript Interview Questions And Answers PDF

Previous QuestionNext Question
How do you implement push on a flex applications?What is a resource Manager in flex actionscript?