Sign in to follow this  
priyank15

Setting Style Properties Like Z Index For The Flash Object

Recommended Posts

Hi,

I am using fusionmaps World Map using Javascript

<script>
var map = new FusionMaps("/gra/swf/Maps/FCMap_World.swf", "Map1Id", "750", "400", "0", "0");
map.setDataURL("${request.getContextPath()}"+"${marker_simplepath}" + "mymap" + ${userid}+".xml");
map.render("mdiv");
</script>

 

How do I set the style for the Flash Object like if I want to set properties like

style="z-index: inherit;position: relative;"

to the flash object. how do I do it?

 

in other occurrences I use fusion charts like this

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" align="center" width="440" height="350"  name="Column3D"
 style="z-index: inherit;position: relative;"
codebase="http:/download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="Column3D">
<param name="movie" value="/gra/swf/FCF_Column3D.swf" />
<param name="FlashVars" value="&dataXML=${dataXML}" />
<param name="quality" value="high" />
 <param name="wmode" value="transparent" />
 	<embed src="/gra/swf/FCF_Column3D.swf" flashVars="&dataXML=${dataXML}" 
  	quality="high" width="440" height="350" name="Column3D" type="application/x-shockwave-flash" 
  	pluginspage="http://www.macromedia.com/go/getflashplayer" />
 	</object>

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your post.

 

You would need to render the map in opaque or transparent mode in order to suffice your requirement.

 

To render in transparent mode,please add : map.setTransparent(true); before

 

map.render("mdiv").

 

To render the map in opaque mode, please add : map.setTransparent(false); before

 

map.render("mdiv").

 

These would integrate the map with the HTML layout (otherwise the maps remains in a separate HTML layout).

 

Now, please set the CSS styles to the map container DIV (or the HTML element where the map is rendered).

 

Hope this helps.

Share this post


Link to post
Share on other sites

 

in other occurrences I use fusion charts like this

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" align="center" width="440" height="350"  name="Column3D"
 style="z-index: inherit;position: relative;"
codebase="http:/download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="Column3D">
<param name="movie" value="/gra/swf/FCF_Column3D.swf" />
<param name="FlashVars" value="&dataXML=${dataXML}" />
<param name="quality" value="high" />
 <param name="wmode" value="transparent" />
 	<embed src="/gra/swf/FCF_Column3D.swf" flashVars="&dataXML=${dataXML}" 
  	quality="high" width="440" height="350" name="Column3D" type="application/x-shockwave-flash" 
  	pluginspage="http://www.macromedia.com/go/getflashplayer" />
 	</object>

 

For this method set wmode param to opaque or transparent.

<object ...>
 <param name="wmode" value="opaque" />
...
 <embed  wmode="opaque" .../>
</object>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this