[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

HTML above Flash in firefox using SwfObject?

Posted on 2010-01-03
5
Medium Priority
?
240 Views
Last Modified: 2012-05-08
Hello,

I'm trying to get some html to appear above flash in a web page. It works fine in IE however I can't get it to appear above the flash in firefox. How do I achieve this?

I've been told I can just add this text and it should work:

params.wmode = transparent;

But where would I add it?

Any help much appreciated.
0
Comment
Question by:iDeej
  • 3
5 Comments
 
LVL 11

Expert Comment

by:nordtorp
ID: 26165132
You have to put it in the script part where you load the swf object.

Please have a look at this:

http://www.longtailvideo.com/support/forum/Setup-Problems/10042/Supported-Browser
0
 
LVL 11

Accepted Solution

by:
Kusala Wijayasena earned 1500 total points
ID: 26167030
Do it something like this:

-Kusala
<script type="text/javascript">

var params = {};
params.wmode = "transparent";
swfobject.embedSWF("myFlash.swf", "myFlash", "300", "200", "8.0.0","expressInstall.swf", params);

</script>

Open in new window

0
 
LVL 4

Author Comment

by:iDeej
ID: 26167153
I've looked into using swf object a little more and if possible to achieve what I'm trying to do I would like to use the static publishing method as described on this page:

http://code.google.com/p/swfobject/wiki/documentation

I'm told I can make the flash swf transparent by entering this code twice:

<param name="wmode" value="transparent" />  

I have done this and it is still not working.

Is there something I need to do in CSS besides setting the z-index to make this work?

Should I be using the dynamic publishing method?
0
 
LVL 4

Author Comment

by:iDeej
ID: 26167236
Thanks for your efforts kusala,

I am still leaning towards using static publishing with the Swf Object but in case I can't get that to work I tried your code above and now it is not working in any browsers.

<!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" lang="en" xml:lang="en">
    <head>
        <title>My Title</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="styles/master.css" />
        <script type="text/javascript" src="scripts/swfobject.js"></script>
        <script type="text/javascript">
            var params = {};
            params.wmode = "transparent";
            swfobject.embedSWF("myMovie.swf", "flashDiv", "955", "495", "9.0.0","expressInstall.swf", params);

    </script>
    </head>
    <body>
        <div id="container">
            <div id="flashDivContainer">
                <div id="flashDiv">
                </div>
            </div>
        </div>
    </body>
</html>

Any ideas?
0
 
LVL 4

Author Closing Comment

by:iDeej
ID: 31672091
I ended up doing something like this and so far it is working well in all browsers except safari on windows. I have not tested on safari on mac.

Just a not on the code too, I think you will need to add in a few more parameters otherwise it won't work, flashvars even if there are none.

Thanks for your help.
0

Featured Post

Technology Partners: 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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses

872 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