balitaJackson / flashcanvas

Automatically exported from code.google.com/p/flashcanvas
0 stars 0 forks source link

does not work with the downloading of images is not local servers #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
see attach example (from explorercanvas.googlecode.com)

Original issue reported on code.google.com by Kotofey....@gmail.com on 26 Aug 2010 at 11:56

Attachments:

GoogleCodeExporter commented 8 years ago
This is a very difficult problem. FlashCanvas uses flash.display.Loader.load() 
method to load images. But this method does not allow us to load images in 
other domain.

There are two possible solutions to this problem.

1. Place a crossdomain.xml file together with the image files.
2. Load images via local proxy CGI written in Perl or PHP.

In my opinion, the second solution is a more realistic one. I'll prepare a 
sample code of the proxy CGI.

Original comment by revu...@gmail.com on 28 Aug 2010 at 10:02

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r135.

Original comment by revu...@gmail.com on 9 Sep 2010 at 8:59

GoogleCodeExporter commented 8 years ago
I committed an above-mentioned proxy script.
http://flashcanvas.googlecode.com/svn/trunk/bin/proxy.php

From r135, this script is automatically called when you load a image from other 
domain. To make the PHP script work, you must enable cURL extension or 
allow_url_fopen option.

If you use FlashCanvas Pro, please try this nightly build:
http://flashcanvas.net/archive/FlashCanvasPro-20100909.zip

Original comment by revu...@gmail.com on 9 Sep 2010 at 9:04