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 >> Properties TotalFrames
Description
Returns the total number of frames in the movie. This is not available until the movie has loaded. Wait for ReadyState = 4.
Message
[ C++ ] FPCM_GET_TOTALFRAMES Structure
[ C++ ] struct SFPCGetTotalFrames { // [out] long TotalFrames; // [out] HRESULT hr; }; Example
[ C++ ]
void GetTotalFrames(HWND hwndFlashPlayerControl) { SFPCGetTotalFrames info; ::SendMessage(hwndFlashPlayerControl, FPCM_GET_TOTALFRAMES, 0, (LPARAM)&info); if FAILED(info.hr) // Error { // ... } else // OK { TCHAR lpszBuffer[1024]; wsprintf(lpszBuffer, _T("%d"), info.TotalFrames); ::MessageBox(NULL, lpszBuffer, _T("Result"), MB_OK); } } Flash versions
3: supported
4: supported 5: supported 6: supported 7: supported 8: supported 9: supported Copyright © 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
|