The following example shows how you can round the corners on a Flex Image control by creating a rounded Sprite control using the drawRoundRect() method and setting the mask property.
Full code after the jump.
[click to continue…]
Tagged as:
drawRoundRect(),
graphics,
mask
The following example shows how you can add a complete effect on a Flex Image control by setting the completeEffect effect using MXML, CSS, or ActionScript.
Full code after the jump.
[click to continue…]
Tagged as:
completeEffect
The following example shows how you can prevent the Flex Image control to automatically loading an image when setting the Image control’s source property by setting the autoLoad property to false and then explicitly loading the image using the load() method.
Full code after the jump.
[click to continue…]
Tagged as:
autoLoad,
load(),
source
The following example shows how you can maintain a loaded image’s original aspect ratio on a Flex Image control by setting the maintainAspectRatio property.
Full code after the jump.
[click to continue…]
Tagged as:
maintainAspectRatio