Name
FlashPlayer.SetZoomRect( ): set the viewport of a movie â Flash 2
Synopsis
void SetZoomRect(integerleft
, integertop
, integerright
, integerbottom
)
Arguments
-
left, top
The coordinates, in twips, of the upper-left corner of the viewport.
-
right, bottom
The coordinates, in twips, of the lower-right corner of the viewport.
Description
This method defines the movieâs viewportâthat is, it specifies a subrectangle of the movie to appear in the Flash player. Flash movies are measured in a unit known as the twip. There are 20 twips to a point and 1,440 twips to an inch.
See Also
FlashPlayer.Pan( )
,
FlashPlayer.Zoom( )
Get JavaScript: The Definitive Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.