Show page source of wm3d/HowToUse/webpage #78454

= Attach on web-pages =

WM3D swf files can be used on web pages without compilation, since XML data can be loaded through javascript.
You can set XML data of the swf file through "Redraw" command.
See the following example, where the object id of the wm3d swf file is assumed to be "WM3D".

{{{ javascript
  document.WM3D.Redraw(
'<WMXML>\n' +
  '<ATOM pos="4 4 4" color="0xFF0000" radius="5" />\n' +
  '<ATOM pos="4 10 4" color="0xFF0000" radius="5" />\n' +
  '<ATOM pos="4 4 10" color="0xFF0000" radius="5" />\n' +
  '<ATOM pos="10 4 4" color="0xFF0000" radius="5" />\n' +
'</WMXML>');
}}}

Note: parameter wmode should be set to "gpu" (or "direct"?) in your "object" or "embed" tag.