-
4 Jan 2010 12:01 AM #1
Flash visibility
Flash visibility
hi
i've got a problem with flash.
I'm using web desktop of gxt 2.1 and i've got a window
in the window i've an htmlPanel, and inside i put a div with the flash object
like this
in the htmlPanel, i set html:
String game = "<div width='100%'><object codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#3,0,0,0' height='100%' width='100%'><param name='SRC' value='"+ urlSWF + "'> <param name='QUALITY' value='high'> <embed src='"+urlSWF+ "' pluginspage='http://www.macromedia.com/shockwave/download/' type='application/x-shockwave-flash' quality='high' height='100%' width='100%'></object></div>";
htmlPanel.setHTML(game);
It works fine. The problem is if i click on another shortcut, ( so it open another window), the flash object is in front of the new window !
I've tried to use the class FlashComponent, but it's work at all using the constructor FlashComponent(urlSWF). i can see it.
Thanks in advance.
-
4 Jan 2010 1:04 AM #2
Of course it is. Flash is rendered as a separate plugin within your browser.
It will allways be rendered in the front of all the javascript.
Anyway, you can use following:
Pay attention on wmode parameter.PHP Code:<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="601" height="252" id="florina" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="fileadmin/template/main/images/florina.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#74c480" />
<embed src="http://www.florina.si/fileadmin/template/main/images/florina.swf" quality="high" wmode="transparent" bgcolor="#74c480" width="601" height="252" name="florina" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
-
4 Jan 2010 1:23 AM #3
-
4 Jan 2010 4:14 AM #4


Reply With Quote