PDA

Click to See Complete Forum and Search --> : Flash GUI in .NET application



sprout74
03-30-2004, 01:51 PM
Q:
Can Flash MX 2004 be used as the GUI for an application (desktop software, not web based) written for the .NET framework?

I want to author an application that would be perfect for flash as a the GUI, but it would need to be able to support a pretty full API for Flash and the wrapper application, written in c#, as they would be passing a lot of data between eachother, as well as getting and sending data over the web.

So, can Flash be used in .NET? What kind of API does it have? Or am I stuck with the Windows look/feek :(

thanks,

sprout

RWWarren
03-30-2004, 04:35 PM
This paper outlines the "how to" using the flash ocx

http://www.macromedia.com/devnet/mx/flash/articles/flash_vb.pdf

sprout74
03-31-2004, 05:44 AM
Thanks for the response, will look into it and keep those interested on any progress I make by posting here.

Cheers,

sprout

sprout74
03-31-2004, 05:57 AM
I found this link on MM's site:
http://www.macromedia.com/devnet/mx/flash/articles/stock_history.html

Its an article about c#/Visual Studio/Flash COM.

geedubb
04-19-2004, 08:32 AM
This is really cool stuff.

I havent used VB6, but am using C# .NET and VS.NET to build all of my websites. I am however interested in creating a Flash/.NET application for a specific project. Can anyone point me in the direction of similar, or updated (to .NET) version of the 2 articles mentioned in this thread?

I'd be really interested. I'm sure you can use the Flash.ocx object in .NET, but I'd imagine that there is a more elegant (efficient?) way in .NET.

Thanks in advance

sprout74
04-20-2004, 05:02 AM
afraid there aint much out there...

There are some books on FlashMX and ASP.NET integration on Amazon, but it seems that GUI development is still being done using .NET's native components.

geedubb
04-20-2004, 05:09 AM
Thanks for the reply.

I'm definately going to persue this and I'll post a reply for all to see if I make any good discoveries. The GUI stuff that .NET can do is pretty good, but lets face it doing slick fades and tweens that will work cross-browser with DHTML is going to be a lot harder than with Flash!

sprout74
04-21-2004, 06:20 AM
yeah, we are developing a web application at work that uses flash for a part of the gui.

We are just discovering that it is not all roses, as there are limitations to flash (like saving state, Component APIs).

geedubb
05-11-2004, 09:57 AM
Hi Sprout,

I am just getting back onto this again. I have built most of the Flash app that I need, and am now looking to incorporate this into a simple .NET application. All I need the app to do is to play the .swf (via the Flash.ocx) and load and save XML files to and from the local disk.

I haven't ever done this before, so excuse my ignorance. I am using VS 2002 .NET, have created a basic CS windows application project, and also have placed the Flash OCX on the default Form (Form1.cs).

I am stuck with 2 things:

1 - I need to reference the movie - (called fstest.swf, in same directory as app). I believe I need to set the 'movie' property on the .ocx control, but this doesn't load the movie.

2 - I need to know where to place the event handlers in my .NET app to catch 2 FSCommands.

I hope you, or anyone can help - I have a presentation on Thursday....


Thanks in advance

sprout74
05-11-2004, 10:31 AM
nice work!

We have put that project on hold here, so I have not done any development on this.

If you would like help, and feel like showing the world what you have done, you could post your work?

I would be glad to have a go at it, but can not garentee the time I could commit to it.

But nice work!!

sprout

geedubb
05-11-2004, 11:33 AM
Hi Sprout,

Thanks for your reply. Unfortunately the project I am doing is for work, so I can't really distribute it.

Anyhow, I have managed to get the 'mother' app working (C#, Visual Studio 2002), and FSCommands are being picked up, complete with arguments in it.

The link that helped is here: http://www.vbpc.de/members/aw/tut2/

It's in German, and also in VB, but it helped me out, even though I can't speak/read German!

Cheers
GW

geedubb
05-12-2004, 05:23 AM
Oh dear (for want of a stronger word!!)

I have just tried adding my proper .swf file to the .NET app. - before I was using a simple test .swf, with 2 buttons, and I got the functionality working with that.

Looks like I celebrated too early...

The difference between my real .swf and the test .swf is that the real .swf has many external files. When I load the .NET exe with the real (final) .swf none of the external files load into it!!!! When I load the .swf in Flash player, everything loads as expected.

I assume that this may be a security 'feature' of either flash and/or .NET, but I don't know.

Sprout - have you had this problem before? Do you know a workaround?

Thanks in advance

sprout74
05-12-2004, 05:42 AM
i have no idea, but things i would try:

as the application is going to be standalone, then perhaps there is no need to load external SWFs. Mabey you need to re-build the final movie to include the external SWFs as part of the main movies internal library.

That way there is no need to try and figure out paths, and you can just export them for actionscript to use.

If you do not want to do that, then perhaps the .NET application can pass the absolute path to the flash movie, so that it can use that together with the name of your external SWF, and depending on your file structure, any other directories where the external media lives.

hope that helps and thanks for link.

let me know, if you are allowed, how it goes.

sprout

geedubb
05-12-2004, 05:59 AM
Hi Sprout,

I have tried specifying absolute paths in my flash movie. I have found that the format:

C:/test/flash/presenter.swf

(incidentally the format C:\test\flash\presenter.swf doesnt work)

works when I specify it in the .swf file. I have updated all my references in the .swf to this format, and it now works as expected.

Thanks for your quick response. I will try and post a wee demo when I get a mo tomorrow (C# source, and a test .fla file).

All the best

sprout74
05-12-2004, 10:01 AM
Ta for the demo. :)

But don't get in trouble with the boss over this if you are worried about giving away the secrets of the temple.

but a I wouldn't say no to a demo....

rw55
11-14-2005, 12:22 PM
Hi,

i am also intersted to build a GUI in flash for a .NET app in C#.
Has someone managed to do it?
i read this tutorial:
http://www.dmxzone.com/ShowDetail.asp?NewsId=10728
which explain how to do it in vb.net.
It says it is not cross platform. Is it also right about an app. written in C#?
And it also says it might not be able to fit future versions of Flash.
Anyway if someone has made any progress please help me with that.

10x