From the category archives:

Image

In a previous example, “Rounding the corners of an Image control in Flex using a mask”, we saw how to round the corners on a Flex Image control by creating a rounded Sprite control using the drawRoundRect() method and setting the mask property.

The following example shows how you can round selected corners of an Image control in Flex by creating a rounded Sprite control using the drawRoundRectComplex() method and setting the mask property.

Full code after the jump.

[click to continue…]

{ 3 comments }

The following example shows how you can cross fade two bitmap images using the CrossFade effect in Flex 4.

Full code after the jump.

[click to continue…]

{ 2 comments }

The following example shows how you can open a new browser window/tab by double clicking a Flex Image control by setting the doubleClickEnabled property to true and calling the navigateToURL() method

Full code after the jump.

[click to continue…]

{ 6 comments }

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…]

{ 14 comments }

The following example shows how you can set a clipboard menu and specify custom clipboard items on a context menu by setting the contextMenu and clipboardItems properties.

Full code after the jump.

[click to continue…]

{ 3 comments }

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…]

{ 0 comments }

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…]

{ 0 comments }

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…]

{ 0 comments }

Detecting when the source changes on an Image control in Flex

by Peter deHaan June 27, 2008

The following example shows how you can detect when the source property has changed on a Flex Image control using the sourceChanged event.
Full code after the jump.

Read the full article →

Displaying an error tool tip for an Image control in Flex

by Peter deHaan May 3, 2008

The following example shows how you can display an error string on the Flex Image control when an image is unable to be loaded.
Full code after the jump.

Read the full article →

Skewing an Image control in Flex

by Peter deHaan April 7, 2008

The following example shows how you can skew a Flex Image control vertically and horizontally using the Transform and Matrix classes.
Full code after the jump.

Read the full article →

Displaying an image saved as a Base64 encoded string in Flex 3

by Peter deHaan March 17, 2008

In a previous example, “Using the ImageSnapshot class to capture images as JPEGs or PNGs in Flex 3″, we saw how you could convert an item on the display list into a base64 encoded string.
The following example shows how you can take a base64 encoded string and load it into a Flex Image control using [...]

Read the full article →