flash - Play swf files in C# -


i add 'shockwaveflashobject' in toolbox , drag on form , write below code nothing happen why?

axshockwaveflash1.movie=application.startuppath+"\flash.swf";         axshockwaveflash1.play(); 

and

axshockwaveflash1.loadmovie(0, application.startuppath + "\flash.swf");         axshockwaveflash1.play(); 

because of escape character;

string path = application.startuppath+"\flash.swf"; 

path equal c:\users\username\documents\visual studio 2008\projects\windowsformsapplication1\windowsformsapplication1\bin\debuglash.swf see ...\debug + \f has converted debug

to avoid escaping characters use @

string path = application.startuppath+@"\flash.swf"; 

now path equal c:\users\username\documents\visual studio 2008\projects\windowsformsapplication1\windowsformsapplication1\bin\debug\flash.swf

prolly that's want get.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -