SharePoint Rich-Text filed editor allows us to write the HTML code, but it doesn’t allow us to embed Flash files.
So, I have searched on this issue and come with a solution. For that, I’m using swfobject.js file and adding some script lines to the page where we want to embed this flash file. Following are the procedures used to embed Flash file into SharePoint
Step 1: Upload the swfobject.js file to SharePoint library
EmbedFlash method gets all the div elements in current page and filters those elements based on classname=’flashcontent’. If div’s calssname is flashcontent, then it split the id of the div tag based on :: and it call the embedSWF method from swfobject.js to embed the flash file.
<div class=”flashcontent” id=”flash_video.swf::video1::425::355::9::#FFFFFF”></div>
id=”[Flash URL]::[div id]::[Height]::[Width]::[FlashVersion]::[Background Colour]