简体   繁体   English

如何部署SWF文件?

[英]How to deploy SWF file?

I have a SWF file I created using Adobe Flex and I cannot seem to properly embed it inside an HTML page. 我有一个使用Adobe Flex创建的SWF文件,但似乎无法正确地将其嵌入HTML页面中。 If I take another SWF file and use it instead, it works all the time. 如果我使用另一个SWF文件并改用它,那么它将一直有效。 My SWF file is pretty big (1 MB) while the other one is tiny (25 KB). 我的SWF文件很大(1 MB),而另一个很小(25 KB)。 However, I can wait 5-10 minutes and the server connection is super fast and it still will never load. 但是,我可以等待5到10分钟,服务器连接速度非常快,而且仍然无法加载。

Is there something I need to do to the SWF to have it start up properly? 我需要对SWF进行一些设置才能使其正确启动吗? My SWF almost never runs. 我的SWF几乎从未运行。

Thoughts? 思考?

I see two posible problems here: 我在这里看到两个可能的问题:

  • Browser is not able to download your SWF file 浏览器无法下载您的SWF文件
    • You can check it if you add SWF file name directly into browser URL. 如果将SWF文件名直接添加到浏览器URL中,则可以进行检查。 For example http://your_domain/page/test.swf . 例如http://your_domain/page/test.swf If you will get "Not Found" error then your file was uploaded incorrectly 如果出现“未找到”错误,则文件上传错误
  • You did something wrong when embeding SWF file into HTML 将SWF文件嵌入HTML时,您做错了
    • If you have a working file then you can try to overwrite it with new one (leave original file name). 如果您有一个工作文件,则可以尝试用新文件覆盖它(保留原始文件名)。 Problem can be in sigle symbol in new file name, even letter case should match. 问题可能出在新文件名中的符号符号中,即使字母大小写都应该匹配。
    • Or you can try using swfobject library for embeding flash into html 或者您可以尝试使用swfobject库将Flash嵌入到html中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM