I am going to add images into a tag. How will it resize itself in adobe flex actionscript?
Answer Posted / 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 |
Post New Answer View All Answers