User Guide
482 Chapter 12: Methods
Transitions marked with an asterisk (*) do not work on monitors set to 32 bits.
There is no direct relationship between a low time value and a fast transition. The actual speed of
the transition depends on the relation of
size and time. For example, if size is 1 pixel, the
transition takes longer no matter how low the time value, because the computer has to do a lot of
work. To make transitions occur faster, use a larger chunk size, not a shorter time.
Replace
area with a value that determines whether the transition occurs only in the changing area
(
TRUE) or over the entire Stage (FALSE, default). The area variable is an area within which sprites
have changed.
Parameters
memberObjRef
Required if using an Xtra transition cast member. A reference to the Xtra cast
member to use as the transition.
int Required if using a built-in Director transition. An integer that specifies the number of the
transition to use.
time Optional. An integer that specifies that number of quarter seconds used to complete the
transition. Valid values range from 0 to 120.
size Optional. An integer that specifies the number of pixels in each chunk of the transition.
Valid values range from 1 to 128.
area Optional. A boolean value that specifies whether the transition occurs only in the changing
area (
TRUE) or over the entire Stage (FALSE).
Example
The following statement performs a wipe right transition. Because no value is specified for area,
the transition occurs over the entire Stage, which is the default.
-- Lingo syntax
_movie.puppetTransition(1)
// JavaScript syntax
_movie.puppetTransition(1);
20 Reveal down, left 46 Strips on top, build right
21 Reveal left 47 Zoom open
22 Reveal up, left 48 Zoom close
23 Dissolve, pixels fast* 49 Vertical blinds
24 Dissolve, boxy rectangles 50 Dissolve, bits fast*
25 Dissolve, boxy squares 51 Dissolve, pixels*
26 Dissolve, patterns 52 Dissolve, bits*
Code Transition Code Transition