Section 25.123. FlashPlayer.Pan( ): move the viewport of the movie


25.123. FlashPlayer.Pan( ): move the viewport of the movie

Flash 2

25.123.1. Synopsis

 void Pan(integer dx, integer dy,          integer mode) 

25.123.1.1. Arguments

dx, dy

The horizontal and vertical amounts to pan.


mode

This argument specifies how to interpret the dx and dy values. If this argument is 0, the other arguments are taken as pixels. If this argument is 1, the others are percentages.

25.123.2. 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.

25.123.3. See Also

FlashPlayer.SetZoomRect( ), FlashPlayer.Zoom( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net