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

PercentLoaded

Description

Returns the percent of the Flash Player movie that has streamed into the browser so far; possible values are from 0 to 100.

Message

FPCM_PERCENTLOADED

Structure

struct SFPCPercentLoaded
{    
     // [out]
     long Result;

     // [out]
     HRESULT hr;
};

Example

void InvokePercentLoaded(HWND hwndFlashPlayerControl)
{
     SFPCPercentLoaded info;

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

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

          ::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.