Error getting tags :
error 404Error getting tags :
error 404 constantMask | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
constantMask
Basics
Expander triangle
Type
Property
Syntax
set the constantMask of image to {true | false}
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Specifies whether animated GIFs ignore changes in the mask data when displaying the GIF.
Examples

set the constantMask of image "Demo" to true

Additional Comments
Expander triangle

Use the constantMask property to enable display of certain animated GIF images.

Value:

The constantMask of an image is true or false.

By default, the constantMask property of newly created images is set to false.

Comments:

Some animated GIF images use an optimization technique in which the mask data is used to hold information about differences between successive frames. When played, these GIFs can have display problems because the mask data is being used in a non-standard way. Set the constantMask to true to correct the problem with these GIFs.

Setting the constantMask to true may have some undesirable side effects--the image's appearance may be incorrect if you move it while the animation is playing, or if there is an object underneath it--so use this property only when necessary.

Note: If the constantMask is set to true, clicking a transparent portion of a frame may unexpectedly send messages such as mouseUp to the image, instead of the object underneath the image. This is because when deciding whether the user has clicked a transparent pixel, Revolution uses the masks for all the frames, rather than for the current frame, if the constantMask is true.

Important! Setting an image'sconstantMaskproperty to true can cause problems with the image's appearance if you move it under script control while the animation is playing, or if there's an object underneath it. Avoid setting the constantMaskproperty to true unless necessary.

User Comments
Expander triangle