FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Methods

Pan

Description

Pans a zoomed-in movie to the coordinates specified by x and y. Use mode to specify whether the values for x and y are pixels or a percent of the window. Pan does not pan beyond the boundaries of the zoomed-in movie. The argument type for all arguments is integer. The mode can be: 0 = pixels, 1 = % of window.

Message

FPCM_PAN

Structure

struct SFPCPan
{    
     // [in]
     long x;
     // [in]
     long y;
     // [in]
     int mode;

     // [out]
     HRESULT hr;
};

Example

void InvokePan(HWND hwndFlashPlayerControl, long x, long y, int mode)
{
     SFPCPan info;

     info.x = x;
     info.y = y;
     info.mode = mode;

     ::SendMessage(hwndFlashPlayerControl, FPCM_PAN, 0, (LPARAM)&info);
    
     if FAILED(info.hr)
          // Error
     {
          // ...
     }
     else
          // OK
     {
          // ...
     }
}

Flash versions

5: supported
6: supported
7: supported


Copyright © 2004 Softanics. All rights reserved.
Delphi is a trademark of Borland Software Corporation.
Macromedia and Shockwave Flash are trademarks of Macromedia, Inc.