Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Problems running flash player on IE and Firefox

8 replies [Last post]

Dear Friend...

It's my first time on this forum....

I'm trying to implement this Flash Player on my web site on my osCommerce store... I'm using a module called newsdesk.php to do this, but i'm having some problems make this player work on IE and Modzilla Firefox at the sime time...

THIS CODE BELLOW WORKS VERY WELL on IE but not in Mozilla

<object type="application/x-shockwave-flash" data="http://www.kartunes.online.pt/videos/video_player/swfobject.js" height="350" width="450" id="player">
<param name="allowScriptAccess" value="SameDomain">
<param name="movie" value="http://www.kartunes.online.pt/videos/video_player/player.swf"><param name="quality" value="high">
<param name="scale" value="noScale">
<param name="wmode" value="transparent">
<param name="menu" value="false">
<param name="allowfullscreen" value="false">
<param name="flashvars" value="file=http://www.kartunes.online.pt/videos/video_player/exp1.flv","single">
<param name="image" value="http://www.kartunes.online.pt/pt-kartunes/ffmpeg_image.php?file=exp1.flv&time=00:0:05&browser=true">
</object>

THE CODE BELLOW WORKS VERY WELL on MOZILLA but not in IE

<p id='preview'>The player will show in this paragraph</p>

<script type='text/javascript' src='http://www.kartunes.online.pt/videos/video_player/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('http://www.kartunes.online.pt/videos/video_player/player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=http://www.kartunes.online.pt/videos/video_player/exp1.flv');
s1.write('preview');
</script>

AND I'M Trying to do somthing like this the code bellow, but it's not working

<script>
if (navigator.appName.indexOf("MSIE")) {
// Internet Explorer
</script>
// Internet Explorer
<object type="application/x-shockwave-flash" data="http://www.kartunes.online.pt/videos/video_player/swfobject.js" height="400" width="500" id="player">
<param name="allowScriptAccess" value="http://www.kartunes.online.pt/videos/video_player/player.swf">
<param name="movie" value="http://www.kartunes.online.pt/videos/video_player/player.swf"><param name="quality" value="high">
<param name="scale" value="noScale">
<param name="wmode" value="transparent">
<param name="menu" value="false">
<param name="allowfullscreen" value="false">
<param name="flashvars" value="file=http://www.kartunes.online.pt/videos/video_player/exp1.flv","single">
<param name="image" value="http://www.kartunes.online.pt/pt-kartunes/ffmpeg_image.php?file=exp1.flv&time=00:0:05&browser=true">
</object>
<script>
}else{
// Not Internet Explorer
</script>
<p id='preview'>The player will show in this paragraph</p>
<script type='text/javascript' src='http://www.kartunes.online.pt/videos/video_player/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('http://www.kartunes.online.pt/videos/video_player/player.swf','player','500','400','9');

s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=http://www.kartunes.online.pt/videos/video_player/exp1.flv');
s1.write('preview');
</script>
<script>
}
</script>

You can check what i want on http://www.kartunes.online.pt/pt-kartunes/newsdesk_info.php?newsdesk_id=5

Anyone can help me on this????

Best Regards
João Carrolo

@João,

To work in IE [i]AND[/i] the other browsers, you need the double-object code.

It's much easier to just use swfobject, which is cross-browser.

    <div id="preview">
      <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a>
    </div>

    <!-- THIS NEXT LINE SHOULD BE IN THE HEAD ELEMENT OF YOUR HTML DOCUMENT. -->
    <script type='text/javascript' src='http://www.kartunes.online.pt/videos/video_player/swfobject.js'></script>

    <script type='text/javascript'>
      var s1 = new SWFObject('http://www.kartunes.online.pt/videos/video_player/player.swf', 'player', '500', '400', '9.0.124');
          s1.addParam('allowfullscreen',     'true');
          s1.addParam('allowscriptaccess',   'always');
          s1.addVariable('file',             'http://www.kartunes.online.pt/videos/video_player/exp1.flv');
          s1.addVariable('fullscreen',       'true');
          s1.write('preview');
    </script>

It's not working...

Any other ideas???

@João,

How can you say it's not working?

:D I just watched some cute chick get her head blown up by a BIG amp.    :D

<html>

  <head>

    <script type='text/javascript' src='http://www.kartunes.online.pt/videos/video_player/swfobject.js'></script>

  </head>

  <body>

    <div id="preview">
      <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a>
    </div>

    <script type='text/javascript'>
      var s1 = new SWFObject('http://www.kartunes.online.pt/videos/video_player/player.swf', 'player', '500', '400', '9.0.124');
          s1.addParam('allowfullscreen',     'true');
          s1.addParam('allowscriptaccess',   'always');
          s1.addVariable('file',             'http://www.kartunes.online.pt/videos/video_player/exp1.flv');
          s1.addVariable('fullscreen',       'true');
          s1.write('preview');
    </script>

  </body>

</html>

Yes, but in this moment i'm using what is working only on IE7, if you try Mozilla , nothing happens...

I'll try your last code, and i will leave online until tomorrow...

<object type="application/x-shockwave-flash" data="http://www.kartunes.online.pt/videos/video_player/swfobject.js" id="player" height="400" width="500">
<param name="allowScriptAccess" value="SameDomain">
<param name="movie" value="http://www.kartunes.online.pt/videos/video_player/player.swf"><param name="quality" value="high">
<param name="scale" value="noScale">
<param name="wmode" value="transparent">
<param name="menu" value="false">
<param name="allowfullscreen" value="true">
<param name="flashvars" value="file=http://www.kartunes.online.pt/videos/video_player/exp1.flv","single">
<param name="image" value="http://www.kartunes.online.pt/pt-kartunes/ffmpeg_image.php?file=exp1.flv&time=00:0:05&browser=true">
</object>

It's online now... I will leave it online , when i remove i will post here

@João,

You can't have breaks in the middle of the JavaScript code!   I didn't post code like that. :D

You have to figure out how to insert JavaScript code without it getting wrecked.

<script type='text/javascript'><strong><br /></strong>
      var s1 = new SWFObject('http://www.kartunes.online.pt/videos/video_player/player.swf', 'player', '500', '400', '9.0.124');<strong><br /></strong>
          s1.addParam('allowfullscreen',     'true');<strong><br /></strong>
          s1.addParam('allowscriptaccess',   'always');<strong><br /></strong>
          s1.addVariable('file',             'http://www.kartunes.online.pt/videos/video_player/exp1.flv');<strong><br /></strong>
          s1.addVariable('fullscreen',       'true');<strong><br /></strong>
          s1.write('preview');<strong><br /></strong>
    </script>

Try pasting it into your CMS as one long, continuous line of code:

<script type='text/javascript'>var s1 = new SWFObject('http://www.kartunes.online.pt/videos/video_player/player.swf', 'player', '500', '400', '9.0.124');s1.addParam('allowfullscreen',     'true');s1.addParam('allowscriptaccess',   'always');s1.addVariable('file',             'http://www.kartunes.online.pt/videos/video_player/exp1.flv');s1.addVariable('fullscreen',       'true');s1.write('preview');</script>

Probably i'm having problems because i'm not using a single html page, i'm inserting the code in a form... Let me ask you one more think, for phpbb3 it's possible to place a make this code work properly????

@João,

Sorry, I don't know anything about phpbb3. You can try Search this Site to see if there is some information on using the player with phpbb3 (I have seen it mentioned here).