I have an ASP. Net 2.0 website with C# 2005 as the programming language. I am using CSS for the layout. Currently I am using a plain/static .Gif image as my header. I would like to enhance the look by using some animation in the header. I used some flash utilities to design my required animated banner. But since I was unable to use the .swf file directly I converted it to .Gif which I am able to use and display. The problem is the original .swf file was of the size around 75 Kb whereas the converted .Gif file is huge (around 4.5 Mb). I want to display the original .swf file to improve speed.
I have used the CSS stylesheet to display the .Gif animated banner. I don't know how can I use the .Swf file directly.
Kindly guide me.
Thank You.
Lalit Kumar Barik
Niradhip ChakrabortyPosted May 7, 2009, 4:29 AM
Dont convert .swf file to gif use it directly as showed below.
<table width="1000" height="649" border="0" align="left" cellpadding="0" cellspacing="0">
<tr valign="middle" align="center" height="100%"> <td height="465" valign="middle" style="font-size: 10pt; color: #084c89; font-family: Arial;border-right-color: teal">
<p> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="15" viewastext> <param name="movie" value="../Images/percent.swf"> <param name="quality" value="high"> <embed src="../Images/percent.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="15">embed> object> p> td> tr> table>//change the source to your .swf path