F-IN-BOX DLL Edition Help >> Native Flash ActiveX Interface >> Properties

ReadyState

Description

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

Message

[ C++ ]
FPCM_GET_READYSTATE

Structure

[ C++ ]
struct SFPCGetReadyState
{    
    // [out]
    long ReadyState;

    // [out]
    HRESULT hr;
};

Example

[ C++ ]
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

3: supported
4: supported
5: supported
6: supported
7: supported
8: supported
9: supported



Copyright © Softanics. All rights reserved.
F-IN-BOX is a trademark of Softanics.
Macromedia and Shockwave Flash are trademarks of Adobe