• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

integrating swf

whats wrong with this code?

<object type="application/x-shockwave-flash" data="http://www.1pixelout.net/wp-content/plugins/audio-player/player.swf" width="290" height="24" id="audioplayer2"><br />
<param name="movie" value="http://www.ventureblogalist.com/wp-content/plugins/audio-player/player.swf" />
<param name="FlashVars" value="playerID=2;bg=0xCDDFF3;leftbg=0x357DCE;lefticon=0xF2F2F2;rightbg=0xF06A51;rightbghover=0xAF2910;righticon=0xF2F2F2;righticonhover=0xFFFFFF;text=0x357DCE;slider=0x357DCE;track=0xFFFFFF;border=0xFFFFFF;loader=0xAF2910;soundFile=http://www.ventureblogalist.com/audio/preview3.mp3" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="wmode" value="transparent" /></object>
0
finnstone
Asked:
finnstone
1 Solution
 
finnstoneAuthor Commented:
opps, its working!!
0
 
sam85281Commented:
That code will only work in IE.  Your little player doesn't show up in FF like that.

For it to work in all browsers your code needs to be:

<object type="application/x-shockwave-flash" data="http://www.1pixelout.net/wp-content/plugins/audio-player/player.swf" width="290" height="24" id="audioplayer2"><br />
<param name="movie" value="http://www.ventureblogalist.com/wp-content/plugins/audio-player/player.swf" />
<param name="FlashVars" value="playerID=2;bg=0xCDDFF3;leftbg=0x357DCE;lefticon=0xF2F2F2;rightbg=0xF06A51;rightbghover=0xAF2910;righticon=0xF2F2F2;righticonhover=0xFFFFFF;text=0x357DCE;slider=0x357DCE;track=0xFFFFFF;border=0xFFFFFF;loader=0xAF2910;soundFile=http://www.ventureblogalist.com/audio/preview3.mp3" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="wmode" value="transparent" />
<embed wmode="transparent" menu="false" FlashVars="playerID=2;bg=0xCDDFF3;leftbg=0x357DCE;lefticon=0xF2F2F2;rightbg=0xF06A51;rightbghover=0xAF2910;righticon=0xF2F2F2;righticonhover=0xFFFFFF;text=0x357DCE;slider=0x357DCE;track=0xFFFFFF;border=0xFFFFFF;loader=0xAF2910;soundFile=http://www.ventureblogalist.com/audio/preview3.mp3" src="http://www.ventureblogalist.com/wp-content/plugins/audio-player/player.swf" quality="high" bgcolor="#ffffff" width="290" height="24" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

IE uses the <object> tag

All others use the <embed> tag

-Sam
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now