Page 1 of 1

Using Macromedia Flash inside my application

PostPosted: Jan 27, 2005 @ 12:42pm
by drgoldie

PostPosted: Jan 27, 2005 @ 2:40pm
by sponge

PostPosted: Jan 27, 2005 @ 3:00pm
by Dan East

PostPosted: Jan 27, 2005 @ 3:40pm
by drgoldie

PostPosted: Feb 9, 2005 @ 5:17pm
by drgoldie

PostPosted: Feb 9, 2005 @ 9:29pm
by Dan East

PostPosted: Feb 9, 2005 @ 10:40pm
by drgoldie

PostPosted: Jul 27, 2005 @ 1:15am
by ericb

PostPosted: Jul 27, 2005 @ 3:01pm
by hm

PostPosted: Aug 3, 2005 @ 10:31pm
by drgoldie
the problem with wrapping the pocket ie plugin version is that one has only minimal control over the flash movie.

so i ported an open source flash player (gameswf) to the pocketpc, which was just a few hours of work. it now runs fine with opengl es but not very fast. at least i have perfect integration into my 3d apps...

Daniel

PostPosted: Jul 26, 2006 @ 10:55am
by casafurtado
You can open a local flash animation but you have to pass a valid local file url like

myFlash->LoadMovie(0, CComBSTR("file://\\test.swf"));

PostPosted: Jul 26, 2006 @ 11:01am
by casafurtado
Note that IShockwaveFlash interface is different on PC and PDA

PC :

struct __declspec(uuid("d27cdb6c-ae6d-11cf-96b8-444553540000"))
IShockwaveFlash : IDispatch
{
//
// Raw methods provided by interface
//

virtual HRESULT __stdcall get_ReadyState (
/*[out,retval]*/ long * pVal ) = 0;
virtual HRESULT __stdcall get_TotalFrames (
/*[out,retval]*/ long * pVal ) = 0;
virtual HRESULT __stdcall get_Playing (
/*[out,retval]*/ VARIANT_BOOL * pVal ) = 0;
virtual HRESULT __stdcall put_Playing (
/*[in]*/ VARIANT_BOOL pVal ) = 0;

PDA :

struct __declspec(uuid("d27cdb6c-ae6d-11cf-96b8-444553540000"))
IShockwaveFlash : IDispatch
{
//
// Raw methods provided by interface
//

virtual HRESULT __stdcall LoadMovie (
/*[in]*/ int layer,
/*[in]*/ BSTR url ) = 0;
virtual HRESULT __stdcall Play ( ) = 0;
virtual HRESULT __stdcall StopPlay ( ) = 0;
virtual HRESULT __stdcall Stop ( ) = 0;

That's why I am using the following lines to generate flash headers

#ifdef WINCE
// copy flash.dll from your PDA Windows/macromedia
// directory to your project include directory
#import "flash.dll" rename("IDispatchEx","My_IDispatchEx") no_namespace raw_interfaces_only
#else
#import "PROGID:ShockwaveFlash.ShockwaveFlash" rename("IDispatchEx","My_IDispatchEx") no_namespace raw_interfaces_only
#endif