FLASH:
Image masking
Adobe Flash Player provides a mask feature for visually cropping display objects within
a shape. The process involves creating a shape and applying it to the "mask" property of
another display object. Masks can stay stationary while the object being masked moves—
or masks can animate above the object to create transitions and special effects.

This content requires Flash To view this content, JavaScript must be enabled, and you
need the latest version of the Adobe Flash Player. To view this content, JavaScript must
be enabled, and you need the latest version of the Adobe Flash Player.

   This sample demonstrates three types of masks. Click the buttons to see the different
effects.


              +

This work is licensed under a Creative Commons Attribution-Noncommercial-Share
Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to
the examples of code included within this work are available at Adobe.

Transition effects
A transition is a simple animation that creates a transition effect for a display object being
added to—or removed from—the screen. For example, you could use a fade-in or fade-
out effect to create a smooth transition for an image as it's added to the Stage or removed
from the Stage. ActionScript 3 provides the Tween and TransitionManager classes as
easy-to-add transitions for your content.
This sample demonstrates many of transitions available while using the Tween and
TransitionManager classes. Click the buttons to see how each transition affects the image.


              +

This work is licensed under a Creative Commons Attribution-Noncommercial-Share
Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to
the examples of code included within this work are available at Adobe.



The color of a display object can be changed dynamically at runtime using the
ColorTransform object and the built-in transform property. Applying color dynamically
is useful for situations where you need to change the state of a graphic but don't want to
use multiple images to do so.
This sample demonstrates a simple color picker using ColorTransform objects. Choose a
color and drag a color swatch to the car or click the Apply button.


                  +

This work is licensed under a Creative Commons Attribution-Noncommercial-Share
Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to
the examples of code included within this work are available at Adobe.

Flash

  • 1.
    FLASH: Image masking Adobe FlashPlayer provides a mask feature for visually cropping display objects within a shape. The process involves creating a shape and applying it to the "mask" property of another display object. Masks can stay stationary while the object being masked moves— or masks can animate above the object to create transitions and special effects. This content requires Flash To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player. To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player. This sample demonstrates three types of masks. Click the buttons to see the different effects. + This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe. Transition effects A transition is a simple animation that creates a transition effect for a display object being added to—or removed from—the screen. For example, you could use a fade-in or fade- out effect to create a smooth transition for an image as it's added to the Stage or removed from the Stage. ActionScript 3 provides the Tween and TransitionManager classes as easy-to-add transitions for your content.
  • 2.
    This sample demonstratesmany of transitions available while using the Tween and TransitionManager classes. Click the buttons to see how each transition affects the image. + This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe. The color of a display object can be changed dynamically at runtime using the ColorTransform object and the built-in transform property. Applying color dynamically is useful for situations where you need to change the state of a graphic but don't want to use multiple images to do so.
  • 3.
    This sample demonstratesa simple color picker using ColorTransform objects. Choose a color and drag a color swatch to the car or click the Apply button. + This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.