I am going to add images into a tag. How will it resize itself in adobe flex actionscript?
Answer / Pankaj Padaliya
By default, the Image component scales its content to fit its container when you don't explicitly set the width and height properties. If you want to maintain aspect ratio while resizing, use the preserveAspectRatio attribute:
```xml
<mx:Image source="myImage.jpg" preserveAspectRatio="none"/>
```
If you want to customize scaling behavior, set the width and height properties manually or use the scaleMode property.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is mvc and how do you relate it to flex apps?
How to create custom events? Explain the steps to create a new custom event?
Ow binding works in mxml components in flex? : adobe flex action script
What is display list? : adobe flex action script
Do I need to upgrade to beta 3 to use air beta 3?
What happens if an .swf is loaded into a already occupied level?
What keyword allows you to refer to private variables of a class in flex?
Is it possible for upgrade from flex builder 3 standard edition to flex builder 3 professional edition?
What did adobe announce regarding flex?
When I add or modify an item in my dataprovider, why does not it show up in my datagrid?
What keyword allows us to implement abstraction better in flex? : adobe flex action script
How to display the check box in data grid header?