1.add .swf file to any document library and open your master page in sharepoint designer

2.

see code  here

<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″ id=”myMovieName” style=”width: 710px; height: 248px”>
<param name=movie value=”your .swf file location”>
<param name=quality value=high>
< param name=bgcolor value=blue>
< param name=”salign” value=”T”>
//embed src=”here your .swf file location” quality=High bgcolor=#ffffff
NAME=”myMovieName” ALIGN=”” TYPE=”application/x-shockwave-flash”
PLUGINSPAGE=”http://www.macromedia.com/go/getflashplayer” style=”width: 710px; height: 115px” salign=”T”//</embed></object>
Note: remove // and replace with < and >

Add the above code in your filename.master after

<td class=”s4-titlelogo”>
<SharePoint:SPLinkButton runat=”server” NavigateUrl=”~site/” id=”onetidProjectPropertyTitleGraphic”>
<SharePoint:SiteLogoImage name=”onetidHeadbnnr0″ id=”onetidHeadbnnr2″ LogoImageUrl=”/_layouts/images/siteIcon.png” runat=”server”/>
< /SharePoint:SPLinkButton>
< /td>

<td>

add the code here..

</td>

Sample OutPut