Hi Guys,
I have an embedded flash file that contains a button when clicked displays a div object over the flash file by setting the div visibility attribute to visible. This is done by activating a javascript.
I have also taken into consideration the z-index of the div ad setting the flash to
<param name=“wmode” value=“transparent”>
It works fine and the div objects displays over the flash.
However, I have a slide show running in the background, and whenever the slide show changes to the next image the div objects disappears. I’m not sure how to prevent this. Does anyone have any ideas?
I can tell you that at the very least you need your main_flash.php to have this change
OLD:
<script>
var xmlHttp = createXmlHttpRequestObject();
NEW:
<script type="text/javascript">
var xmlHttp = createXmlHttpRequestObject();
//response must be defined outside of your function calls because you are
//attempting to access it in a function it hasn't been defined in
var response;//This is the import change
[quote=actionAction;2345423]I can tell you that at the very least you need your main_flash.php to have this change
OLD:
<script>
var xmlHttp = createXmlHttpRequestObject();
NEW:
<script type="text/javascript">
var xmlHttp = createXmlHttpRequestObject();
//response must be defined outside of your function calls because you are
//attempting to access it in a function it hasn't been defined in
var response;//This is the import change
[/quote]
Thanks for the response, I made the relevant changes suggested. I think this fixed the problem for IE browsers as the div probably didn’t appear at all because the ‘response’ variable wasn’t declared. But firefox seemed to ignore this error.
Still by making this small change, it didn’t change or fix what I am trying to achieve. My div still appears on top of my flash, however, the slide show still makes the div disappear when the slide show changes image. It pushes the div behind.
More to the point. Is it possible to have a div object over an embedded flash object that wont hide when an event or action occurs inside the embedded flash file? If so can someone show me an example?