Avatar billede globulous Nybegynder
18. oktober 2005 - 13:54 Der er 2 kommentarer og
1 løsning

transparent flash in html

I would like to embed a flash file (swf) in html. Is it possible to make the flash background (only the background not the other flash elements) transparent so that the html elements and background can be seen through the embedded flash stage background. I started looking into *.jsfl docs and only got confused. Can anyone point me in the right direction?
Avatar billede larsholmgaard_dk Nybegynder
18. oktober 2005 - 13:58 #1
Hi globulus,

It is all in the code, that holds the flash object:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
  <param name="movie" value="globulusFlash.swf">
  <param name="wmode" value="transparent">
  <param name=quality value=high>
  <embed src="globulusFlash.swf" quality=high wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="100%"></embed>
</object>

Notice the two sentences:
<param name="wmode" value="transparent"> and wmode="transparent" which tells the browser/flash player to make the flash transparent against a html background.

I hope this solves your problem.
Avatar billede globulous Nybegynder
18. oktober 2005 - 14:06 #2
I thought it was something simple like that...thanks for the quick response!
Avatar billede larsholmgaard_dk Nybegynder
18. oktober 2005 - 14:10 #3
You're welcome! I am sorry you had to wait almost 5 minutes... ;-)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester