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

FrameNum

Description

The currently displayed frame of the movie. Setting this will advance or rewind the movie.

Messages

[ C++ ]
FPCM_GET_FRAMENUM
FPCM_PUT_FRAMENUM

Structures

[ C++ ]
struct SFPCGetFrameNum
{    
    // [out]
    long FrameNum;

    // [out]
    HRESULT hr;
};


struct SFPCPutFrameNum
{
    // [in]
    long FrameNum;

    // [out]
    HRESULT hr;
};

Example

[ C++ ]
void GetFrameNum(HWND hwndFlashPlayerControl)
{
    SFPCGetFrameNum info;

    ::SendMessage(hwndFlashPlayerControl, FPCM_GET_FRAMENUM, 0, (LPARAM)&info);

    if FAILED(info.hr)
        // Error
    {
        // ...
    }
    else
        // OK
    {
        TCHAR lpszBuffer[1024];
        wsprintf(lpszBuffer, _T("%d"), info.FrameNum);

        ::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
    }
}


void PutFrameNum(HWND hwndFlashPlayerControl, long FrameNum)
{
    SFPCPutFrameNum info;

    info.FrameNum = FrameNum;

    ::SendMessage(hwndFlashPlayerControl, FPCM_PUT_FRAMENUM, 0, (LPARAM)&info);

    if FAILED(info.hr)
        // Error
    {
        // ...
    }
    else
        // 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