|
Quick links:
F-IN-BOX DLL Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
F-IN-BOX DLL Edition Help >> Native Flash ActiveX Interface >> Methods TCurrentFrame
Description
Returns the number of the current frame for the timeline specified by target. The frame number returned is zero-based, meaning frame 1 of the Flash movie would be 0, frame 2 would be 1, and so on. The argument type is string.
Message
[ C++ ]
FPCM_TCURRENTFRAME Structure
[ C++ ]
struct SFPCTCurrentFrame
{
// [in]
struct
{
LPCTSTR lpszBuffer;
} target;
// [out]
long Result;
// [out]
HRESULT hr;
};
Example
[ C++ ]
void InvokeTCurrentFrame(HWND hwndFlashPlayerControl, LPCTSTR target)
{
SFPCTCurrentFrame info;
info.target.lpszBuffer = target;
::SendMessage(hwndFlashPlayerControl, FPCM_TCURRENTFRAME, 0, (LPARAM)&info);
if FAILED(info.hr)
// Error
{
// ...
}
else
// OK
{
TCHAR lpszBuffer[1024];
wsprintf(lpszBuffer, _T("%d"), info.Result);
::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK);
}
}
Flash versions
3: supported
4: supported 5: supported 6: supported 7: supported 8: supported 9: supported Copyright © 2004 - 2008 Softanics. All rights reserved. F-IN-BOX is a trademark of Softanics. Macromedia and Shockwave Flash are trademarks of Adobe
Quick links:
F-IN-BOX DLL Edition Home Page
| Buy license
| Welcome to our forum!
| Ask your question
| Help on the Web
|