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

set the constantMask of image "Demo" to true

Additional Comments
Expander triangle

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


The constantMask of an image is true or false.

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


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