image button link to .swf file in new web page/embed .swf file in XHTML file

I am trying to use an image button in my master page file that links to an XHTML page.  I have only been able to find the method of "embedding" ( <embed> ) which will not work with XHTML.  I have tried to incorporate FlashObject into the .htm page, but no luck.  Below is the portion of the master page with the image button:

<asp:ImageButton ID="imgFeatureTour" runat="server" ImageAlign="Bottom" ImageUrl="~/images/featuretour[1].gif" onclick="MM_openBrWindow('feature_tour.htm','','toolbar=0,location=0,directries=0,status=0,menubar=0,scrollbars=0,resizable=0,width=760,height=400,left=80,top=180')" />

Here is the MM_openBrWindow javascript (as provided to me) which is in the <head> of the .htm file:

<script language="JavaScript" type="text/JavaScript">
function MM_openBrWindow(theURL,winName,features) { //v2.0,winName,features);

Here is the .htm file: (I'm not sure how to implement the javascript of if both should be in the <head>)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head><title>TeleVantage Feature Tour</title>
<script language="JavaScript" type="text/JavaScript">
function MM_openBrWindow(theURL,winName,features) { //v2.0,winName,features);
<script type="text/javascript" src="/javascript/flashobject.js"></script>
        <div id="flashcontent">
                    The feature tour will begin shortly.  
            <script type="text/javascript">
             var fo = new FlashObject("/flash/feature_tour_partner.swf", "feature_tour", "760", "400", "6", "#336699");

When I try to compile the site, I get the following error:

'MM_openBrWindow' is not a member of 'ASP.site_muster'.

I appreciate any help that can be offered.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You need to place the javascript function on your .aspx page and not on the htm page which you want to open. That should solve your problem.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
vbplayr2000Author Commented:
I tried it on the masterpage and it did not work.  Should I just embed the flash in a content page within the masterpage?  The content page then would inherit the java from the master page.  I am still unclear how to accomplish this through .aspx and masterpages.  Is there anyone out there who has accomplished this already????

vbplayr2000Author Commented:
I found a work around and a new tool for VS2005 called FlashControl.  It can be found at:

It allows a developer to drag the FlashControl from the Toolbox onto an .aspx page.  It does function well and is very easy to implement.  However, it still does not handle this specific problem of "embedding" a flash object.  

This tool still uses an <embed> within the XHTML and that still will create a conflict with some browsers.

I researched the Satay method to embed, but that requires the ability to edit the .swf root.  The .swf movie I am manipulating is not my own, so I cannot implement that method (unless someone out there knows something I don't :-)  )

So, my site now does have flash capability on an .aspx content page that inherits my master page (I like this because it keeps the uniform look and lets the user know they are still with my company learning about another company's product).

I am sure that in the near future, a more standard method will be developed.

Thanks for your input.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.