Windows Media Player 11 SDK AmbientAttributes.alphaBlendTo
Previous | Next |
AmbientAttributes.alphaBlendTo
The alphaBlendTo method adjusts the alphaBlend property over a period of time.
Syntax
Parameters
newVal
Number (long) specifying the new opacity value. Ranges from 0 (no opacity) to 255 (full opacity).
alphaTime
Number (long) specifying the time, in milliseconds, that it takes the element to change opacity.
Return Values
This method does not return a value.
Remarks
This method is useful for making elements gradually appear or disappear.
When you use alphaBlendTo with a TEXT element that does not have the backgroundColor specified, a background color of black will be used. If the foreground color is also black (which is the default value for TEXT.foregroundColor), your text may become unreadable. In order to prevent this, always specify the backgroundColor attribute, or set foregroundColor to a color other than black.
Note This attribute is not supported in Windows 98.
Requirements
Windows Media Player 9 Series or later.
See Also
- Ambient Attributes
- AmbientAttributes.alphaBlend
- TEXT Element
- TEXT.backgroundColor
- TEXT.foregroundColor
Previous | Next |