FlashPlayerControl Help >> Access to 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


LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
...
case WM_NOTIFY: { NMHDR* pNMHDR = (NMHDR*)lParam; if (hwndFlashPlayerControl == pNMHDR->hwndFrom) { switch (pNMHDR->code) { case FPCN_FSCOMMAND: { SFPCFSCommandInfoStruct* pInfo = (SFPCFSCommandInfoStruct*)lParam; MessageBox(hWnd, pInfo->command, _T("FSCommand(): command"), MB_OK | MB_ICONINFORMATION); MessageBox(hWnd, pInfo->args, _T("FSCommand(): args"), MB_OK | MB_ICONINFORMATION); break; } } } } }

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.