PDA

Click to See Complete Forum and Search --> : Embed flash in C# application on a Pocket Pc



skatemaster
11-16-2005, 09:35 AM
Hi,
I've been trying asking this question at a some C# forums but with no luck, so now I try here:

Does someone know if it is possible to embed a flash file(.swf) in a C# application for Pocket Pc? I have no trouble doing this on a desktop project, but when I start project for Pocket Pc, that shockwave flash object is greyed out.

Best Regards
Magnus

PAlexC
11-16-2005, 12:58 PM
You can embed, I don't know how. Search the Macromedia Developer's Center and Flash Support pages.

Or, if you know C# you can use Neoswiff to write C# that's compiled to swf. I'm pretty sure it should help you embed swf content into other C# projects.

http://www.globfx.com/products/neoswiff/

There used to be a standalone version that didn't require Visual Studio, not sure what happened to it.

*EDIT*

Developer Center links:
http://www.macromedia.com/devnet/flash/articles/stock_history03.html#,embed%20flash%20c#

http://www.macromedia.com/devnet/flash/articles/stock_history.html

PAlexC
11-16-2005, 01:06 PM
Gah. Just re-read your post.

PocketPC? I don't think you can, you'd need to embed a Flash Lite object, which has to be supported on that particular device. Lite is a different version of the player/plug-in for mobile devices. The current stuff is for the regular Flash Player. I couldn't find anything on embedding Flash Lite into C#.

skatemaster
11-16-2005, 02:16 PM
To bad, but thanks! I really can't belive that it shouldn't be possible, pocket pc has a flash player 6 installed so it really feels like it should be some way to do it, it's so easy on the desktop. Maybe I have to look for ways to embed the whole webbrowser instead.

PAlexC
11-16-2005, 03:01 PM
The vanilla FP6 or the "mobile" version for that device?

I assume you want to use Flash as a GUI for something. Maybe Neoswiff has something that can help, worth checking out.

skatemaster
11-16-2005, 03:17 PM
As I have understod it the FP 6 for pocket pc is almost identical to the standard version for desktop computer, I will look more into Neoswiff.
The C# shell will be used mostly to send images from the built in camera and gpsdata from a bluetooth gps to the flash file. But also to allow saving of various data from flash.

hp3
11-17-2005, 10:08 AM
you build your own shell application to house the "free" Flash 6 active X control. This application can be C# or VB. Once you have the shell application set up, you can send data to and from flash with the xml socket and then use your custom C# code to do whatever you need to do with the OS.

Pick up a copy of "Flash the Future" from amazon.com which has a several chapters on how to do all of this.

Of course this all assumes that Macromedia will continue to make the Flash 6 active X control available for free download.

skatemaster
11-17-2005, 02:57 PM
Hi hp3!

I reed the book flash for the future a while ago, but as i recall they used an object to embed the whole "Pocket Internet Exlorer" in the embedded visual basic or c++ and I don't manage to do this with a C# project for pocket pc. All those objects are greyed out, do you know how to do this in C#?

hp3
11-18-2005, 11:51 AM
unfortunately, I do not have any experience with Pocket PC development. I was just passing along what I had read about this. You might ask for more help at the Macromedia handheld forums where there are people with experience building shell applications for the ActiveX control.

skatemaster
11-18-2005, 07:00 PM
Hi HP3,
I did so and unfortuna|y I found out that .net dosn't support active x controls at all or at least not without a third part software.

hp3
11-19-2005, 11:34 AM
hopefully MM will address this with the next version of Flash for PPC which is currently under beta testing.

skatemaster
11-27-2005, 07:50 AM
Small update - I've now installed .net 2005 and the new webbrowser object works very good. Very simple, just drag it to the stadge and set the url to the html file that holds the flash file. Only small problem is that seems to cache the flash file in some way so it makes it pretty hard to test new updates , dosn't even help to soft reset the PDA. Will look more into this tonight.

/magnus

melodymann
12-06-2005, 05:07 PM
Maybe you can answer my question in my thread titles how is this possible?
I think this app may help you out.
http://www.multidmedia.com/software/zinc/pocketpc/

amodesign
12-27-2005, 12:44 AM
greeting there~

I belive I have the same quesiton ~
I am using Visual studio 2003 and trying to develop an windows CE app that embed both media player and swf and some stuff that only windows ce form provides.

skatemaster had metioned that webbrowser object might be the only soution out?

I will go to try it out later with 2005 thanks~

Ulhas
09-04-2007, 09:24 AM
I am using VS.NET 2005 & facing the same problem of embeding the flash in C# for Pocket PC. suppose i use the webbrowser control to embed .html file & flash lite 2.1 .swf file embeded in it.

How can I catch the events occured in the .swf or the .html file? is it possible?can we use web browser's methods to catch these events?

any help is appreciable. thanks in advance.

alexandrem_blah
09-04-2007, 09:34 AM
I think xml is the answer...
Just create asp.net pages wich converts your objects then you load it from flash :D
i'm developing a project wich do it ! c# + sql server + flash lite for pocket pc

Ulhas
09-05-2007, 06:31 AM
hi alexandrem_blah
thanks for quick reply.

i have my swf ready which takes the datat from xml, my application is not web application then how can i use asp.net pages?

now i m able to embed swf file which is embeded html in webbrowser control.
it works fine & I am able to navigate through swf GUI by using arrow keys of emulator, but by using stylus on Pocket PC i can't able to interact with GUI. How can I do that? Also how to catch the events of index_changed & selected_index from .swf file in the C# code.

How u have catched the events from flashlite to ur C# code?

alexandrem_blah
09-05-2007, 07:16 AM
Then you have to create an web project wich will be the gateway for your objects ! i suppose that your project is a class library right ?

you can't catch those events on c#...
You have to catch it on flash an then call a xml or web service method

on my application i'm using both...xml to read info and web service to call methods of c# objects....all from my web project wich is the gateway

as you...i'm getting problems on adobe device central to emulate the pocket pc (touch screen) the way that i found to workaround is downloading windows mobile emulator http://www.microsoft.com/downloads/details.aspx?FamilyID=83a52af2-f524-4ec5-9155-717cbe5d25ed&DisplayLang=en

Ulhas
09-05-2007, 10:07 AM
thanks a lot for ur detailed reply.
my project is a stand alone application for Pocket PC & i want it's GUI in flashlite 2.1 & other things like data manipulation & functionalities of application in C#.
i am having my web project, i will try by using that one as a gateway.
It's more appreciable if u tell me briefly how u have done it in ur project.

Once again thanks a lot.

Ulhas
09-05-2007, 10:08 AM
hi

alexandrem_blah
09-05-2007, 10:15 AM
I'm not using visual studio pocket pc project....is that necessary ? i'm mean use both ??

i'm using only flash lite...not pocket pc project

here what i'm using
- flash lite
- c# class library (Business environment and connection to back-end)
- asp.net project wich has aspx pages (to generate xml and an admin program) and webservices (asmx)
- ms sql server

i don't need to use vs pocket pc project since flash lite is the front-end

Ulhas
09-06-2007, 05:49 AM
Thanks for your reply alexandrem , but I am working in .NET compact framework for Pocket PC using C# and here i cannot use asp pages.
What i am targetting here is databse and business logic using c# and GUI and animation using flashlite 2.1.......... I have started up with a c# project in vs 2005 and trying to embed flashlite html in it through web browser control.
For this you had adviced to use xml as interface between flash and c#. Plz can you elaborate this a little more ? - waiting for your reply

alexandrem_blah
09-06-2007, 07:15 AM
Then i cant help you...
i think it's not possible integrate flash and .net without asp.net page
sorry

Ulhas
09-10-2007, 07:01 AM
hi alexandrem,

Thanks for ur reply, I have choosed different way to do this now.

once again thank u very much.

selmaguzel
06-08-2008, 03:50 PM
Hi,
I want to use flash and media in my standalone compact framework application for wince5,too.
Can you explain how you successed this?
Thanks in advance.

hellvin
06-26-2008, 07:16 AM
Hi
Did anyone find a solution to this problem?
such a different approach as ulhas mentions might be helpful too.
Thanks

codefactory.ch
07-01-2008, 05:08 AM
Hi

you could check Janus (http://www.janus-flash.com). Their 'wrapper' allows to connect Flash embedded in a C# Form or FlashLite to your C# code if you like but already comes with a bunch of predefined methods.
It supports Pocket PC, Windows, Mac and with some few methods even Symbian devices. (.NET on Pocket PC and Windows)

Regards

Alex