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

OnReadyStateChange

Description

Generated when the ready state of the control changes. The possible states are 0=Loading, 1=Uninitialized, 2=Loaded, 3=Interactive, 4=Complete.

Example

[ C++ ]
  1. LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)  
  2. {  
  3. ...  
  4.     case WM_NOTIFY:  
  5.     {  
  6.         NMHDR* pNMHDR = (NMHDR*)lParam;  
  7.   
  8.         if (hwndFlashPlayerControl == pNMHDR->hwndFrom)  
  9.         {  
  10.             switch (pNMHDR->code)  
  11.             {  
  12.                 case FPCN_ONREADYSTATECHANGE:  
  13.                 {  
  14.                     SFPCOnReadyStateChangeInfoStruct* pInfo = (SFPCOnReadyStateChangeInfoStruct*)lParam;  
  15.   
  16.                     TCHAR lpszBuffer[1024];  
  17.                     _sntprintf(lpszBuffer, sizeof(lpszBuffer) - 1, _T("newState: %d"), pInfo->newState);  
  18.   
  19.                     MessageBox(hWnd, lpszBuffer, _T("OnReadyStateChange()"), MB_OK | MB_ICONINFORMATION);  
  20.   
  21.                     break;  
  22.                 }  
  23.             }  
  24.         }  
  25.     }  
  26. }  

Flash versions

All versions are supported



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