If your animation is a flash animation, then you should use the "embed" or "object" tag.. You should use exactly the HTML you would use in an HTML page.. In the embed or object tag, just refer to the attached file as: $doc.getAttachmentURL("filename.swf", "download") For example when I embed flash I do it like that: #set($flashurl = $doc.getAttachmentURL("myflashfile.swf","download")) <center> <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="992" HEIGHT="587" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0"> <PARAM NAME=movie VALUE="${flashurl}"> <PARAM NAME=play VALUE=true> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=low> <EMBED SRC="${flashurl}" WIDTH=992 HEIGHT=587 quality=low loop=false TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> </OBJECT> </center> You might want to add {pre} and {/pre} around your HTML to make sure the wiki syntax treatments are disabled. In some cases in can garble the HTML. I might create a specific macro to make it easier to embed flash.. It seems like a good idea.. Ludovic Stephen Riolo a écrit :
Hi i couldn't find any help on this in the tutorial or boards: I'm trying to upload a small animation to a new wiki but don't know how to get it to display correctly after I attach the file. Tried it as animated gif but the gif doesn't animate. Is it possible to post/embed a flash movie or html version of a flash movie directly into the wiki page (something like {present:flash.swf} instead of an image, or {html:\s55k56... etc}) will this animate? does xwiki support this sort of content? How about interactive animated content?
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic