swfobject.embedSWF transparency issue
hello,
i've embeded flash movie i'm having problems getting transparency work. ideas appreciated.
damien
here code :-
<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>john sike</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/swfaddress.js"></script>
<script type="text/javascript">
var params = {
allowfullscreen: "true"
};
var flashvars = {};
var params = {};
params.wmode = "transparent";
swfobject.embedswf('preview.swf', 'website', '100%','100%', '9.0.0', 'js/expressinstall.swf',null, params);
</script>
<style type="text/css">
html, body, #website {
height:100%;
background-color: #0f0;
}
body { margin:0; padding:0; overflow:hidden; }
</style>
</head>
<body>
<div id="website">
<p>in order view page need flash player 9+ support!</p>
<p>
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="get adobe flash player" />
</a>
</p>
</div>
</body>
</html>
for getting transparency work have set wmode parameter of swfobject.embedswf() api in html page , here how works
wmode
- possible values: window, opaque, transparent. sets window mode property of flash movie transparency, layering, , positioning in browser.
window
- movie plays in own rectangular window on web page.opaque
- movie hides on page behind it.transparent
- background of html page shows through transparent portions of movie, may slow animation performance.
wmode optional parameter in api . in code not see of values required wmode of swf .
for more information refer document in link : http://kb2.adobe.com/cps/127/tn_12701.html
thanks,
sudheendra
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment