C# .NET - C# problem in playing SWF file (windows application)

Asked By Ebin Roy on 12-Jan-09 10:03 PM

hi guys,

 Anyone knows how to play swf file in windows application.I tried window media player (axWindowsMediaPlayer control). .It is not working sometimes playing half only and then playing from the start.sometimes in middle goes to next swf file.My task is given below for better clarification...

I need to get duration of the SWF file.In axWindowsMediaPlayer I am getting the duration as Zero,other file type like avi,wmp,flv I am getting current duration.

There is a group of SWF file.its path I stored in an array & playing one by one.After playing all the files I need to do someother task.I also tried Shockwave flash object but dont know how to get duration ,the media end event ,not to loop etc....

How can I achieve this?

Is there any free third party tools available?

If give the explanation with the code I will be delighted.

Thanks in Advance,


try this link - C_A P replied to Ebin Roy on 13-Jan-09 04:04 AM

Maybe u can get some hints form http://blogs.msdn.com/mswanson/archive/2006/10/15/example-c-code-for-reading-flash-swf-files.aspx





read this - C_A P replied to Ebin Roy on 13-Jan-09 04:04 AM

The Macromedia DevNet center has just published an http://www.macromedia.com/devnet/mx/flash/articles/stock_history.html I wrote that discusses embedding the Flash player within Windows applications using C#.

The article is based on the http://www.macromedia.com/software/drk/productinfo/product_overview/volume4/sample_apps.html#stock_chart which is included on http://www.macromedia.com/go/drk4/. The application uses the line chart component from the http://www.macromedia.com/software/drk/productinfo/product_overview/volume4/flashmx.html to chart historical stock data within the windows app.

You can read the entire article http://www.macromedia.com/devnet/mx/flash/articles/stock_history.html.

sry... the above article is diffrent - Ebin Roy replied to C_A P on 13-Jan-09 04:17 AM

the above article does not help me much,I already gone through that.my requirement is playing swf file after finishing another.
Pavan replied to Ebin Roy on 28-Oct-10 06:48 AM
Try to play .swf files in Internet Expoler.