Menu

[r11]: / trunk / SWFInvestigator / src / viewer / sandboxLoader.html  Maximize  Restore  History

Download this file

46 lines (43 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<HTML>
<!--
/****************************************************************************
* ADOBE SYSTEMS INCORPORATED
* Copyright 2012 Adobe Systems Incorporated and it’s licensors
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file
* in accordance with the terms of the license agreement accompanying it.
* ****************************************************************************/
-->
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Sandbox Loader</title>
<SCRIPT type="text/javascript">
//Stuff to send
var bridgeInterface = {};
function callChild() {
var mc = document.getElementById('mapperChild');
if (mc != null) {
var childInterface = mc.contentWindow.childSandboxBridge;
if (childInterface != null) {
childInterface.rewriteDiv(bridgeInterface);
}
}
}
function initFrame() {
window.setTimeout(callChild,2000);
}
</SCRIPT>
</HEAD>
<BODY>
<div id="mapper"></div>
<script type="text/JavaScript">
function writeViewerMap(sandboxRoot,viewerTemplate) {
var div = document.getElementById("mapper");
var frameString = '<iframe id="mapperChild" name="mapperChild" height="100%" width="100%" scrolling="no" src="' + viewerTemplate + '" documentRoot="app:/Viewer/" sandboxRoot="'+ sandboxRoot + '/"/>';
div.innerHTML = frameString;
initFrame();
}
</script>
</BODY>
</HTML>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.