Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 603303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:54:58+00:00 2026-05-13T16:54:58+00:00

We would like to display flash video files (tutorials) on our Sharepoint site. Problem

  • 0

We would like to display flash video files (tutorials) on our Sharepoint site.
Problem is, we cannot seem to either stop it from auto-playing (using the Windows Media Player) or start it playing by clicking (using flash embed).
We have a Content Editor WebPart with this code currently:

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="320" HEIGHT="240" id="Tutorial1" ALIGN="">
<PARAM NAME=movie VALUE="video.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#333399>
<EMBED src="http://mydomain.com/infocentre/Videos/video.swf" quality=high bgcolor=#333399 WIDTH="320" HEIGHT="240" NAME="video.swf" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT> 

Any idea how we can get a “play” button or begin the video playing once the user clicks it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:54:58+00:00Added an answer on May 13, 2026 at 4:54 pm

    The way you are embedding the SWF object, it will automatically load and start playing (as you described). The general technique of delay loading or loading based on a click is to actually wrap the object HTML code in some javascript, and have it dynamically added to the DOM based on your click event. This is also how sites don’t actually load or start playing a video file until it scrolls into view happens – instead of being bound the the click event, they hook up to some other visibility trigger.

    There are a bunch of SWF loader scripts on the internet, but in a nutshell you do something like this:

    <a id="player" href="#" onclick="playfile()">Play File</a>
    

    and the definition for playfile()

    function playfile() {
      // create the param and embed tags, set their values
      var param = document.createElement('param');
      param.name = "movie";
      param.value = "video.swf";
      var embed = document.createElement('embed');
      embed.src = "video.swf";
      embed.quality = "high";
      embed.bgcolor = "#333399";
      embed.width = 320;
      embed.height = 240;
      embed.name = "video.swf";
      // create the object tag and add the param and embed children
      var object = document.createElement('object');
      object.width = 320;
      object.height = 240;
      object.appendChild(param);
      object.appendChild(embed);
      // add new element after A tag
      document.getElementById('player').appendChild(object);
    }
    

    This is completely rough and untested, and may not even work – but the idea is sound and should get you headed in the right direction. Best of luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 376k
  • Answers 376k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The easiest way to segment an image into regions is… May 14, 2026 at 8:29 pm
  • Editorial Team
    Editorial Team added an answer is an IIS 7 specific tag, so you should not… May 14, 2026 at 8:29 pm
  • Editorial Team
    Editorial Team added an answer Yes. See this article. Here's an example from there: Console.BackgroundColor… May 14, 2026 at 8:28 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.