Google应用引擎swf文件未显示

时间:2013-06-11 09:29:34

标签: google-app-engine

我尝试在GAE使用flash gallery,但它不起作用。
flashgallery.swf没有显示。
我正在使用www.labnol.org/internet/host-website-on-google-app-engine/18801/进行gae托管,并尝试使用www.flash-gallery.org/features.html进行Flash库。<登记/> 闪光灯厨房包含

flashgallery.html - 可以在这里看到flash画廊
flashgallery.php
flashgallery.swf
swfobject.js
default.xml - 颜色设置
img - 厨房图像的文件夹

flashgallery.html中的脚本是

<!-- Script that embeds gallery. -->
<script language="javascript" type="text/javascript">
var so = new SWFObject("flashgallery.swf", "gallery", "770", "1300", "8"); // Location of SWF file. You can change gallery width and height here (using pixels or percents).
so.addParam("quality", "high");
so.addParam("allowFullScreen", "true");
so.addParam("wmode", "transparent");
so.addVariable("content_path","img"); // Location of a folder with JPG and PNG files (relative to php script).
so.addVariable("color_path","default.xml"); // Location of XML file with settings.
so.addVariable("script_path","flashgallery.php"); // Location of PHP script.
//so.addVariable("api_key","xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"); // Flickr API key.
so.write("gallery");
</script>


和flashgallery.php这里 https://docs.google.com/file/d/0B8rRNUE8dnLZY3doM3lmTXc3RjQ/edit?usp=sharing

我不知道是什么问题。是php文件的问题?我听说GAE现在支持php ...
我部署了包含这些文件的flashgallery文件夹,然后转到 * .appspot.com / flashgallery / flashgallery.html但没有出现。闪光灯在那里,但只是白色的屏幕。当我右键单击它时,它说“电影未加载”

1 个答案:

答案 0 :(得分:0)

1)在记事本或其他文本编辑器应用程序中打开app.yaml

2)并按照代码复制粘贴

application: yourApplicationname
version: 1
runtime: python
api_version: 1

handlers:
- url: /(.*\.(gif|png|jpg|ico|js|css|swf|php))
  static_files: \1
  upload: (.*\.(gif|png|jpg|ico|js|css|swf|php))

- url: /robots.txt
  static_files: robots.txt
  upload: robots.txt 

- url: .*
  script: main.py

3)保存文件并将其上传到appengine

*请注意yourApplicationname应该是您实际应用名称的名称。

这对我有用