<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learning Is Fun &#187; AJAX</title>
	<atom:link href="http://www.tanzilo.com/category/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tanzilo.com</link>
	<description>Talks on Web Technology and Better Product Development</description>
	<lastBuildDate>Sat, 17 Jan 2009 22:17:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Flash swf and Lightbox overlapping problem solution</title>
		<link>http://www.tanzilo.com/2008/12/13/flash-swf-and-lightbox-overlapping-problem-solution/</link>
		<comments>http://www.tanzilo.com/2008/12/13/flash-swf-and-lightbox-overlapping-problem-solution/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 21:54:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Lightbox]]></category>
		<category><![CDATA[overlapping]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://www.tanzilo.com/?p=53</guid>
		<description><![CDATA[Recently I was working in an American project where my client wanted to convert this static site to dynamic. Everything was fine except the gallery. The existing gallery was done using Lightbox effect and there was a flash audio file. The audio file was avoiding the Lightbox effect and coming overlapping any effect. And this [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was working in an American project where my client wanted to convert this static site to dynamic. Everything was fine except the gallery. The existing gallery was done using <strong>Lightbox</strong> effect and there was a flash audio file. The audio file was avoiding the Lightbox effect and coming overlapping any effect. And this is where the problem started.</p>
<p>OK. See below for an idea how it looked:</p>
<p><a href="http://www.tanzilo.com/wp-content/uploads/2008/12/flash-lightbox-one.jpg"><img class="alignnone size-full wp-image-54" style="clear:both; float:none;" title="flash-lightbox-one" src="http://www.tanzilo.com/wp-content/uploads/2008/12/flash-lightbox-one.jpg" alt="" width="391" height="341" /></a></p>
<p>Not funny or interesting. Ugly, Huh? So, my client requested to fix it.</p>
<p>But what is the reason for this problem? Hm? Actually this was happening because Flash file is always above any other elements in your page. It comes at the topmost priority position in your page and that is why it can ignore the Lightbox effect. Our job is to make sure taht the Flash swf file stands behind the door when a Lighbox effect is in action. Clear?</p>
<p>In few blogs, I found possible solutions and they did not work. One possible solution that I thought would work was using z-index property in CSS. One coder advised to keep the embedding code in a lower z-index (such as 0) and keeping the container gallery in higher z-index (such as 1). Although he said, it worked for her, but did not work for me. But you can give a try if you want. May be this trick can work for you depending you code.</p>
<p>So, how did you fix it so that it looks like as follows?</p>
<p><a href="http://www.tanzilo.com/wp-content/uploads/2008/12/flash-lightbox-two.jpg"><img class="alignnone size-medium wp-image-55" style="clear:both; float:none;" title="flash-lightbox-two" src="http://www.tanzilo.com/wp-content/uploads/2008/12/flash-lightbox-two-300x247.jpg" alt="" width="300" height="247" /></a></p>
<p>So, what is the trick?  If you make sure that you added the following lines <span style="color: #ff0000;"><strong>bold red</strong></span> in your HTML code, the problem is solved.</p>
<p>&lt;?php<br />
$client_testimonial = &#8220;/testimonials/audio_file.mp3&#8243;;<br />
?&gt;<br />
&lt;object type=&#8221;application/x-shockwave-flash&#8221; width=&#8221;200&#8243; height=&#8221;15&#8243;<br />
data=&#8221;/testimonials/xspf_player_slim.swf?song_url=&lt;?php echo $client_testimonial; ?&gt;&amp;song_title=Air-trekkers Testimonial&amp;player_title=Click to hear testimonial!&#8221;&gt;<br />
<span style="color: #ff0000;"><strong>&lt;param name=&#8221;wmode&#8221; value=&#8221;opaque&#8221;&gt;</strong></span><br />
&lt;param name=&#8221;movie&#8221;<br />
value=&#8221;/testimonials/xspf_player_slim.swf?song_url=&lt;?php echo $client_testimonial; ?&gt;&amp;song_title=Air-trekkers Testimonial&amp;player_title=Click to hear testimonial!&#8221; /&gt;<br />
&lt;embed <span style="color: #ff0000;"><strong>wmode=&#8221;opaque&#8221;</strong></span> src=&#8221;/testimonials/xspf_player_slim.swf?song_url=&lt;?php echo $client_testimonial; ?&gt;&amp;song_title=Air-trekkers Testimonial&amp;player_title=Click to hear testimonial!&#8221; quality=&#8221;high&#8221; pluginspage=&#8221;http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&#8221; type=&#8221;application/x-shockwave-flash&#8221; width=&#8221;200&#8243; height=&#8221;15&#8243;&gt;&lt;/embed&gt;<br />
&lt;/object&gt;</p>
<p>That is all and&#8230;</p>
<p>Thank you for reading.</p>
<p><map name='google_ad_map_53_eaab367e2f0158c1'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/53?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_53_eaab367e2f0158c1' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=53&amp;url= http%3A%2F%2Fwww.tanzilo.com%2F2008%2F12%2F13%2Fflash-swf-and-lightbox-overlapping-problem-solution%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.tanzilo.com/2008/12/13/flash-swf-and-lightbox-overlapping-problem-solution/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
