Flash >> Collision Detection Kit >> Alpha Threshold Example

The alphaThreshold property of the Collision Detection Kit allows you to put a minimum alpha requirement on display objects before their collisions are detected.

In this example, a simple movie clip with a red fill has four levels of alpha values (.25, .5, .75, and 1). It has been set up to detect collisions with the balls falling from above.

Use the numeric stepper to adjust the alphaThreshold property's value and see how the Collision Detection Kit adjusts.

For more information on the alphaThreshold property, please reference the documentation.

This example shows how you can exclude alpha values from collision detections. See how the Collision Detection Kit can exclude colors from collision checking. See how you can detect collisions on the fly. Draw on the stage to see how easy it is to work with organic shapes. The Collision Detection Kit plays well with TextField objects, as this example demonstrates. The kit even works with video. Watch how easy it is in this example. This demonstration shows off an important part of the Collision Detection Kit - returning the angle of collision. The kit accounts for local transforms like scale and rotation, as demonstrated in this example.