Solved

How to Embed a Flash Movie in a MasterPage Content Placeholder

Posted on 2007-12-04
3
1,817 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
[X]
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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 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