You are not logged in.
I think it is a file permissions error - the XML files are not acessible. Below is the error message I received when trying to access the XML files directly (both data and settings):
Forbidden You don't have permission to access /map/ammap/ammap_data.xml on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Yes, embedding settings and data in the HTML is totally possible.
Instead of "settings_file" and "data_file" parameters just use "map_settings" and "map_data" containing respective XML. I.e.:
so.addVariable("map_data", "<map ...>...</map>"); so.addVariable("map_settings", "<settings>...</settings>");
I'm trying to use:
so.addVariable("map_data", "<map ...>...All content exernal data xml file...</map>");
so.addVariable("map_settings", "<settings>...All content external settings file...</settings>");
To embed (settings & data) in HTML file in order to be used on Google Site (problem to access external XML files !)
That seems working but accepted content must be a string on the same line in the editor (notepad)
When I try to respect XML arborescence of existing files (many many lines...) => syntax is not accepted
Do you have an idea to to that in order to maintain a clear view of setting and data inside HTML ?
so.addVariable("map_data", "<map ...>\ ...All content exernal data xml file...\ </map>");
I've tried internal settings in HTML instead external file - with so.addVariable("map_settings", "......");
For data, so.addVariable("map_data", "<map....> .... </map>") do not work !
I've tested a variante : so.addVariable("map_data", escape('........')); with escape & simple quote and that works
I do not understand why ? Any idea ?
In other hand I can reach swfobject.js file on Google Drive, as:
no way to reach ammap.swf as:
var so = new SWFObject("https://docs.google.com/a/ ... /uc?id=key2", "ammap", "100%", "100%", "8", "#00EEFF")
Also I cannot reach an image file inside <movie> as:
<movie long="2" lat="40" file="https://docs.google.com/a/ ... /uc?id=key3" center="true" width="10" height="10" title="test" text_box_x="650" text_box_width="300" text_box_height="400">
My goal is to place all ressources inside HTML (data & settings) and some other in Google Drive with key access
Do you have any idea to solve these problems
Many, many thanks
I'm not sure why it does not work without seeing your actual settings. Must be some escaping issue.
As for hosting ammap.swf on Google Drive, what does the browser Network console say about those loads?
When hosting ammap.swf on Google Drive, Browser network console => no error
Just "Error Loading file: ammap/maps/world.swf" message appears when loading the map
(for this test I've maintened "world.swf" in ammap/maps sub directory
2nd test: when hosting also "world.swf" on Google Drive
Map appears, but settings & data seem not taken in account (no area colors, no movie)
Browser network console indicates: "PPB_Graphics2D.PaintImageData: Rectangle is outside bounds"
Thanks for your help
This is due to Flash security restrictions. The swf cannot load external files from a different domain unless it contains a crossdomain.xml file.
Here is more information about it:
http://livedocs.adobe.com/flash/9.0/mai … 01085.html