Name
FlashPlayer.Pan( ): move the viewport of the movie — Flash 2
Synopsis
void Pan(integerdx, integerdy, integermode)
Arguments
-
dx, dy The horizontal and vertical amounts to pan.
-
mode This argument specifies how to interpret the
dxanddyvalues. If this argument is 0, the other arguments are taken as pixels. If this argument is 1, the others are percentages.
Description
The Flash player defines a viewport through which Flash movies
are visible. Typically, the size of the viewport and the size of the
movie are the same, but this may not be not the case when SetZoomRect( ) or Zoom( ) have been called: those methods
can alter the viewport so that only a portion of the movie shows
through.
When the viewport is showing only a portion of the movie, this
Pan( ) method moves (or “pans”)
the viewport so that a different portion of the movie shows. This
method doesn’t allow you to pan beyond the edges of a movie,
however.
See Also
FlashPlayer.SetZoomRect( ),
FlashPlayer.Zoom( )
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access