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

LoadMovie

Description

Loads the movie identified by url to the layer. The argument type is integer for layer and string for url.

Message

FPCM_LOADMOVIE

Structure

struct SFPCLoadMovie
{    
     // [in]
     int layer;
     // [in]
     struct
     {
          LPCTSTR lpszBuffer;

     } url;


     // [out]
     HRESULT hr;
};

Example

void InvokeLoadMovie(HWND hwndFlashPlayerControl, int layer, LPCTSTR url)
{
     SFPCLoadMovie info;

     info.layer = layer;
     info.url.lpszBuffer = url;

     ::SendMessage(hwndFlashPlayerControl, FPCM_LOADMOVIE, 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.