Results 1 to 2 of 2

Thread: [JS - swfobject] Problem embedding SWF with Internet Explorer

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2009
    Posts
    69

    [JS - swfobject] Problem embedding SWF with Internet Explorer

    I'm using swfobject 2.2 to embed a SHOUTcast flash player, but it doesn't work properly in Internet Explorer. This is my current code:

    Code:
    <script type="text/javascript">
    	var flashvars = {};
    		flashvars.url = "http://url.to.stream/";
    		flashvars.lang = "en";
    		flashvars.codec = "mp3";
    		flashvars.volume = "50";
    		flashvars.tracking = "true";
    		flashvars.autoplay = "false";
    		flashvars.skin = "player/mini_player.xml";
    		flashvars.jsevents = "false";
    	var params = {};
    		params.scale = "noscale";
    		params.wmode = "window";
    		params.bgcolor = "171717";
    	var attributes = {};
    		attributes.id = "flashplayer";
    		attributes.styleclass = "playertest";
    	swfobject.embedSWF("player/scplayer.swf", "indexplayer", "280", "26", "9.0.0", false, flashvars, params, attributes);
    </script>
    It works perfectly in all other browsers and still validates as XHTML 1 strict.
    Last edited by cs475x; Mar 18th, 2011 at 12:50 AM.

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: [JS - swfobject] Problem embedding SWF with Internet Explorer

    Do you have this available at a public URL that could be viewed? Kinda hard to troubleshoot with just the code, in this case.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width