Performance-optimized non-animated image.
Property | Description |
---|---|
alpha : Number | Change the opacity of the Image, a value from 0 to 1. |
angle : Number = 0 | Rotation of the image, in degrees. |
blend : String | Optional blend mode to use when drawing this image. |
clipRect : Rectangle | [read-only] Clipping rectangle for the image. |
color : uint | The tinted color of the Image. |
Change the opacity of the Image, a value from 0 to 1.
// Create a new Image from a red square.
var redSquare:Image = new Image(new BitmapData(50, 50, true, 0xffff0000));
// Make the red square 50% transparent.
redSquare.alpha = 0.5;