Name

FlashPlayer.SetZoomRect( ): set the viewport of a movie — Flash 2

Synopsis

void SetZoomRect(integerleft, integer top,
                 integer right, integer bottom)

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.