本文介绍了如何使用AxShockwaveFlash在vb.net中播放swf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
AxShockwaveFlash1.Movie = Application.StartupPath&C:\Documents and Settings\Administrator\Desktop\Lib\\\
obel.swf
AxShockwaveFlash1.Play()
这是我使用的paly swf的代码,但它不起作用。
AxShockwaveFlash1.Movie = Application.StartupPath & "C:\Documents and Settings\Administrator\Desktop\Lib\nobel.swf"
AxShockwaveFlash1.Play()
this the code for paly swf which is used by me but it not work.
推荐答案
dim q as string=chr(34) ' character 34 is a quotation mark
AxShockwaveFlash1.Movie = Application.StartupPath & " " & q & "C:\Documents and Settings\Administrator\Desktop\Lib\nobel.swf" & q
AxShockwaveFlash1.Play()
现在的价值是:
c:\program files\shockwave\sw.exeC:\Documents and Settings \Administrator\Desktop\Lib\\\
obel.swf
希望这会有所帮助。
Now the value would be:
c:\program files\shockwave\sw.exe "C:\Documents and Settings\Administrator\Desktop\Lib\nobel.swf"
Hope this helps.
这篇关于如何使用AxShockwaveFlash在vb.net中播放swf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!