flash - Load external SWF with transparent background -
i have loaded external swf main swf using
var swf_load:loader = new loader(); swf_load.load(new urlrequest("two.swf"));
i made "main.swf" background transparent in html using wmode "transparent" , it's working fine. when "two.swf" file loading has default background white. how create transparent
thanks, sathya
in published html page
<script language="javascript"> if (ac_fl_runcontent == 0) { alert("this page requires ac_runactivecontent.js."); } else { ac_fl_runcontent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'width', '100%', 'height', '100%', 'src', 'project_source', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'transparent', 'devicefont', 'false', 'id', 'project_id', 'bgcolor', '#006699', 'name', 'project_name', 'menu', 'true', 'allowfullscreen', 'false', 'allowscriptaccess','samedomain', 'movie', 'project_movie', 'salign', '', 'flashvars', '' ); //end ac code } </script>
make "wmode" property 'transparent'. if html page contain tag content alter "wmode" property 'transparent' in tag.
note: create sure swf page didn't contain backgrounds.
flash transparent
No comments:
Post a Comment