FPCPutMovieFromResource
Syntax
BOOL WINAPI FPCPutMovieFromResource(
HWND hwndFlashPlayerControl,
HINSTANCE hInstance,
LPCTSTR lpName,
LPCTSTR lpType);Description
The FPCPutMovieFromResource function loads a Flash movie directly from a resource embedded in the application.
This allows developers to include SWF files in their executable as resources and play them without creating temporary files on disk.
hwndFlashPlayerControl – handle to the Flash Player control window.
hInstance – handle to the module containing the resource.
lpName – name of the resource.
lpType – type of the resource (e.g., "SWF").
The function returns TRUE on success or FALSE on failure.
Example
// Load embedded SWF from resources
if (!FPCPutMovieFromResource(hwndFlashPlayerControl,
GetModuleHandle(NULL),
_T("MOVIE1"),
_T("SWF")))
{
MessageBox(NULL, _T("Failed to load movie from resource"), _T("Error"), MB_OK);
}