Sunday, January 10, 2010

Looking for an easier way to add a Flash file to a SharePoint content page? Download and install the Flash WebPart SharePoint Solution and you will be able to add Flash movies to your SharePoint web pages without having to edit any html code. Simply add the Flash WebPart to a page, configure it in the WebPart editor by setting the movie URL, width, and height, and you are good to go.

Download the Flash WebPart (SharePoint Solution)

Download the Flash WebPart Source Code (C# with all Solution Assets)

Flash WebPart Installation

1. Unzip FlashWebPart.MikeKnowles.zip

2. Follow the instructions in Readme.txt to install the SharePoint solution to your SharePoint farm.

3. The installation will prompt you to optionally install the Flash WebPart feature to one or more Site Collections. It's highly recommended that you deploy to the Site Collections during the install process as its quicker then having to activate the feature in each site individually.

Using the Flash WebPart

1. If necessary, activate the Feature in the target Site Collection. If you installed the Feature to the Site Collection when you ran the setup program above then you can skip this step.

2. Within the target Site Collection, open a SharePoint page which contains a WebPart Zone and select:
    Site Actions > Edit Page

3. Click to Add a Web Part, and select the SharePoint Flash WebPart as shown below:

image

4. Click Edit > Modify Shared Part

image

5. Within the WebPart Editor, scroll down and click to open the Miscellaneous tab:

image

6. Enter the Flash URL, width, and height of your Flash Movie (SWF). Here are some test values to get you started:

Flash URL: http://www.adobe.com/products/flashplayer/include/marquee/design.swf
Flash Width: 792
Flash Height: 294

Bookmark and Share  Comments [4] | Permalink | SharePoint
Friday, February 19, 2010 8:05:46 AM (Mountain Standard Time, UTC-07:00)
Do you have a solution like this for sharepoint 2010?
Yara
Sunday, February 21, 2010 3:05:02 PM (Mountain Standard Time, UTC-07:00)
Tested this weekend and verified the MikeKnowles.FlashWebPart.swf file included in the download will install on the SharePoint 2010 Beta. Since this requires going through Central Admin and not installing with the exe file, it's a bit tricker due to the way some of the admin screens and terminology have been improved with 2010. I will post a setup page for 2010 with screenshots soon.
Monday, February 22, 2010 3:14:19 PM (Mountain Standard Time, UTC-07:00)
Mike, I have deplyed your WSP and it works with the url you provided on the example. However, when I change it to point to my flash file on one of our internal servers it will not display it. What could I be doing wrong?

The url is structured like this: http://ideas4.care.org/ideaflash/rotator.swf and it displays through the web browser just fine. The flash piece is using xml to display text and the images are in an image folder.
Benjamin
Monday, February 22, 2010 6:36:49 PM (Mountain Standard Time, UTC-07:00)
Benjamin,

Although I am not a Flash programmer, I have seen flash files have problems sometimes when they are opened across websites or domains. There is crossdomains.xml file (if I remember correctly) that can be setup to help direct things correctly. Especially since the Flash file has some smarts in it to load xml and images I am thinking this could be it. One test might be to try putting a plain vanilla flash file in the same directory as rotator.swf and see if that loads ok in the webpart. If it does then its probably something related to how the Rotator ActionScript is loading.

Here's a very simple SWF you can download from Adobe that will just display the width and height and flash player version - its perfect for these types of tests:

http://kb2.adobe.com/cps/155/tn_15507/images/flashplayerversion1.swf
width 280
height 149

Hope this helps!

Leave a Comment

Name (required)
Email (will not be published)
Website
 

Comment Preview
Subscribe
Top 5 Posts
Add Google Analytics to a SharePoint Publishing Site
Integrating jQuery 1.3, ASP.NET 3.5 Visual Studio 2008
Add Custom Table Formats to SharePoint Content Editor
Configuring log4net for SharePoint Windows Authentication
Convert Visual Studio 2008 Class Library Project to Web Application Project
Tags
ASP.NET (5) dasBlog (5) GoogleAnalytics (2) jQuery (1) log4net (2) SharePoint (18) WebDesign (3)
 
 
 
Spreadfirefox Affiliate Button
 
Download Notepad++