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 |
When I add or modify an item in my dataprovider, why does not it show up in my datagrid?
What is a drag manager in adobe flex actionscript? : adobe flex action script
What is the function of trace? : adobe flex action script
What is display object?
Explain the configuration details of blaze ds?
Sometimes, if I do not move the mouse, "click" and "mousedown" do not work. Why is that? : adobe flex action script
What keyword allows us to implement abstraction better in flex? : adobe flex action script
What is state? What is the difference between states and viewstack in flex? : adobe flex action script
State the difference between view stack and view state?
Can I still purchase flex charting?
Explain in which level does the original movie resides?
How can you show a jpg image in dynamic text field? : adobe flex action script