Be a Supporter!

Trans flash in various browsers?

  • 274 Views
  • 5 Replies
New Topic Respond to this Topic
crazymusicman2k7
crazymusicman2k7
  • Member since: Nov. 27, 2008
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Trans flash in various browsers? 2009-03-17 09:44:41 Reply

Just a quick one however does anyone know of any other HTML code other than "<param name="wmode" value="transparent">" that makes the flash background transparent?

The code above is only readable with Internet Explorer, where as other browsers such as :

Firefox
Opera
Safari etc....

Keep the original background of the flash.

This looks ok, however if you have a nice background behind on the website, it's so much better when the actual flash canvas is transparent.

I'm using Dreamweaver by the way ... so if anyone knows anything I can put in the HTML's to make the SWF background transparent ... I would be well impressed & appreciate of this.

Thanks in advance !!!

Denvish
Denvish
  • Member since: Apr. 25, 2003
  • Offline.
Forum Stats
Member
Level 46
Blank Slate
Response to Trans flash in various browsers? 2009-03-17 10:31:21 Reply

At 3/17/09 09:44 AM, crazymusicman2k7 wrote: Just a quick one however does anyone know of any other HTML code other than "<param name="wmode" value="transparent">" that makes the flash background transparent?
Firefox
Opera
Safari etc....

IIRC, IE uses the OBJECT tags and Firefox uses the EMBED tags for parameters. So make sure your wmode="transparent" is in both the embed and object tags, eg:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="900" height="550">
    <param name="movie" value="Equilibrium_10.swf">
    <param name="quality" value="high">
    <param name="wmode" value="transparent">
    <embed src="Equilibrium_10.swf" width="900" height="550" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>

Not sure whether you added the parameter manually to the code, but if you select the swf in Design view in DW, you can add parameters using the Properties bar, which will automatically add them to both the object and embed tags

Trans flash in various browsers?


- - Flash - Music - Images - -

BBS Signature
GustTheASGuy
GustTheASGuy
  • Member since: Nov. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Trans flash in various browsers? 2009-03-17 10:57:19 Reply

At 3/17/09 10:31 AM, Denvish wrote: IIRC, IE uses the OBJECT tags and Firefox uses the EMBED tags for parameters. So make sure your wmode="transparent" is in both the embed and object tags, eg:

Hello, I come from five years in the fuuuture.
'embed' is deprecated, and, while 'object' is the intended method, because browsers handle it differently, nowadays normally the SWFObject JS library is used.


BBS Signature
crazymusicman2k7
crazymusicman2k7
  • Member since: Nov. 27, 2008
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Trans flash in various browsers? 2009-03-17 11:11:36 Reply

Aah right, thank you for this Denvish ... so will that work in ALL browsers then making the SWF transparent?

I'll try that if so for sure.. thank you !

I wasn't sure it was possible due to diff browsers reading HTML differently, however I appreciate that mate, thank you :)

crazymusicman2k7
crazymusicman2k7
  • Member since: Nov. 27, 2008
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Trans flash in various browsers? 2009-03-17 11:13:58 Reply

Just a thought, I did add the WM code into the HTML manually, however just checking the parmeters now & it's there already on that part.

Though I'm guessing it only means the WM tage I manually put in.. not the whole embed thing .. which I need to do for it to work in all browsers right?

crazymusicman2k7
crazymusicman2k7
  • Member since: Nov. 27, 2008
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Trans flash in various browsers? 2009-03-17 11:20:42 Reply

It now works in all the browsers .. thank you so much!

What an absolute legend you are !!! :)

I appreciate this!