播放存储在c#资源中的swf文件 [英] play swf file stored in c# Resources
本文介绍了播放存储在c#资源中的swf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想播放存储在c#资源中的swf文件
我尝试播放存储在这样的路径中的swf
hi all,,
i want to play swf file stored in c# Resources
i try to play swf stored in path like this
string path = "C:\\Users\\Eng_Ran\\Documents\\Visual Studio 2008\\Projects\\Test Application\\Resources\\file.swf";
axShockwaveFlash1.LoadMovie(0,path);
axShockwaveFlash1.Play();
但在设置我的应用程序后,找不到路径和SWF文件未播放
我想从资源中获取路径
thanx
but after set up my application the path not found and swf file not played
i want to get path from Resources
thanx
推荐答案
您要从资源中读取swf文件路径.请检查以下代码.
You want to read the swf file path from resource. Pls check the below code.
string path = GetGlobalResourceObject("MyResource", "GlobalResourceString1");
axShockwaveFlash1.LoadMovie(0,path);
axShockwaveFlash1.Play();
这篇关于播放存储在c#资源中的swf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文