manpower wrote:I use these commands in my program:
SWF1.Movie = App.Path & "" & "movie.swf"
CurrentFrame = SWF1.CurrentFrame
SWF1.GotoFrame (CurrentFrame - 5)
SWF1.TGotoLabel "_level0", "playhere"
SWF1.Play
SWF1.Stop
SWF1.Rewind
can anyone tell me how to do these in FlashPlayerControlDLL ?
and does it has any FullScreen function ?
The algorithm is the following: you go to the file functions_decl.inl and search a function. For example, you need GotoFrame. The declaration of this function in C is:
HRESULT WINAPI FPC_GotoFrame(/* in */ HWND hwndFlashPlayerControl, /* in */ long FrameNum);
Translate it into VB:
Private Declare Function FPC_GotoFrame Lib "f_in_box.dll" _
(ByVal hWnd As Long, ByVal FrameNum as Long) As Long
TGotoLabel:
[ C ]
HRESULT WINAPI FPC_TGotoLabelA(/* in */ HWND hwndFlashPlayerControl, /* in */ LPCSTR target, /* in */ LPCSTR label);
[ VB ]
Private Declare Function TGotoLabel Lib "f_in_box.dll" _
(ByVal hWnd As Long, ByVal target as String, ByVal label as String) As Long
For CurrentFrame.
[ C ]
HRESULT WINAPI FPC_CurrentFrame(/* in */ HWND hwndFlashPlayerControl, /* out */ long* Result);
[ VB ]
Private Declare Function FPC_CurrentFrame Lib "f_in_box.dll" _
(ByVal hWnd As Long, ByRef Result as Long) As Long
Also please download latest demo version of f-in-box. We included many new examples for VB.