Jump to content

Object doesn't support this property or method


The Little Guy

Recommended Posts

I have the following code:

function play(songid){
sid = songid;
thisMovie().getMp3(songid);
}

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

 

This is to use javascript with my flash player. This works in ever other browser, except for internet explorer, and here is the message:

 

SCRIPT438: Object doesn't support this property or method  home.js, line 48 character 2

 

line 48: thisMovie().getMp3(songid);

 

How can I fix it?

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="1" height="1" id="player" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="wmode" value="transparent" />
<param name="movie" value="/flash/lite.swf?h=<?php echo time();?>" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="always" />
<embed src="/flash/lite.swf?h=<?php echo time();?>" quality="high" wmode="transparent" bgcolor="#ffffff" width="1" height="1" name="player" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.