FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Embed object Not displaying of FireFox

 


DanielXP
Hi,

Please have a look at the following page on Internet Explorer.

http://rmb-arcade.com/V2.0/game/1/sport-games/snowboard-stunts/

Click "Play!"

The game should come up and should work 100%

But if you do the same in FireFox then you can only hear the game but you cannot see it.

I need help.

Thanks!
alalex
Well the game is loaded but not displaying, so the problem might be in css or in the javascript you are using to display the box above the page.

I dont have time now to look at those codes, but if you could paste here the function used to display the box, and maybe the css of it...

Nice site btw
endless
i use firefox and i can see it, so no fear Razz

but i use beta 3
sonam
I am using Firefox/2.0.0.12 and I don't see game. Maybe is problem in html code (I cannot see code of small widnow). I am using different code for IE and for FF and other browser. This is working preety good on all my sites. For example:

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="213" height="550" id="slideshow" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />   
      <param name="movie" value="something.swf" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#ffffff" />
      <!--[if !IE]> <-->
      <object  data="something.swf" width="213" height="550" type="application/x-shockwave-flash">
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
      </object>
      <!--> <![endif]-->
    </object>

Sonam
alalex
In case the problem is in yout html, there is an open source script that detects and varies the embed script to make it work on all browsers, here is the homepage:
http://blog.deconcept.com/swfobject/

I never used it, but I have it in case sometime I need it, and it is quite useful. Wink
DanielXP
I don't know.

If you go to the page the ajax get the code for the game from this it shows.

http://rmb-arcade.com/V2.0/game/1/sport-games/snowboard-stunts/load/

The code for the ajax is this.

Code:
function gameload(width) {
gameload_xmlHttp=GetXmlHttpObject()
if(gameload_xmlHttp==null){
alert("Browser does not support HTTP Request, Please upgrade your browser.")
return
}
var url="load/"
gameload_xmlHttp.open("GET",url,true)
gameload_xmlHttp.onreadystatechange = function () {
if (gameload_xmlHttp.readyState == 4) {
if (gameload_xmlHttp.status == 200 || gameload_xmlHttp.status == 0) {
document.getElementById('overlaymessage').style.width = width+"px";
document.getElementById('overlaymessage').innerHTML = closebtn + gameload_xmlHttp.responseText;
}
}
};
gameload_xmlHttp.send(null);
}
sonam
Change code on page http://rmb-arcade.com/V2.0/game/1/sport-games/snowboard-stunts/load/ in:

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="400" title="Snowboard Stunts">
  <param name="movie" value="http://rmb-arcade.com/V2.0/sitedata/games/1/game.swf" />
  <param name="quality" value="high" />
  <param name="bgcolor" value="#ffffff" />
        <!--[if !IE]> <-->
      <object  data="http://rmb-arcade.com/V2.0/sitedata/games/1/game.swf" width="550" height="400" type="application/x-shockwave-flash">
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
      </object>
      <!--> <![endif]-->
</object>


I was tray game in FF and it is working good. BTW, for future, I think how <embed> is no more valid HTML.

Sonam
DanielXP
I changed it to that code. Still don't seem to be working.
sonam
You are right. I am looking in popup window code and there is nothing wrong. I was copy/paste this code and game on my localhost in FF working fine. After little bit think I was see difference. Your code on the site open first some ads before swf. Is this JS? Maybe you can try to remove this part of your code to see what happend in FF. If is game OK, then you have part where is FF mistake.

Sonam
DanielXP
If i put on.

Code:
document.getElementById('BGDIV').style.width = '100%';
document.getElementById('BGDIV').style.height = '100%';


When the ajax changes the popup box html to the game from the advert.

It displays the game ok.

BUT i would still like the do the background bit where i goes dark.

How can i do this?
sonam
I am not sure how. Maybe you can write bigger z-index for div where is swf game then for BGDIV. Normaly, this will bring your game in the front.

Sonam
DanielXP
sonam wrote:
I am not sure how. Maybe you can write bigger z-index for div where is swf game then for BGDIV. Normaly, this will bring your game in the front.

Sonam


But then if thats the case then should the banner advert thing not display as well?

And i tried it as well
sonam
I am sorry but I have no more ideas. I am not very well in ajax and JS and I cannot help you.

Sonam
DanielXP
Thanks for all your help sonam.

Anyone else know what could be happerning?

Also

http://rmb-arcade.com/V2.0/

The 2 big pictures need to be centered, but i can't seem to do it. (in ff)

In IE their centered but when you hover over the grey title bit the popup window thing comes up in the wrong position. Any ideas?

Ps. I didn;t make that popup block thing.
sonam
Again me! Yesterday I am drop in the same problem like you. For one of my sites I am create 100% background. On all pages are everything OK. But on pages where is swf I don't see my Flash. I was realy suprised and I am looking around about solution but I didn't find it before I start to test step by step what happend. On the end result is:

Problem is if 100% div defined position: fixed;

Yes, I am sure you cannot bealive it but it is true. I don't know is it bug in FF 2 or somethig other but you can solve problem if you change position in absolute. Hope, this will help you.
Second solution (not sure how much is useful) is to put end of 100% div to the end of all other content.

Sonam
DanielXP
sonam wrote:
Again me! Yesterday I am drop in the same problem like you. For one of my sites I am create 100% background. On all pages are everything OK. But on pages where is swf I don't see my Flash. I was realy suprised and I am looking around about solution but I didn't find it before I start to test step by step what happend. On the end result is:

Problem is if 100% div defined position: fixed;

Yes, I am sure you cannot bealive it but it is true. I don't know is it bug in FF 2 or somethig other but you can solve problem if you change position in absolute. Hope, this will help you.
Second solution (not sure how much is useful) is to put end of 100% div to the end of all other content.

Sonam


[strike]If i use a absolute, then when i scroll down the back black thing will no be fully over the screen so it wont work that good.[/strike]

Seems to work, Thanks!

And i don't get your second idea???
sonam
Second idea is:

Code:
<div  id="background" ><img src="images/some.jpg" height="100%" widht="100%" alt="" />
   <div id="content" >
       SOMETHING
   </div>
</div>


But first solution is also must work. Look here on http://www.cssplay.co.uk/layouts/background.html I am following this tutorial.

Sonam
DanielXP
sonam wrote:
Change code on page http://rmb-arcade.com/V2.0/game/1/sport-games/snowboard-stunts/load/ in:

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="400" title="Snowboard Stunts">
  <param name="movie" value="http://rmb-arcade.com/V2.0/sitedata/games/1/game.swf" />
  <param name="quality" value="high" />
  <param name="bgcolor" value="#ffffff" />
        <!--[if !IE]> <-->
      <object  data="http://rmb-arcade.com/V2.0/sitedata/games/1/game.swf" width="550" height="400" type="application/x-shockwave-flash">
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
      </object>
      <!--> <![endif]-->
</object>


I was tray game in FF and it is working good. BTW, for future, I think how <embed> is no more valid HTML.

Sonam


My code was

Code:
<object classid="<?=$classid?>" codebase="<?=$codebase?>" width="<?=$game[width]?>" height="<?=$game[height]?>" title="<?=stripslashes($game[game_name])?>">
  <param name="movie" value="<?=$game[src]?>" />
  <param name="quality" value="high" />
  <embed src="<?=$game[src]?>" quality="high" pluginspage="<?=$pluginspage?>" <? if($game[codebase] == "dcr") { ?> swRemote="swSaveEnabled='true' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' swStretchStyle=fill
swStretchStyle=fill sw2="4" <? } ?> type="<?=$type?>" width="<?=$game[width]?>" height="<?=$game[height]?>"></embed>
</object>


(I know you can see all the varibles on that but o well.)

Now i have changed it to your code i have.

Code:
<object style="z-index:100;" classid="<?=$classid?>" codebase="<?=$codebase?>" width="<?=$game[width]?>" height="<?=$game[height]?>" title="<?=stripslashes($game[game_name])?>">
  <param name="movie" value="<?=$game[src]?>" />
  <param name="quality" value="high" />
  <param name="bgcolor" value="#96C4FC" />
        <!--[if !IE]> <-->
      <object style="z-index:100;" data="<?=$game[src]?>" width="<?=$game[width]?>" height="<?=$game[height]?>" type="<?=$type?>">
        <param name="quality" value="high" />
        <param name="bgcolor" value="#96C4FC" />
        <param name="pluginurl" value="<?=$pluginspage?>" />
      </object>
      <!--> <![endif]-->
</object>


I was wondering.

As you can see in my first code in the embed i have an extra part for dcr's
Code:
<? if($game[codebase] == "dcr") { ?> swRemote="swSaveEnabled='true' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' swStretchStyle=fill
swStretchStyle=fill sw2="4" <? } ?>


Wondering where i would put it?

And thanks the absolute worked. (Replacing the fixed)
sonam
Quote:
As you can see in my first code in the embed i have an extra part for dcr's


If I am not wrong this part just gives swf directives. Maybe you can insert it in both object definitions something like:
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="400" title="Snowboard Stunts">
  <param name="movie" value="http://rmb-arcade.com/V2.0/sitedata/games/1/game.swf" />
  <param name="quality" value="high" />
  <param name="bgcolor" value="#ffffff" />
<? if($game[codebase] == "dcr") { ?> swRemote="swSaveEnabled='true' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' swStretchStyle=fill
swStretchStyle=fill sw2="4" <? } ?>
        <!--[if !IE]> <-->
      <object  data="http://rmb-arcade.com/V2.0/sitedata/games/1/game.swf" width="550" height="400" type="application/x-shockwave-flash">
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
<? if($game[codebase] == "dcr") { ?> swRemote="swSaveEnabled='true' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' swStretchStyle=fill
swStretchStyle=fill sw2="4" <? } ?>
      </object>
      <!--> <![endif]-->
</object>


Sonam
DanielXP
Code:
<param name="quality" value="high" />
  <param name="bgcolor" value="#ffffff" />
swRemote="swSaveEnabled='true' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' swStretchStyle=fill
swStretchStyle=fill sw2="4"
        <!--[if !IE]> <-->
      <object  data="http://rmb-arcade.com/V2.0/sitedata/games/1/game.swf" width="550" height="400" type="application/x-shockwave-flash">


So it will echo out like that? :S
sonam
Quote:
swRemote="swSaveEnabled='true' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' swStretchStyle=fill
swStretchStyle=fill sw2="4"


Sorry, but I cannot help you because I don't understand what this part doing with swf. BTW game is not working in IE. Maybe this part stop responding swf in some siturations (allmost everythink is false). Did you need it?!

Sonam
DanielXP
that code will only enter if the game is a dcr not swf.
sonam
Maybe is better then to create one script and separate this two parts.

Code:
if($game[codebase] == "dcr") {
  $movie =   // here is comming code with all variables for dcr
} else {
  $movie =  // here is comming code with all variables for swf
}
echo $movie;


Sonam
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.