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?

Link to comment
Share on other sites

<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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.