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

OnFSCommand

Description

This event is generated when a GetURL action is performed in the movie with a URL and the URL starts with "FSCommand:". The portion of the URL after the : is provided in command and the target is provided in args. This can be used to create a response to a frame or button action in the Shockwave Flash movie.

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_FSCOMMAND:  
  13.                 {  
  14.                     SFPCFSCommandInfoStruct* pInfo = (SFPCFSCommandInfoStruct*)lParam;  
  15.   
  16.                     MessageBox(hWnd, pInfo->command, _T("FSCommand(): command"), MB_OK | MB_ICONINFORMATION);  
  17.                     MessageBox(hWnd, pInfo->args, _T("FSCommand(): args"), MB_OK | MB_ICONINFORMATION);  
  18.   
  19.                     break;  
  20.                 }  
  21.             }  
  22.         }  
  23.     }  
  24. }  

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