This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Using Macromedia Flash inside my application


Using Macromedia Flash inside my application

Postby drgoldie » Jan 27, 2005 @ 12:42pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby sponge » Jan 27, 2005 @ 2:40pm

holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby Dan East » Jan 27, 2005 @ 3:00pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby drgoldie » Jan 27, 2005 @ 3:40pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby drgoldie » Feb 9, 2005 @ 5:17pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby Dan East » Feb 9, 2005 @ 9:29pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby drgoldie » Feb 9, 2005 @ 10:40pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby ericb » Jul 27, 2005 @ 1:15am

ericb
pm Member
 
Posts: 1
Joined: Jul 27, 2005 @ 1:13am


Postby hm » Jul 27, 2005 @ 3:01pm

User avatar
hm
pm Member
 
Posts: 201
Joined: Dec 28, 2003 @ 8:47pm
Location: Seattle, WA


Postby drgoldie » Aug 3, 2005 @ 10:31pm

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
drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby casafurtado » Jul 26, 2006 @ 10:55am

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"));
casafurtado
pm Member
 
Posts: 2
Joined: Jul 26, 2006 @ 10:51am


Postby casafurtado » Jul 26, 2006 @ 11:01am

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
casafurtado
pm Member
 
Posts: 2
Joined: Jul 26, 2006 @ 10:51am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron