The Little Guy Posted September 18, 2010 Share Posted September 18, 2010 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? Quote Link to comment Share on other sites More sharing options...
Alex Posted September 18, 2010 Share Posted September 18, 2010 Something like this should work on all browsers: return window.document.player; Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 18, 2010 Author Share Posted September 18, 2010 nope, I still get the same error in IE. Quote Link to comment Share on other sites More sharing options...
Alex Posted September 18, 2010 Share Posted September 18, 2010 What does the embed look like? I've used the same code for another project and it worked fine on all browsers. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted September 18, 2010 Author Share Posted September 18, 2010 <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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.