Answered by:
How to add a swf file to announcement web part on home page.

Question
-
I need to add a flash (.swf) file to an announcement under the announcements web part on my intranet home page. It showed a red X when I attempted it before. The other way I attempted nothing showed up.
Does anybody know how to do this?
Wednesday, June 6, 2012 7:01 PM
Answers
-
Hey,
Insert below code to Content Editor Web Part or directly to the page below Announcement using SPD
<object width="200" height="200"> <param name="movie" value="yourflash.swf"> <embed src="yourflash.swf" width="200" height="400"></embed> </object>
You can modify Width and Height as per your requirement
Hope this helps
Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights
- Marked as answer by MAJack Thursday, June 7, 2012 11:10 AM
Wednesday, June 6, 2012 8:10 PM -
If you want to add SWF into a column and then display it with Announcement web part them its not possible OOTB, you have to write / find for a Java Script which will call the file to run after page loads.
you can refer - http://blog.pathtosharepoint.com/2008/09/01/using-calculated-columns-to-write-html/ where you will get code
Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights
- Marked as answer by MAJack Thursday, June 7, 2012 11:10 AM
Wednesday, June 6, 2012 10:42 PM
All replies
-
Hey,
Insert below code to Content Editor Web Part or directly to the page below Announcement using SPD
<object width="200" height="200"> <param name="movie" value="yourflash.swf"> <embed src="yourflash.swf" width="200" height="400"></embed> </object>
You can modify Width and Height as per your requirement
Hope this helps
Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights
- Marked as answer by MAJack Thursday, June 7, 2012 11:10 AM
Wednesday, June 6, 2012 8:10 PM -
Thanks for reply.
I went to our test page to add the same flash file to a Content Editor Web Part. It worked fine with no troubles.
So with that said, is it impossible to add a flash file (.swf) to a list view? My "Announcements" web part is a list view that allows the upload of hyperlinks, and images, but won't allow me to add a flash file. Is this assumption correct?
Wednesday, June 6, 2012 8:31 PM -
If you want to add SWF into a column and then display it with Announcement web part them its not possible OOTB, you have to write / find for a Java Script which will call the file to run after page loads.
you can refer - http://blog.pathtosharepoint.com/2008/09/01/using-calculated-columns-to-write-html/ where you will get code
Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights
- Marked as answer by MAJack Thursday, June 7, 2012 11:10 AM
Wednesday, June 6, 2012 10:42 PM -
If you want to add SWF into a column and then display it with Announcement web part them its not possible OOTB, you have to write / find for a Java Script which will call the file to run after page loads.
you can refer - http://blog.pathtosharepoint.com/2008/09/01/using-calculated-columns-to-write-html/ where you will get code
Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights
That's what I figured. Thank you for your response.Thursday, June 7, 2012 11:10 AM