Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

swfobject is undefined IE error


Anyone know why I would be recieving an 'swfobject' is undefined error in IE? The FLV files will play fine without a problem even in IE, however the annoying error found on page icon displays in the task bar.

Help appreciated. Code for the player as below:

website is www.a-m-c.com.au

Thanks,
Matt
matthew.hanslow@a-m-c.com.au

bc.. <script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
swfobject.registerObject("player","9.0.98","expressInstall.swf");
</script>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="352" height="240">
<param name="movie" value="player-licensed.swf">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="flashvars" value="file=http://cinsoft.a-m-c.com.au/Assets/Trailers/<?php echo $Trailer; ?>&skin=festival.swf&stretching=none">
<object type="application/x-shockwave-flash" data="player-licensed.swf" width="352" height="240">
<param name="movie" value="player-licensed.swf">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="flashvars" value="file=http://cinsoft.a-m-c.com.au/Assets/Trailers/<?php echo $Trailer; ?>&skin=festival.swf&stretching=none">
<p><a href="http://get.adobe.com/flashplayer">Get Flash</a> to see this player.</p>
</object>
</object>

55 Community Answers

JW Player

User  
0 rated :

I've puchased a licensed player today and I am getting the same js error message in IE (version 6) with the above type of implementation used also in the readme.html. In addition, the video is shown twice.
In Firefox it works fine.

Also, I am wondering about the expressInstall.swf referred to in the sample code. Not sure if this has anything to do with the issue but I cannot find this file in my download package.

Thanks for any help,

Barbara

JW Player

User  
0 rated :

Same f'n error :(

JW Player

User  
0 rated :

I'm in the same boat... same error, same problem, only in IE 8 the videos don't play - just a box displays. The videos display and work great in Firefox and Safari.

Can anyone post a link to the solution thread here? It'd help others, as this page comes up top in Google when searching for this error.

JW Player

User  
0 rated :

Also got the same 'swfobject' is undefined error for IE7 and IE6. IE6 also displays the video twice.

IE8, Firefox and Safari work fine.

JW Player

User  
0 rated :

Ethan from LongTailVideo has helped us resolve the swfObject issue.

Matt, this will probably help you also;

Since you are using embed/object code, these lines are not needed;

bc.. <script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
swfobject.registerObject("player","9.0.98","expressInstall.swf");
</script>

JW Player

User  
0 rated :

Hi there,

I'm stuck with the same type of problem, the difference is that i'm using a swf file that's nothing more than some dots that have to highlight when a link in the html code is clicked..

In other words: i got a function in my js code which pushes a string with id's to a function within my swf file to set certain dots to an active state.

Firefox does every thing perfect; no js errors, swf does its thing. But when browsing with IE 7 / 8 initially it gives a js error saying that the object is undefined. And the js call to the swf fuction does nothing.

And when running a debug program it crashes at the Callback function within the SWFObject.js. Which probably means that the external interface does not work properly in IE.

And i can't seem to figure out whats the problem. It's seems to be all valid code but it still crashes... Can anyone give me some clues or something for where to look, because i'm all out of ideas.

Thanks in advance.

JW Player

User  
0 rated :

I'm having the same issue when I use the control in asp.net. It runs fine in firefox,chrome and safari but in IE 8 i get
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 5 Aug 2009 20:16:56 UTC


Message: 'SWFObject' is undefined
Line: 108
Char: 13
Code: 0


JW Player

User  
0 rated :

I am getting the same error. When I use SWFObject v.2.x I get the text... "This text will be replaced"

When I use SWFObject v1.5 - I get the IE8 error (SWFObject not defined).

However when I use both versions as below it works - can anyone tell me how to fix it so that I fix both errors without having to load both versions of the js file.
Thanks.

<script type="text/javascript" src="swfobject2.js"></script>
<script type="text/javascript"> swfobject.registerObject("player", "9.0.0", "expressInstall.swf"); </script>

<script type='text/javascript' src='swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

JW Player

User  
0 rated :

You have to have some player code. What is it?

Normally, when you use:bc.. <div id='mediaspace'>This text will be replaced</div>
, you are using JavaScript player code and the swfobject.registerObject() isn't used.

Looks like a mess post a link to your Test Page.

JW Player

User  
0 rated :

The resolution proposed above to take out this:

<script type="text/javascript">
swfobject.registerObject("player","9.0.98","expressInstall.swf");
</script>

works to get rid of the error. I had the same issue. Dreamweaver autmatically created this line even though it embedded the object into my page. Just delete it and the error goes away.

JW Player

User  
0 rated :

Hi All,

I am using the below code , but the browser(IE7 , IE6) both do not display the player ,and annoying error occurs "Swfobject is undefined" spcifically at line where i have used the embed method. Please help!!


<!--Player code begin---------------->

<style type=text/css>

#matte { position:absolute; left:0px; top:0px; width:0px; height:0px; z-index:1;
background-color: #777777;
filter:alpha(opacity=85);
-moz-opacity:0.85;
}
#wrapper { position:absolute; left:0px; top:-9999px; width:100%; height:196px; z-index:2; text-align:center; }
</style>

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var matteFlag = false;

var player = null;
function playerReady(thePlayer) {
player = window.document[thePlayer.id];
}


function createPlayer(theFile, theAutostart) {
var flashvars = {
file:theFile,
autostart:theAutostart
}

var params = {
allowfullscreen:"true",
allowscriptaccess:"always"
}

var attributes = {
id:"player1",
name:"player1"
}
// Debugging
alert('Script loaded.');

swfobject.embedSWF("./player.swf", "placeholder1", "320", "196", "9.0.115", false, flashvars, params, attributes);




}


function showPlayer() {
document.getElementById("bodyId").style.overflow = "hidden";
document.getElementById("matte").style.width = 100+"%";
document.getElementById("matte").style.height = 100+"%";

document.getElementById("wrapper").style.top = 75+"px";
}


function hidePlayer() {
player.sendEvent('STOP');
document.getElementById("wrapper").innerHTML = "<div id='placeholder1'></div>";

document.getElementById("bodyId").style.overflow = "auto";
document.getElementById("matte").style.width = 0+"%";
document.getElementById("matte").style.height = 0+"%";

document.getElementById("wrapper").style.top = -9999+"px";
}
</script>

JW Player

User  
0 rated :


Not available or wrong version:bc.. <script type="text/javascript" src="swfobject.js"></script>



Check your *swfobject.js* file.

Must be v2.x.

JW Player

User  
0 rated :

I have version 2x and I'm still getting this damn error!

Andrew

JW Player Support Agent  
0 rated :

even i’m…works fine with mozilla …and not with IE7

JW Player

User  
0 rated :

Thanks all for the info

JW Player

User  
0 rated :

.. i'm lost - all i know is i have the yellow triangle on the left end of the status bar and it says 'SWFObject' is undefined - reading through the thoughts of you smart people is discouraging, i'll never have that level of understanding, i don't want that level of understanding, i just want it to work ..

JW Player

User  
0 rated :

thank you so much, i had same problem. I did what Neil Bradley said about delete some lines couse swf was enbeded.

IT WORKS

Thanks again

JW Player

User  
0 rated :

I simply took out the code on the line the error was reported on. Works no problem.

JW Player

User  
0 rated :

I ended up removing this chunk of code from the bottom of the page and error message cleared up:

<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID3");

function Launch(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=350,height=350");
}
swfobject.registerObject("FlashID4");
swfobject.registerObject("FlashID2");
//-->
</script>

Thanks Neil Bradly

JW Player

User  
0 rated :

Thank you Neil Bradley your solution worked for me.

JW Player

User  
0 rated :

Do me a favor please. If you could point out exactly what is causing my site to not work in IE.




<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("rotator-banner", "9.0.0");
swfobject.registerObject("construction-temp", "9.0.0");
swfobject.registerObject("counter-nav", "9.0.0");
</script>

<style type="text/css">

body {background-color:#444444;
margin-top:0;
margin-bottom:0;}

#wrap {width:908px;
height:913px;
margin:0 auto;
background-color:black;}

#header {width:900px;
height:237px;
background-color:black;
margin-left:4px;}

#navigation {width:892px;
height:35px;
background-color:black;
margin-top:3px;
margin-left:16px;}

#top {width:900px;
height:12px;
background-image:url('images/curve.gif');
background-repeat:no-repeat;
margin-left:4px;
float:inherit;}

#main {width:900px;
height:613px;
background-color:white;
margin-left:4px;}

#bottom {width:900px;
height:13px;
background-image:url('images/bottomcurve.gif');
background-repeat:no-repeat;
margin-left:4px;}

.rotator {padding:0 0 0 0;}

.counter {margin-left:8px;}

</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Delano's Pizza</title>
</head>

<body topmargin="0">
<div id="wrap">
<div id="header">
<div class="rotator">
<object classid="rotator" id="rotator-banner" width="900" height="237">
<param name="movie" value="rotator-banner.swf" />

<object type="application/x-shockwave-flash" data="rotator-banner.swf" width="900" height="237">
</object>
</object>
</div>
</div>
<div id="navigation">
<div class="construction-temp">
<object classid="construction-temp" id="construction-temp" width="892" height="35">
<param name="movie" value="construction.swf" />

<object type="application/x-shockwave-flash" data="construction.swf" width="892" height="35">
</object>
</object>
</div>
</div>
<div id="top"></div>
<div id="main">
<div class="counter">
<object classid="counter" id="counter-nav" width="884" height="613">
<param name="movie" value="counter.swf" />

<object type="application/x-shockwave-flash" data="counter.swf" width="884" height="613">
</object>
</object>
</div>
</div>
<div id="bottom"></div>
</div>
</body>
</html>

JW Player

User  
0 rated :

Alright, I'm making a website, but of course it doesn't work in IE, it works perfectly in firefox, but when I view it in IE, basically, all I can see is the background colors, no images, none of the flash, nothing else. I thought it might be swf object, but I've tried a lot of stuff, I got rid of these lines like Niel said

"<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
swfobject.registerObject("player","9.0.98","expressInstall.swf");
</script>"

Still doesn't work, I honestly hate IE so much, can anyone help? I messed around with this code in the body

"<object classid="rotator" width="900" height="237" id= "rotator-banner">
<param name="movie" value="rotator-banner.swf">
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="rotator-banner.swf" width="900" height="237">"

I thought maybe it needed </object> somewhere, now I can actually see a blank box, which is the most I've been able to see, lol, but still basically nothing, I got the latest swf object and everything, but I'm clueless

JW Player

User  
0 rated :

Ignore my request please. but reply to Austin K.

JW Player

User  
0 rated :

Add swfobject.js from C:\Program File\Free flv player to your project. I have do this and now this error is removed but a new error raised....

So now i'm searching that error...

JW Player

User  
0 rated :

I have my swfobject.js, json2.js and the html in my cgi-bin directory.
Getting swfobject not defined error in line 141
swfobject.embedSWF("open-flash-chart.swf", "my_chart", "450", "300", "9.0.0");

can someone help
==========================================
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<script type="text/javascript" src="json2.js"></script>
<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">

function ofc_ready()
{
alert('ofc_ready');
//load();
}

function open_flash_chart_data()
{
alert( 'reading data' );
return JSON.stringify(chart);
}

function load_1()
{
tmp = findSWF("my_chart");
x = tmp.load( JSON.stringify(chart) );
}

function load_2()
{
tmp = findSWF("my_chart");
x = tmp.load( JSON.stringify(chart2) );
}

function findSWF(movieName) {
if (navigator.appName.indexOf("Microsoft")!= -1) {
return window[movieName];
} else {
return document[movieName];
}
}

var chart = {
"title":{
"text": "Many data lines",
"style": "{font-size: 20px; color:#0000ff; font-family: Verdana; text-align: center;}"
},

"y_legend":{
"text": "Open Flash Chart",
"style": "{color: #736AFF; font-size: 12px;}"
},

"elements":[
{
"type": "bar",
"alpha": 0.5,
"colour": "#9933CC",
"text": "Page views",
"font-size": 10,
"values" : [9,6,7,9,5,7,6,9,7]
},
{
"type": "bar",
"alpha": 0.5,
"colour": "#CC9933",
"text": "Page views 2",
"font-size": 10,
"values" : [6,7,9,5,7,6,9,7,3]
}
],

"x_axis":{
"stroke":1,
"tick_height":10,
"colour":"#d000d0",
"grid_colour":"#00ff00",
"labels": ["January","February","March","April","May","June","July","August","Spetember"]
},

"y_axis":{
"stroke": 4,
"tick_length": 3,
"colour": "#d000d0",
"grid_colour": "#00ff00",
"offset": 0,
"max": 20
}
};


var chart2 = {
"title":{
"text": "Sketch",
"style": "{font-size:35px; color: #567300}"
},

"elements":[
{
"type": "bar_sketch",
"colour": "#81AC00",
"outline-colour": "#567300",
"text": "Sketch",
"font-size": 10,
"offset": 6,
"values" : [
3,
8,
-5,
{"top":5,"outline-colour": "#7030A0", "tip": "outline"},
4,
{"top":5, "colour": "#99FF00", "tip": "colour"},
{"top":-3,"colour": "#99FF00", "outline-colour": "#7030A0", "tip": "colour + outline"},
2,
7.5]
}
],

"x_axis":{
"labels": ["January","February","March","April","May","June","July","August","Spetember"]
},

"y_axis":{
"min": -10,
"max": 10
},

"tooltip":{
"text": "My Tip<br>#top#,#bottom# = #val#"
}

};

alert( chart );
</script>

</head>
<body>

<div id="my_chart"></div>

<script type="text/javascript">
swfobject.embedSWF("open-flash-chart.swf", "my_chart", "450", "300", "9.0.0");
</script>



<div>
<INPUT TYPE=BUTTON OnClick="load_1();" VALUE="Chart 1">
<INPUT TYPE=BUTTON OnClick="load_2();" VALUE="Chart 2">
</div>

</body>
</html>
================================================

JW Player

User  
0 rated :

The solution of Neil Bradley worked for me

At first I removed to much. But after I removed only this line, the problem was solved

<script type="text/javascript">
swfobject.registerObject("player","9.0.98","expressInstall.swf");
</script>

Thanks

JW Player

User  
0 rated :

This code:bc.. swfobject.registerObject("player","9.0.98","expressInstall.swf");
requires swfobject v2.x.

Most likely, you have SWFObject v1.5. Open swfobject.js with any text editor and check the version. It will be in the first couple of lines.

If you do have SWFObject v1.5, then change your code to load swfobject v2.1 from Google's CDN.bc.. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>


You don't need to download anything, the JavaScript file will be loaded from Google's CDN. The advantages are: *http://webmuch.com/how-why-you-should-use-google-cdn/*

JW Player

User  
0 rated :

Neil Bradley solution works fine for me too. Removed error in IE and Opera.

Thank's for this quick solution

JW Player

User  
0 rated :

Remove the code works like a charm.

<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>

JW Player

User  
0 rated :

My site is www.lankasavari.webs.com
Help Please...!
I have error on IE loading my "swf" animations and menues. works on fire fox fine.

This is the cord
bc.. <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=0,0,0,0" id="MenuAdd.swf" align="middle" width="200" height="150">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie" value="MenuAdd.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
<embed src="title_files/MenuAdd.swf" quality="high" background="addback.jpg" bgcolor="#92C6F8" name="MenuAdd.swf" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" width="200" height="150">
</object>


Help Please

Ethan Feldman

JW Player Support Agent  
0 rated :

@LuminousPC – are you running the JW Player at all here? I can’t find it.

JW Player

User  
0 rated :

Tried everything that is written.

Hosting Local Server

cs5 dreamweaver

PLEASE HELP?

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body,td,th {
color: #FFF;
}
body {
background-color: #000;
}
</style>
<script src="../../Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF" vlink="#CCCCCC" alink="#FFFFFF">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="700" height="394" align="middle" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=1a&autoPlay=true&autoRewind=true" />
<param name="swfversion" value="8,0,0,0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you dont want users to see the prompt. -->
<param name="expressinstall" value="../../Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="700" height="394">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName=1a&autoPlay=true&autoRewind=true" />
<param name="swfversion" value="8,0,0,0" />
<param name="expressinstall" value="../../Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<script type="text/javascript">
swfobject.registerObject("FLVPlayer");
</script>
</body>
</html>

Ethan Feldman

JW Player Support Agent  
0 rated :

@coastal it – Please put up a test page…

JW Player

User  
0 rated :

Please tell me what I'm doing wrong at
dev.getboda.com
user / pass
m / meet

I'm having the same problem but none of these methods worked for me.

Ethan Feldman

JW Player Support Agent  
0 rated :

m, you are using the JW Player 3.13 player here, which is over 3 years old.

We are currently on 5.4.

I would recommend upgrading to a newer version.

JW Player

User  
0 rated :

Try adding "id" to the object...

example:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="700" height="415" align="middle" id="object1">

JW Player

User  
0 rated :

Thank you Neil Bradley your solution worked for me.

JW Player

User  
0 rated :

Thank you
Neil Bradley your solution worked for me. Nice

JW Player

User  
0 rated :

I have the same problem,too.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Luke White – A link would be helpful.

JW Player

User  
0 rated :

Hi I have the same problem with the site:

http://www.zeyco.com.mx/index.php?seccion=distribuidores&ta=1

Flash animation on the map below I have to deploy the branches, I works fine in Firefox, but IE tells me
Details web page error

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;. NET CLR 2.0.50727;. NET CLR 3.0.4506.2152;. NET CLR 3.5.30729;. NET CLR 1.1.4322;. NET CLR 1.0.3705; InfoPath.2;. NET4.0C;. NET4.0E)
Date: Fri, June 17, 2011 18:03:32 UTC


Mensaje: 'swfobject' is undefined
Lnea: 1825
Carcter: 1
Cdigo: 0
URI: http://www.zeyco.com.mx/index.php?seccion=distribuidores&ta=1


Mensaje: Error del sistema: -1072896658.

Lnea: 1473
Carcter: 5
Cdigo: 0
URI: http://www.zeyco.com.mx/index.php?seccion=distribuidores&ta=1

Ethan Feldman

JW Player Support Agent  
0 rated :

Sorry but this is a forum for the JW Player. You are not using the JW Player.

JW Player

User  
0 rated :

I am using the Player.swf and the jwplayer.js

The video is working fine on all browsers, IE 8- / Opera / Chrome / Firefox and more.

Except for the Ipad, it gives me a error line above the image, UNDEFINED.

The player works, the video works, and still the error is there.. Any idea?

This is the used code I created: (hidden is removed for the web)

<script type="text/javascript" src="http://www.sps.nl/h5-play/jwplayer.js"></script>

<script type="text/javascript">

jwplayer("Visual-video").setup({

flashplayer: "http://hidden/h5-play/player.swf",

autostart: "true",
height: "298",
width: "962",
wmode: "opaque",

image: "http://hidden/vidz/<?php meta('multivid'); ?>.jpg"

}).onReady(function() { if (this.container.tagName.toLowerCase() == "object") {

// Flash case voor Internet Explorer <8
this.load({

file: "http://hidden/vidz/<?php meta('multivid'); ?>.flv"

});
} else {
// HTML5 case
this.load({


file: "http://hidden/vidz/<?php meta('multivid'); ?>.mp4"

});
}
});

</script>

JW Player

User  
0 rated :

@Mathieu

image: "http://hidden/vidz/<?php meta('multivid'); ?>.jpg"

looking at the above have you tried adding a , after the line

image: "http://hidden/vidz/<?php meta('multivid'); ?>.jpg",

does this help?

It would be helpful to have a link to look at.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Mathieu – Where is this running? Your link above does not have this code…

JW Player

User  
0 rated :

Ethan and others. I can use some assistance trouble shooting a js error, 'swfobject' is undefined.

We are using the latest JW Player, version 5.7 along with SWFObject 2.2.

The problem we are having appears to be limited to Win IE 8.

Here are sample links:
http://www.mrfood.com/Fish/Catfish-Allison/ct/1/apv/1
http://www.mrfood.com/Fish/Catfish-Allison

The first will load/start the video automatically.
The second link requires you to click the watch video link under the main image.

The video appears to load/play without issue. However, clicking a link to leave the page (left menu, breadcrumb, etc) triggers the js error.

There is a lot of other js running on this page, from ads to dhtml popups, etc, but if you could take a look and offer any ideas/fixes, I would appreciate it.

Ethan Feldman

JW Player Support Agent  
0 rated :

What OS / Flash player version are you running? Does it happen if you have the player alone on a page? There is a lot going on here.

JW Player

User  
0 rated :

@Geoff, Ethan

Hmmm, I would highly recommend that you correct the 40 errors that you have in your coding.

I do believe that the cause, in your issue, is that the current location of.

bc.. <script type="text/javascript" src="/javascript/swfobject_2.2/swfobject.js"></script>



is incorrectly placed.

try placing it just below the
bc.. <link rel="shortcut icon" href="/favicon_28.ico" />



I'd highly recommend not using the swfobject method it is too inefficient the better alternative is the embed method for the JWPlayer

I would also move all of your JavaScript libraries as well to the top; I would then place all of your JavaScript code that you use into a separate js file and place that along with the JavaScript libraries in the head element.

IF you want to have a better alternative feel free to contact me from off my web site. www.mirana.net

A tutorial for the better method will be made available in the near future on a blog

Ethan Feldman

JW Player Support Agent  
0 rated :

I would start by putting the player in a blank page to see…

JW Player

User  
0 rated :

yea, BUT is it not fun to look at/through JavaScript code, Master Ethan

Ethan Feldman

JW Player Support Agent  
0 rated :

Starting with a blank page, getting it working, and building from there, will help determine at which stage it breaks, though.

JW Player

User  
0 rated :

this works!

Ethan Feldman

JW Player Support Agent  
0 rated :

:) cool !

JW Player

User  
0 rated :

Hi i'm having this issue also.
cant play the flv files...
www.hieloyeventos.com/tv-test

Ethan Feldman

JW Player Support Agent  
0 rated :

http://www.hieloyeventos.com/tv-test/tvkernel/jwplayer/swfobject.js = 404 not found, that’s your issue.

This question has received the maximum number of answers.