We help IT Professionals succeed at work.

flash overlay close using button

shjani
shjani asked
on
Medium Priority
388 Views
Last Modified: 2012-05-11
I have a flash overlay and I'm trying to get it to close using a flash button.  The flash is within <div> but having problems

Here's the website...trying to help a friend  http://www.spafiori.com/index_new.html

The return to website button

<script type="text/javascript"> 
//<![CDATA[
	//FLASH MOVIES (using SWFObject for IE Eolas changes)

	var wreath = new SWFObject("wreaths/spafiori_new.swf", "mymovie", "496", "252", "0", "#999999");
//]]>
</script>



<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19766158-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>



</head>

<body id="portfolio" onload="showExample(wreath, 'flash_viewer')">
<div id="exampleArea">
<div id="shade" onclick="void(0)"></div>
	<!-- FOR FLASH EXAMPLES -->
	<div id="flash_viewer">
		The feature you're trying to access requires the Flash plug-in.  
		If you're seeing this message, you probably don't have the plug-in.
	</div>
	<!-- IMAGE VIEWER -->
	<div id="image_viewer">
	
	</div>
<!---	<input type="button" id="closeButton" onclick="showPage()" value="Close" /> --->
</div>

Open in new window

Comment
Watch Question

Top Expert 2011

Commented:
What is you stage size in FLA>?
Top Expert 2011

Commented:
You Flash holder is width 700px but wreaths/spafiori_new.swf width 496px you may prevent from div holder

#flash_viewer {
    display: none;
    left: 50%;
    margin-left: -350px;
    position: absolute;
    text-align: center;
    top: 20px;
    width: 700px;
    z-index: 200;
}
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
typo...Thanks for your help...
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.