How to get a flash movie in SharePoint

Alright I admit I had never displayed flash in a SharePoint site until today.  I figured it would be hard and really it isn’t too hard.  All you need to do is upload the .SWF file to a web location (I used a document library but it could be on a different server) then add a content editor web part to your page.  Now go into your content editor web part and click on source editor.  Now paste the following code into the web part.


<OBJECT classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″
codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0
WIDTH=”550″ HEIGHT=”400″ id=”myMovieName”>
<PARAM NAME=movie VALUE=”myFlashMovie.swf”>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src=”/support/flash/ts/documents/myFlashMovie.swf” quality=high bgcolor=#FFFFFF WIDTH=”550″ HEIGHT=”400″
NAME=”myMovieName” ALIGN=”” TYPE=”application/x-shockwave-flash”
PLUGINSPAGE=”http://www.macromedia.com/go/getflashplayer“>
</EMBED>
</OBJECT>

Replace myFlashMovie.swf with the url of your SWF file.


That is it.  You now have a flash movie on your site.


I also found that my favorite company Smiling Goat has a web part that handles all of this for you.  Go here http://www.smilinggoat.net/stuff.aspx and download the flash movie web part.



Shane
SharePoint Help



73 Comments so far

  1.   Eugene on October 6th, 2006          Reply

    If you have html page calling Flash movie

    You upload all related file to your sharepoint website or even to any other website add standard Page viewer web part at set link to html wrapper.

    It is working

  2.   Bradley on October 20th, 2006          Reply

    Is there a way to get around the “Click to activate and use this control” issue that came out with the IE update? The javascript workaround seems to require and external javascript file. Is there an easier way?

  3.   Ze Wen on November 21st, 2006          Reply

    Anybody, can help me how to use the flash movie viewer from http://www.smilinggoat.net/stuff.aspx??? I have put it in virtual server, but then i can’t put my *.swf file… Help me PLIZZZZ…

  4.   Ken on December 26th, 2006          Reply

    I would like to put a swf on the top banner. Is there any way?

  5.   Dave on March 9th, 2007          Reply

    Whenever I try to embed my Flash code into a page content field through the html editor, the code just goes away after I press [OK]. I can write other html, but for some reason SharePoint is disregarding my flash code. Has anybody else had this problem? Any ideas?

  6.   Shane on March 9th, 2007          Reply

    You need to use the source button to add your code.

  7.   Dave on March 9th, 2007          Reply

    I am using the [Edit HTML Source] button when I put in my Flash code. Is there a different source button that I’m not using?

  8.   Steve on May 14th, 2007          Reply

    Seems simple, but I’m pretty simple, too. When I do this, what I see displayed is nothing but “Press spacebar or enter to activate this control.” When I do eith, nothing happens. What might I be doing wrong?
    Thanks

  9.   Clay on May 24th, 2007          Reply

    Dave, you’re missing the really simple part. 🙂 When you go to edit the content editor web part, there are two big buttons – one for Rich Text Editor and one for Source Editor. You are clicking the top one and need to click the bottom one. That puts you in Source mode where you can input direct HTML that will look just like what you see when you are on a website and click View -> Source.

  10.   gopakumar on June 4th, 2007          Reply

    Hi ,
    I badly need you guys help.

    I have put a streaming video say : Test.flv in my Flash media server.

    Now I added a content editor web part in my sharepoint site page .In the code I have how will I refer the stream ,assuming its on server 10.10.10.10

    I tried to put rtmp://10.101.10.10/Test/Test.flv

    Its not working.
    If I add the flv file to sharepoint site ,it is working.
    But I need to stream from my Flash Media Server.
    It understands only “rtmp” ,protocol.

    Please help

  11. How are you?
    Good bye! Take care. God bless you!,How are you?
    Good bye! Take care. God bless you!,How are you?
    Good bye! Take care. God bless you!,How are you?
    Good bye! Take care. God bless you!

  12.   How did you come to be here? ,mlmonly,mlmonly on June 14th, 2007          Reply

    How did you come to be here?
    ,How did you come to be here?
    ,How did you come to be here?
    ,How did you come to be here?

  13.   Raydio on June 15th, 2007          Reply

    I understand everything here, but my problem is uploading the *.swf… MOSS 2007 seems to be screwing up the file.

    All the files I’ve tried work fine until I upload them to MOSS, when I download’em again they still don’t work.

    Any advice appreciated

  14.   Joe on June 20th, 2007          Reply

    This is great. I am having a problem with the location of the flash file. Do I have to stored the file in the site?

  15.   Joe on June 20th, 2007          Reply

    Does the .swf file have to reside inside of the sharepoint site?

  16.   noela on July 22nd, 2007          Reply

    Hi. I`ve been using successfully tips in this page. I would like to have a navigation bar in order to control the flash movie. I suppose it could be done during the swf creation. But may be I can include this bar as part of the code inserted with source code in the web part.
    Thanks

  17.   Tony Jones on July 23rd, 2007          Reply

    All, FYI….

    Upload all your SWF files using the upload feature from the image/document library. I tried dragging SWFs into SPD and it corrupted all of them!

  18.   Rock on November 26th, 2007          Reply

    how do i upload a flash file into sharepoint.
    location of the file.
    i use MOSS 2007

  19.   Rock on November 26th, 2007          Reply

    i need to place flash file in sharepoint.
    i use MOSS 2007
    i used the code above but it did not work out.

  20.   Canilucas on December 11th, 2007          Reply

    I tried this and didn’t get it to work. I have a FLASH file that imports a TXT file for content. When I used this technique, just pointing to the FLASH file in the EMBED code, all my text fields came up as undefined. My FLASH files resides on another server. I tried linking to it directly, but that didn’t work either.

    So I used the Page Viewer Web Part instead. It worked like a charm!

  21.   ChrisM on December 19th, 2007          Reply

    Hey – so I was having a lot of the same problems as all of the other poster above. The 2 solutions that worked for me are as follows:

    1. Use the Page Viewer web part (as posted by Eugene).

    2. Use the SmilingGoat FlashViewer webpart…but be sure to populate the field with the shortcut to the FlashPlayer’s CAB file

    (this shortcut is in the code of Shane’s original post)

    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0

    Hope this helps any who were frustrated as I was.

  22.   Jack on January 10th, 2008          Reply

    Ok, I’m trying to put a Flash animation on a SharePoint site a different way. I know how to use content editor/source Web parts and all that like the back of my hand. I don’t want my flash animation there.

    I put the appropriate code and links to it in the default.master page immediately after the tag. It works and displays just like I want it to (above the bar where one would sign in as a user of the Web site, typically the first thing at the top).

    But it does not display AT ALL when one is viewing the site anonymously. And, unforutnately, I want anonymous users to see this.

    Any ideas/help? I trying dragging Web parts (Page Viewer, etc.) to the top of SharePoint page above where your title/logo/description would be, I’ve been researching and trying to find a solution for the past 5 hours roughly. And I’m about to bang my head through a wall (patience is FINALLY wearing thin :P)

    Much thanks in advance.

    Jack

  23.   Rajesh on January 29th, 2008          Reply

    Can any one help me in viewing .flv file? that woudl be really great!!

    Regards,
    Rajesh

  24.   Adrian on February 4th, 2008          Reply

    Hi Dave, I am also experiencing the same problem as yours. I can see anything after pasting my codes in “Edit HTML Source”

  25.   Daren on February 13th, 2008          Reply

    How about adding a SWF via a list. Has anyone figured out a work around for that. I can add flash through SPD but not via any of the lists. Everything I’ve read says SharePoint strips out object tags by design.

  26.   David on March 13th, 2008          Reply

    For this to work you have to add the content into a content editor webpart, not into a wysiwyg field from a content type. although they are seemingly the same. This will only work through a webpart.

  27.   Neeraj Sharma on March 16th, 2008          Reply

    Hi,

    I need to embed a flash file into sharepoint.The Page Viewer Web Part works fine.. but the issue is i am getting teh undefined error in the web page.. The situation is the flash gets the data from SQL server via an aspx page…now i am confused that how to put the aspx, .swf and other related files in MOSS..so that i can see the data also in sharepint page along with the jazziness on flash..

    Can anyone help me out plz..
    Neeraj Sharma

  28.   Rachel on April 7th, 2008          Reply

    I have managed to get the flash movie into sharepoint but I now need to pass in the SharePoint Logged on user as a flashvar param. Does anyone know how to do this?

  29.   Morris on April 17th, 2008          Reply

    Thank you, Thank you, Thank you…I have been unsuccessful finding how to import flash until I found this link.

  30.   Kris on April 29th, 2008          Reply

    Thank you!!! after alot of pulling my hair out (of which I do not have) your code was the only one that finally worked!!

  31.   nator on May 7th, 2008          Reply

    Use the Page Viewer web part (as posted by Eugene). Worked great for me.

  32.   Ben on May 14th, 2008          Reply

    this is a great solution, except that the EMBED tag is not WC3 compliant anymore. replace with:

  33.   Hemendra on May 15th, 2008          Reply

    Hi,
    I am using flash menu in my sharepoint site.i added one content editor web part and put the below code in source editor.but my flash menu is not displaying can you please tell me .where i am wrong?

    i have uploaded swflash.cab file in sharepoint site because some permission issue.

  34.   Jorge on June 6th, 2008          Reply

    I added the Content Editor Web Part and used the embed information from Youtube and Viola!!! it worked!

  35.   Jon on August 12th, 2008          Reply

    I have no problems uploading my flash movie or embedding it onto the site. I have video controls that I would like to use on the video but they dont show when embedded onto the site. Is there a way to solve this problem. I have uploaded the video control skin to the folder with all of the other relevent flash objects. I know it works as when I view the .swf file all shows how it should.

    If anyone can shed some light it would be greatly appreciated.

    Cheers

    Jon

  36.   maryann on August 15th, 2008          Reply

    i’m trying to upload a flv/swf file to a sharepoint intranet site – because my flv file is too large, the i/t department requested I place it on their media server – what happens then is it tries to open my link to the page in windows media player – if I go to the server and just click on my page there, it plays fine??

  37.   tjb on August 25th, 2008          Reply

    Well, it doesn’t work in a Teamsites Wiki page. The code is just pulled right out when you click Save.

  38.   Tariq Younas on September 28th, 2008          Reply

    Great. Good way to show your flash animation.

  39.   sergio on December 19th, 2008          Reply

    I am using Page Viewer Web part to view Flash movie. It works fine if the Flash files are on another web server. How do I do use the MOSS server to display an html file (that drives the movie)? I have to use the same server to host Flash and MOSS.
    Thanks

  40.   Sep on February 10th, 2009          Reply

    Does any software need installing on the Sharepoint server? Mine isn’t displaying using any of these methods. The swf is in the top level of the Moss site collection documents
    Thanks

  41.   vikpri on June 18th, 2009          Reply

    Thanks for the post.

    The flash works fine in sharepoint page.However,flash has an asp page at the end which is of submit type.
    The asp page does not execute in sharepoint.any ideas on what needs to be done to run asp page in sharepoint?

    Error: the source code of asp is displayed after clicking submit button)

    Thanks

  42.   sheida on July 9th, 2009          Reply

    i insert flash movie in sharepoint and my movie has a button that link to a site,but when show movie in sharepoint button dont show that site,please help me

  43.   Wilfdnrc on July 13th, 2009          Reply

    vyEU76

  44.   Jeremiah on July 20th, 2009          Reply

    I got the original instructions to work no problem. I noticed that there is a web part “Flash Movie Player” but I couldn’t get that to work. New feature?

  45.   Stiow on September 2nd, 2009          Reply

    Webpart to do this for you
    http://flashpart.codeplex.com/

  46.   Gladys (Atlanta) on October 8th, 2009          Reply

    Hello

    Thanks for this help..wow it took me like 2 hrs but I did it..I was confused with the Server, you know the URL..but I copy it and paste it..in the area you said..like this one I replace the VALUE for my whole URL..Thanks.. love it!! I am learning more..

  47.   Joanna on October 12th, 2009          Reply

    How do I get a .flv to work using that code

  48.   etene on October 15th, 2009          Reply

    I’m saving up money for an iphone, and when will it be out in the philippines? I know sometime in 2008, but I just want to be prepared, so if its $499 in US how much will it probably be in philippines?

    ________________
    unlock iphone 3gs

  49.   etene on October 20th, 2009          Reply

    I want the iPhone 3G but I don’t want to sign a contract with AT&T so i’m planning to buy the iphone 3G in Spain cuz i’ll be there during vacation and i was wondering if they have any contract requirements like the ones here.

    ________________
    buy unlock iphone

  50.   etene on October 20th, 2009          Reply

    I want the iPhone 3G but I don’t want to sign a contract with AT&T so i’m planning to buy the iphone 3G in Spain cuz i’ll be there during vacation and i was wondering if they have any contract requirements like the ones here.

    ________________
    buy unlock iphone

  51.   etene on October 20th, 2009          Reply

    I want the iPhone 3G but I don’t want to sign a contract with AT&T so i’m planning to buy the iphone 3G in Spain cuz i’ll be there during vacation and i was wondering if they have any contract requirements like the ones here.

    ________________
    buy unlock iphone

  52.   etene on October 20th, 2009          Reply

    I want the iPhone 3G but I don’t want to sign a contract with AT&T so i’m planning to buy the iphone 3G in Spain cuz i’ll be there during vacation and i was wondering if they have any contract requirements like the ones here.

    ________________
    buy unlock iphone

  53.   Ranjan on November 11th, 2009          Reply

    Thank you so much, it works fine

    Ranjan

  54.   etene on November 19th, 2009          Reply

    how do i foword text messegess cos sum 1 sent me a text and i wanted to sent that text to sum1 else but i dont know how to do it so can u help me?and my phone is a http://www.unlockiphone22.com

  55.   Amy on December 6th, 2009          Reply

    I modified your code as following. It works on my site.
    Note that there are two places you should modify:
    (1) VALUE
    (2)EMBED src

  56.   bad credit loans on December 30th, 2009          Reply

    Good Day!!! msmvps.com is one of the best informational websites of its kind. I enjoy reading it every day. I will be back.

  57.   Steve on February 4th, 2010          Reply

    This was just what I needed, thanks a lot Shane!

  58.   Buy Ambien on February 13th, 2010          Reply

    agreeing derided section acquirer tract describe interview artificially counselors jila nuisance
    ambisoltersos makalavertonicos

  59.   Buy Ambien on February 17th, 2010          Reply

    examine kurnia intersect manipulated indicate pavilion longest impersonate acceleration addiction paramount
    saramartisakis kulturenostro

  60.   Stacie on March 12th, 2010          Reply

    Pageviewer web part worked like a charm, with no need to add any html code! 🙂

  61.   Flv Player on March 17th, 2010          Reply

    Good information.

    Thanks for sharing this info and post.

  62.   drid on April 9th, 2010          Reply

    a problem with this is that the video just loops (plays).

  63.   rfarqleet on April 15th, 2010          Reply

    Thank you for the good post!

    I like this blog is fantastic is really good written on “how to get a flash movie in sharepoint”

    Keep it up Good job!

  64.   Flv Player on May 14th, 2010          Reply

    very useful technical post thanks.

  65.   Alberto on August 4th, 2010          Reply

    I had a flash video in sharepoint (content web part). Problem is this: there sare some link button in swf file linked to othere pages. They do not work after inserting swf file. Why??

    Thanks
    ALberto

  66.   Altaf Pinjari on October 17th, 2010          Reply

    Add following code in html source editor

    1 change VALUE attribute to your sources file path

    2 change SRC attribute to your sources file path

  67.   Altaf Pinjari on October 17th, 2010          Reply

    Add following code in html source editor

    1 change VALUE attribute to your sources file path

    2 change SRC attribute to your sources file path

  68.   vinod on December 1st, 2010          Reply

    I have embedded the flash file in sharepoint flash contain a button and when the button clicked sharepoint regular inner pop-ups should open how to do that any idea please help me on this.

  69.   vSharePoint on April 5th, 2011          Reply

    I was having same problem but figured it out how to insert flash into SharePoint 2010 pages. Here is the instruction
    http://virtualizesharepoint.com/2011/04/05/adding-flash-to-sharepoint-2010/

  70.   scottsturf on August 19th, 2011          Reply

    thanks shane! works like a charm with my xcelsius crystal reports files.

  71.   Pete D on January 18th, 2012          Reply

    I tried the solution presented here for .swf files, works great for it’s intended purpose, will use it in the future.

    Now, the issue I’m facing is that I run a Training Web Portal. The computer based training that are produced are distributed as CDs and work great from the CDs or from the desktop, but not so well in the Sharepoint site. I have tried the Content Webpart, the Page viewer web part with little success. The training hangs at various parts of the training, I’ve reviewed the HTML and XML and cannot figure out the problem. I have my network personnel looking at the IE timeout rate but no luck. Any suggestions or thoughts on what could be the problem?

  72.   Phil on September 24th, 2012          Reply

    This helped enough to get something fixed that refused to work! THANKS!

  73.   steven.disney@me.com on December 11th, 2012          Reply

    OK this works well in IE and SharePoint but does NOT with Firefox.
    Does there need to be some other code needed for FF?

Leave a Reply