473,411 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

How to make the background of a .swf file transparent?

I am trying to make my html page visible thru the background of my .swf file. I know the method:

Expand|Select|Wrap|Line Numbers
  1. <param name="wmode" value="transparent" />
It does not seem to work. You can view the page here:

http://www.leopoldjoy.com/new%20website/test_page.html

This is the .swf embed code i use:

Expand|Select|Wrap|Line Numbers
  1.       <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="400">
  2.         <param name="movie" value="test_big.swf" />
  3.         <param name="quality" value="high" />
  4.         <param name="wmode" value="transparent" />
  5.         <param name="swfversion" value="6.0.65.0" />
  6.         <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
  7.         <param name="expressinstall" value="../Scripts/expressInstall.swf" />
  8.         <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  9.         <!--[if !IE]>-->
  10.         <object type="application/x-shockwave-flash" data="test_big.swf" width="480" height="400">
  11.           <!--<![endif]-->
  12.           <param name="quality" value="high" />
  13.           <param name="wmode" value="transparent" />
  14.           <param name="swfversion" value="6.0.65.0" />
  15.           <param name="expressinstall" value="../Scripts/expressInstall.swf" />
  16.           <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
  17.           <div>
  18.             <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
  19.             <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
  20.           </div>
  21.           <!--[if !IE]>-->
  22.         </object>
  23.         <!--<![endif]-->
  24.       </object>
How can I make the background of the .swf transparent?

Thanks in advance.
Dec 6 '10 #1
9 9107
The .swf needs to have transparent bg first. Are you sure it has?
Dec 8 '10 #2
Do you mean when I export it from Flash?
If so, yes I have changed the HTML publish settings in flash to read "transparent windowless"
Dec 8 '10 #3
Yes, I was referring to that.
Maybe the problem is related to your use of script to display the flash movie instead of normal <embed> tag. I say that because normally besides including <param name="wmode" value="transparent"> in the object tag, you would also need to include wmode="transparent" in the embed tag.
Dec 8 '10 #4
Yes, that is possible.
Do you know the full code to embed it that way? (wmode="transparent")
Dec 8 '10 #5
I know that's possible.. why don't you embed it that way instead of using javascript?
This page should help.
Dec 8 '10 #6
I tried this:

Expand|Select|Wrap|Line Numbers
  1. <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
  2. codebase=";http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
  3. WIDTH="480" HEIGHT="400" id="MyMovieName">
  4. <PARAM NAME=movie VALUE="test_big.swf">
  5. <PARAM NAME=quality VALUE="high">
  6. <PARAM NAME=wmode VALUE="transparent">
  7. <EMBED src="test_big.swf" quality="high" WMODE="transparent" WIDTH="480" HEIGHT="400"
  8. NAME="MyMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
  9. PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
  10. </EMBED>
  11. </OBJECT>
You can see it here.
This embed code did not seem to work.
Could it have to do with the type of flash?
Dec 9 '10 #7
I'm almost sure that the problem resides in your flash file. I think it isn't transparent at all. Make sure it is when you export it.
Dec 9 '10 #8
I have tested the method you say, and it seems to work just fine on most flash files i have made. Yet it does not seem to work on this.
Could it have to do with the magnifying glass effect (type of flash)?
Dec 10 '10 #9
I can't help you much because I don't know much about flash :/
Try asking in flash forums if anyone can figure out what's wrong with your flash file.
Dec 11 '10 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Grahammer | last post by:
Is it possible to set the background of a usercontrol as transparent? I tried setting the background image of the usercontrol to a transparent GIF, but that caused MAJOR problems. I'm making...
5
by: Juan Romero | last post by:
Hey guys, Does anyoone know how to make a control with transparent background? This is what I have so far and it doesn't work: Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)...
4
by: Vincent | last post by:
Hi all, I would like to make a table or a div with a transparent background. The solution found does work only with FireFox using a png image. The second one works with IE and FireFox but make...
0
by: MLH | last post by:
My question is not how to paste images in Access with transparent backgrounds. I've researched 4-6 year old postings adequately describing how to achieve this. Lebans' site does a good job of...
0
by: rh | last post by:
Hi, I am using a ASP.NET 2.0 Menu control and would like the dynamic menu to have a transparent background so that whatever is behind it is partly visible between each dynamic menu item. I've...
2
by: Trond Michelsen | last post by:
Hi. I have a transparent PNG-image that I would like to display on top of the rest of the web page. I've already got this part working. But, I'd like the background (as in "the part of the image...
0
by: Martijn Mulder | last post by:
How can I give my custom System.Windows.Forms.Control a transparent background? In the small application below I expect to see two partially overlapping circles, a blue one and a red one, but only...
11
by: vbt | last post by:
I am having difficult time drawing a image using Visual Studio Image Editor. I can draw the image and save it as .bmp file load it into a pictureBox image but when the program is run the...
2
by: Niu Kun | last post by:
Dear all, I'm trying to draw many overlapped PNG files with transparent background in imagebox control. But the transparent background in this control is rendered as the main control's...
8
by: salmobytes | last post by:
Making thumbnail images isn't all that hard, for the most part. There is lots of shrink-wrapped code out there you can download and/or munge from. But nothing I've yet seen does the right thing...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.