HOW TO
Information provided describes how to add Flash files (.SWF) below the layer list in the HTML viewer.
Code:
document.writeln('<FRAME NAME="TOCFrame" SRC="TOCFrame.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="Auto" FRAMEBORDER="Yes" RESIZE="YES">');
Code:
document.writeln('<FRAMESET ROWS="*,151">');
document.writeln('<FRAME NAME="TOCFrame" SRC="TOCFrame.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="Auto" FRAMEBORDER="Yes" RESIZE="YES">');
document.writeln('<FRAME NAME="FlashFrame" SRC="flash.htm" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="No" FRAMEBORDER="Yes" RESIZE="YES">');
document.writeln('</FRAMESET> ');
Code:
<html>
<head>
<title>Flash test page</title>
</head>
<body BGCOLOR="Silver" LEFTMARGIN=0 RIGHTMARGIN=0 TOPMARGIN=0>
<object width="180" height="150">
<param name="movie" value="flash/sample.swf">
<embed src="sample.swf" width="180" height="150">
</embed>
</object>
</body>
</html>
Note:
The size of the <OBJECT> and the <embed> tags have been specified to be 180 by 150. This is a good size to display in the HTML viewer, but it can be increased or decreased.
Note:
To execute, the flash files need a plugin installed in the Web browser and most Web browsers have them previously installed. In case the Web browser does not have the plugin installed, design a way to prompt the user to install the missing plugin at the time you are creating the flash file.
Get help from ArcGIS experts
Download the Esri Support App