Embed Adobe Flash Video code into simple web page

camoh
camoh used Ask the Experts™
on
Hi,

I need some help to embed this code into a very simple internal web page for use by our staff for training.

<object width="425" height="256"><param name="movie" value="http://images.tv.adobe.com/swf/player.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="FlashVars" value="fileID=6088&context=434&embeded=true&environment=production"></param><embed src="http://images.tv.adobe.com/swf/player.swf" flashvars="fileID=6088&context=434&embeded=true&environment=production" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="256"></embed></object>


This code is available at this website...

http://tv.adobe.com/watch/learn-indesign-cs5/getting-started-what-is-indesign-cs5/

I would like to embed this using Visual Studio 2005 ASP.NET. It doesn't just seem so simple as to insert this into an aspx webform.

My level of knowledge in ASP is very limited. I have IIS and ASP installed and have been able to publish a few pages but have not had great success with this Flash Video.

Your help would be greatly appreciated!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
jorge_torizResearch & Development Manager

Commented:
I think if you embed your code directly in your source code (aspx) it would run without problems... what is happening?, what are you getting?

Author

Commented:
Hi,

I attached the code that I have inserted into my aspx webform.

I get these errors...

Error    1    Validation (XHTML 1.0 Transitional): Element 'param' is an empty element and cannot have a closing tag. Instead, it must end with />.    C:\Users\<username>\Documents\Visual Studio 2005\Projects\AdobeTraining\AdobeTraining\WebForm1.aspx    12    106    AdobeTraining
Error    2    Validation (XHTML 1.0 Transitional): Element 'param' is an empty element and cannot have a closing tag. Instead, it must end with />.    C:\Users\<username>\Documents\Visual Studio 2005\Projects\AdobeTraining\AdobeTraining\WebForm1.aspx    12    157    AdobeTraining
Error    3    Validation (XHTML 1.0 Transitional): Element 'param' is an empty element and cannot have a closing tag. Instead, it must end with />.    C:\Users\<username>\Documents\Visual Studio 2005\Projects\AdobeTraining\AdobeTraining\WebForm1.aspx    12    212    AdobeTraining
Error    4    Validation (XHTML 1.0 Transitional): Element 'param' is an empty element and cannot have a closing tag. Instead, it must end with />.    C:\Users\<username>\Documents\Visual Studio 2005\Projects\AdobeTraining\AdobeTraining\WebForm1.aspx    12    312    AdobeTraining
Error    5    Validation (XHTML 1.0 Transitional): Element 'embed' is not supported.    C:\Users\<username>\Documents\Visual Studio 2005\Projects\AdobeTraining\AdobeTraining\WebForm1.aspx    12    319    AdobeTraining

Hope this makes sense.

I'll check back in the morning to see if there are other comments...

Good night....

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="AdobeTraining.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
<object width="425" height="256"><param name="movie" value="http://images.tv.adobe.com/swf/player.swf"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="FlashVars" value="fileID=6088&context=434&embeded=true&environment=production"></param><embed src="http://images.tv.adobe.com/swf/player.swf" flashvars="fileID=6088&context=434&embeded=true&environment=production" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="256"></embed></object>
    </div>
    </form>
</body>
</html>

Open in new window

Author

Commented:
Another thing that it does is it will start more than one voice stream if you click on it more than once... :(

What am I doing wrong?
Should you be charging more for IT Services?

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Research & Development Manager
Commented:
I can help you with the syntax and to do working your HTML object, but I don't know anything about flash and actionscript

<object width="425" height="256">
    <param name="movie" value="http://images.tv.adobe.com/swf/player.swf"/>
    <param name="allowFullScreen" value="true"/>
    <param name="allowscriptaccess" value="always"/>
    <param name="FlashVars" value="fileID=6088&context=434&embeded=true&environment=production"/>
    <embed src="http://images.tv.adobe.com/swf/player.swf" flashvars="fileID=6088&context=434&embeded=true&environment=production"
        type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
        width="425" height="256"/>
</object>

Check with the previous code

Author

Commented:
I now get only one error. See error message below...

Error      1      Validation (XHTML 1.0 Transitional): Element 'embed' is not supported.      C:\Users\Stephen\Documents\Visual Studio 2005\Projects\AdobeTraining\AdobeTraining\WebForm1.aspx      17      18      AdobeTraining

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="AdobeTraining.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <object width="425" height="256">
                <param name="movie" value="http://images.tv.adobe.com/swf/player.swf"/>
                <param name="allowFullScreen" value="true"/>
                <param name="allowscriptaccess" value="always"/>
                <param name="FlashVars" value="fileID=6088&context=434&embeded=true&environment=production"/>
                <embed src="http://images.tv.adobe.com/swf/player.swf" flashvars="fileID=6088&context=434&embeded=true&environment=production"
                    type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
                    width="425" height="256"/>
            </object>
        </div>
    </form>
</body>
</html>

Open in new window

jorge_torizResearch & Development Manager
Commented:
Well, this is not an "error" because if you do not put that tag, the movie won't will be displayed on FireFox.    That warning is because that element do not appears in XHTML standard but you will be able to deploy your web site without problems.

Author

Commented:
Thank you very much for all your help!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial