FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Properties
Description
True if the animation loops, false to play once.
Messages
FPCM_GET_LOOP
FPCM_PUT_LOOP |
Structures
struct SFPCGetLoop
{
VARIANT_BOOL Loop;
HRESULT hr;
};
struct SFPCPutLoop
{
VARIANT_BOOL Loop;
HRESULT hr;
};
|
Example
void GetLoop(HWND hwndFlashPlayerControl)
{
SFPCGetLoop info;
::SendMessage(hwndFlashPlayerControl, FPCM_GET_LOOP, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
TCHAR lpszBuffer[1024];
wsprintf(lpszBuffer, _T("%d"), info.Loop);
::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
}
}
void PutLoop(HWND hwndFlashPlayerControl, VARIANT_BOOL Loop)
{
SFPCPutLoop info;
info.Loop = Loop;
::SendMessage(hwndFlashPlayerControl, FPCM_PUT_LOOP, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
}
}
|
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.
|