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++ ]
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

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