Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

flash overlay close using button

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

0
shjani
Asked:
shjani
  • 2
  • 2
1 Solution
 
dgofmanCommented:
What is you stage size in FLA>?
0
 
dgofmanCommented:
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;
}
0
 
shjaniAuthor Commented:
Was able to figure it out on my own with a function that was within the javascript on the website.  Because I was trying to retrofit an existing website, I had to do some investigating.  That's for your help.
0
 
shjaniAuthor Commented:
typo...Thanks for your help...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now