我目前在从本地主机加载视频文件时遇到问题。我试着用-use-network = false编译我的mxml。但我不能这样做,因为我的项目也是通过youtubeloader从YouTube上加载视频。使用加载我的本地VID帮助加载本地视频文件
<:mx:VideoDisplay id="vid" source="media/MyVideo.flv" height="250" width="250"/>
或有任何其他的方式来加载本地视频文件
代码即时通讯?
以下是错误
SecurityError: Error #2148: SWF file file:///C|/Users/ifcdu1/Desktop/MP/Main.swf cannot access local resource file:///C|/Users/ifcdu1/Desktop/MP/media/MyVideo.flv. Only local-with-filesystem and trusted local SWF files may access local resources.
这里是错误,如果我使用-use网编译=假
SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/Users/ifcdu1/Desktop/MP/Main.swf cannot access Internet URL http://www.youtube.com/apiplayer?version=3 .
任何帮助,将不胜感激。谢谢
是的,要么你被允许使用本地文件,要么你被允许访问网络文件,你不能同时访问两个文件。您可以按照@neeraj选择或考虑的方式交替使用桌面AIR版本,如果您想要同时访问这两个版本的话... – midhunhk 2011-06-08 07:07:54
好吧..有你的观点,非常感谢 – desmond 2011-06-08 07:14:30