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

ReadyState

Description

0 = Loading, 1 = Uninitialized, 2 = Loaded, 3 = Interactive, 4 = Complete.

Message

FPCM_GET_READYSTATE

Structure

struct SFPCGetReadyState
{    
     // [out]
     long ReadyState;

     // [out]
     HRESULT hr;
};

Example

void GetReadyState(HWND hwndFlashPlayerControl)
{
     SFPCGetReadyState info;

     ::SendMessage(hwndFlashPlayerControl, FPCM_GET_READYSTATE, 0, (LPARAM)&info);
    
     if FAILED(info.hr)
          // Error
     {
          // ...
     }
     else
          // OK
     {
          TCHAR lpszBuffer[1024];

          wsprintf(lpszBuffer, _T("%d"), info.ReadyState);

          ::MessageBox(NULL, lpszBuffer, _T("Result"), MB_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.