FN-FORUM: Problem with Flash on asp.net, xhtml page. I need a transparent background
date posted 22nd February 2008 17:21
I have been given this code by the designer which shows a simple flash
animation (just words moving on the screen):
AC_FL_RunContent(
'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','width','240','height','150','src','messaging','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','wmode','transparent','movie','messaging'
); //end AC code
The animation is transparent and below there a background image (giving the
effect of graduated color, blue in this example)
It can be seen, in action, here:
http://www.e-vo.co.uk/mandatewire/index.asp
Unfortunately the above code is not xhtml compatible. VS2005 won't allow it,
so I can't keep my site xhtml compatible and keep the code above.
I found alternative xhtml code below but this does not give the same
transparent effect. The area of the flash animation shows with a white
background in the code below.
How can I keep the transparent flash effect?
The relevant style is:
.messaging {
background-image: url(bg-test.jpg);
background-repeat:no-repeat;
}
The bg-test.jpg has size:
width: 425, Height: 180
Compared with the messaging.swf size:
width: 240, Height: 150
PS: The 'download macromedia' function is no longer required. Clients
without flash installed will just see the alternative gif.