I add ‘ShockwaveFlashObject’ in toolbox and drag it on form and write below code but 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;
path is actually equal to
C:\Users\username\Documents\Visual Studio 2008\Projects\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debuglash.swfas you see
...\Debug + \fhas converted toDebugto avoid escaping characters use
@now path is equal to
C:\Users\username\Documents\Visual Studio 2008\Projects\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\flash.swfprolly that’s what you want to get.