FlashPlayerControl Help >> Access to Native Flash ActiveX Interface >> Properties
Description
Specifies the base directory or URL used to resolve all relative path statements in the Flash Player movie. This attribute is helpful when your Flash Player movies are kept in a different directory from your other files.
Messages
FPCM_GET_BASE
FPCM_PUT_BASE |
Structures
struct SFPCGetBase
{
LPTSTR lpszBuffer;
DWORD dwBufferSize;
HRESULT hr;
};
struct SFPCPutBase
{
LPCTSTR lpszBuffer;
HRESULT hr;
};
|
Example
void GetBase(HWND hwndFlashPlayerControl)
{
SFPCGetBase info;
info.lpszBuffer = NULL;
::SendMessage(hwndFlashPlayerControl, FPCM_GET_BASE, 0, (LPARAM)&info);
if FAILED(info.hr)
{
return;
}
info.lpszBuffer = (TCHAR*)LocalAlloc(LPTR, info.dwBufferSize * sizeof(TCHAR));
::SendMessage(hwndFlashPlayerControl, FPCM_GET_BASE, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
::MessageBox(NULL, info.lpszBuffer, _T("Result"), MB_OK);
}
LocalFree((HLOCAL)info.lpszBuffer);
}
void PutBase(HWND hwndFlashPlayerControl, LPCTSTR Base)
{
SFPCPutBase info;
info.lpszBuffer = Base;
::SendMessage(hwndFlashPlayerControl, FPCM_PUT_BASE, 0, (LPARAM)&info);
if FAILED(info.hr)
{
}
else
{
}
}
|
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.
|