If I could attach a file (say test.swf) to a page and then want to include it in that page I could use the macros by doing something along the lines of:
{flash-swf:movie=test.swf|id=test|width=600|height=450|bgcolor=#003366|version=6,0,0,0}
The values loop=false, quality=high, menu=false, scale=exactfit, wmode=transparent could all be defaults. Which would generate the equivelant of something similar to:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="600" HEIGHT="450" id="test" ALIGN="">
<PARAM NAME=movie VALUE="http://server.com/confluence/download/attachments/600/test.swf">
<PARAM NAME=loop VALUE=false>
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=scale VALUE=exactfit>
<PARAM NAME=wmode VALUE=transparent>
<PARAM NAME=bgcolor VALUE=#003366>
<EMBED src="http://server.com/confluence/download/attachments/600/test.swf" loop=false menu=false quality=high scale=exactfit wmode=transparent bgcolor=#003366 WIDTH="600" HEIGHT="450" NAME="tls2" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
Currently I have to use
{html}
tags and either put the file externally or hard link to something like http://server.com/confluence/download/attachments/600/test.swf which I dont like incase the url changes. Id rather link like I do to attached images and attach the swf. See also direct linking (CONF-989).
What would be even better is to be able to link to swf's / images / general attachments on other pages (eg: if an image is commonly used) without having to store it externally. That might be better in a file repository (see issue CONF-990).