0

我尝试在 GAE 使用 flash 库,但它不起作用。
flashgallery.swf 未显示。
我正在使用 www.labnol.org/internet/host-website-on-google-app-engine/18801/ 进行 gae 托管,并尝试将 www.flash-gallery.org/features.html 用于 Flash 画廊。
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 但没有任何结果。闪光灯在那里,但只是白屏。当我右键单击它时,它说'电影未加载'

4

1 回答 1

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 应该是您实际应用程序名称的名称。

这对我有用

于 2013-06-28T10:15:13.230 回答