- fo.addVariable("zoom",zoom);
- fo.addVariable("api","<%= request.protocol + request.host_with_port %>/api/<%= API_VERSION %>/");
- fo.addVariable("policy","<%= request.protocol + request.host_with_port %>/api/crossdomain.xml");
- fo.addVariable("connection","XML");
- fo.addVariable("oauth_token","<%= token.token %>");
- fo.addVariable("oauth_token_secret","<%= token.secret %>");
- fo.addVariable("oauth_consumer_key","<%= token.client_application.key %>");
- fo.addVariable("oauth_consumer_secret","<%= token.client_application.secret %>");
- fo.addVariable("maximise_function","maximiseMap");
- fo.addVariable("minimise_function","minimiseMap");
- fo.addVariable("move_function","mapMoved");
- fo.write("map");
+ flashvars.maximise_function = "maximiseMap";
+ flashvars.minimise_function = "minimiseMap";
+ flashvars.move_function = "mapMoved";
+
+ var params = {};
+ params.base = "/potlatch2";
+
+ var attributes = {};
+ attributes.id = "potlatch";
+ attributes.bgcolor = "#FFFFFF";
+
+ swfobject.embedSWF("<%= asset_path("/potlatch2/potlatch2.swf") %>", "potlatch", "100%", "100%", "10.1.85","<%= asset_path("expressInstall.swf") %>", flashvars, params, attributes);
+ // 700,600 for fixed size, 100%,100% for resizable