Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to Embed a Flash Movie in a MasterPage Content Placeholder

Posted on 2007-12-04
3
1,813 Views
Last Modified: 2010-02-18
I currently have a website using a master page on all pages but the ones that display tutorial flash movies. I would like to put the movies inside the content placeholder. The initial problem I have when trying to translate from the html page to the content placeholder is the error "embed is not supported in transitional html." Here is my code:

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<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="688" height="583" id="Overview">
<param name="movie" value="Overview.swf"/>
<param name="quality" value="best"/>
<param name="bgcolor" value="#FFFFFF"/>

<embed src="Overview.swf" quality="best" bgcolor="#FFFFFF" width="688" height="583"
name="Overview" align="" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>

</asp:Content>

Is there a way to embed a flash movie inside a content placeholder? If so, please provide example code or suggestions as to how to do it.
0
Comment
Question by:rkulp
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
codeclay earned 500 total points
ID: 20403132
(1)Create a MasterPage  in visualstudio ASP.Net project .
(2)Right click the masterpage file in the solution explorer (in Visual studio) and choose 'Add Content Page'
(3)In the file that is generated, inside the asp content tags just specify the flash object tags like this ...
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<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="688" height="583" id="Object1">
<param name="movie" value="Overview.swf"/>
<param name="quality" value="best"/>
<param name="bgcolor" value="#FFFFFF"/>

<embed src="Overview.swf" quality="best" bgcolor="#FFFFFF" width="688" height="583"
name="Overview" align="" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
</asp:Content>
0
 
LVL 1

Author Comment

by:rkulp
ID: 20403202
codeclay,

If I read this correctly, it is exactly what I have done. The problem is that <embed> is not supported unless it is inside the <body> tag which does not appear in the content placeholder. Of course, I may be missing something.
0
 
LVL 1

Author Comment

by:rkulp
ID: 20403787
codeclay,

I reloaded the project without change and it worked fine. I don't understand why the IDE persists errors in come cases and not in others. Anyway, I will award the points to you.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question