In the div, I have a flash file embedded. This div is initially visible with display:block;
. There are two other sister divs alongside this one. All three divs are controlled by jQuery tabs, which means when a different tab is clicked, the current visible div becomes hidden (display:none
). However, upon clicking back to the tab with the flash content, all stored values within the flash file get reset. For example, text in a textarea and image paths are lost.
I attempted using width:0; height:0;
, but the larger size of the flash file caused it to be partially visible under the other divs. Setting overflow:hidden;
did not solve the issue either as it still resulted in the loss of data.
visibility:hidden
was not an option due to creating a large white space where the flash should be displayed.
Similarly, setting
position:absolute; top:-800px; left:-600px;
led to losing variables as well.
Even trying
border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
did not help in retaining the stored values.
I have also included wmode=transparent
in the embed code.
Below is the flash embed code snippet:
<object wmode="transparent" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="690" height="2047" id="gdh_v3_1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gdh_v4.swf?rnd=6389" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="wmode" value="transparent">
<param name="FlashVars" value="forcecrop=False&submitted=False&headerfile=&footerfile=&xmlfile=<?php echo $_GET['adfolder'];?>.xml&adfolder=<?php echo $_GET['adfolder'];?>&pics=gld101cc%2Ejpg%2C" />
<embed wmode="transparent" src="gdh_v4.swf?rnd=6389" FlashVars=forcecrop=False&submitted=False&headerfile=&footerfile=&xmlfile=<?php echo $_GET['adfolder'];?>.xml&adfolder=<?php echo $_GET['adfolder'];?>&pics=gld101cc%2Ejpg%2C" quality="high" bgcolor="#ffffff" width="690" height="2047" name="gdh_v4" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>