[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How to Embed a Flash Movie in a MasterPage Content Placeholder

Posted on 2007-12-04
3
Medium Priority
?
1,819 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

656 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