JavaScript: The Definitive Guide

25.131. FlashPlayer.Zoom( ): zoom in or out

Flash 2

25.131.1. Synopsis

void Zoom(integer percentage)

25.131.1.1. Arguments

percentage

The percentage by which to scale the viewport, or 0 to restore the viewport to its full size.

25.131.2. Description

This method scales the viewport by a specified percentage. Arguments between 1 and 99 reduce the size of the viewport, which makes objects in the movie appear larger. Arguments greater than 100 enlarge the viewport (but never beyond the size of the movie) and make objects in the movie appear smaller. As a special case, the argument 0 restores the viewport to full size, so that the entire movie is visible.

Категории