<?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>The Css Bug &#187; Flash</title>
	<atom:link href="http://thecssbug.com/category/flash/feed" rel="self" type="application/rss+xml" />
	<link>http://thecssbug.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 29 Jul 2009 15:52:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flash XML cache problem</title>
		<link>http://thecssbug.com/flash-xml-cache-problem</link>
		<comments>http://thecssbug.com/flash-xml-cache-problem#comments</comments>
		<pubDate>Wed, 01 Jul 2009 16:42:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[Caching]]></category>

		<guid isPermaLink="false">http://thecssbug.com/?p=87</guid>
		<description><![CDATA[Prevent XML files from caching when working with actionscript and dynamic data.]]></description>
			<content:encoded><![CDATA[<p>One of the most common problem encountered when working with <strong>XML in <a href="http://thecssbug.com/category/flash">Flash</a></strong> and dynamic data, is that the browsers tend to cache the xml files.</p>
<p>Let&#8217;s we are building a dynamic photo gallery in flash using <strong>ActionsScript 3.0</strong>. The data is originally placed in a MySQL database, and through a web application written in PHP, the user is allowed to upload files to the gallery or delete existing files. <a href="http://thecssbug.com/category/flash">Flash</a> is used as a front-end in order to achieve better results for visual effects. When the user makes changes to the gallery, the <a href="http://thecssbug.com/category/php">PHP application</a> updates the XML file located on the webserver with the new data. When accesing the page containing the flash galley, the user should see the updated gallery, but instead he sees the old one. The reason is that the browser loads the XML file from it&#8217;s cache and not the webserver. Not even a refresh won&#8217;t solve this problem on most browsers.</p>
<p>The solution is a small trick used by programmers to fool the browser into thinking it is always loading a different file, by adding an extra parameter (with a ramndom value)  to the URL of the file that is beeing loaded. So, even if the file name itself is the same, the URL changes on every request.</p>
<p>The changes must be made on the portion of the code where the XML file is requested throught ActionScript.</p>
<pre class="brush: c++">

myIdentifier=Math.round(Math.random()*10000);
xmlData.load(&quot;gallery.xml?uid=&quot;+myIdentifier);
</pre>
<p>Simple as that!</p>
]]></content:encoded>
			<wfw:commentRss>http://thecssbug.com/flash-xml-cache-problem/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash on top of lightbox</title>
		<link>http://thecssbug.com/flash-on-top-of-lightbox</link>
		<comments>http://thecssbug.com/flash-on-top-of-lightbox#comments</comments>
		<pubDate>Sat, 02 May 2009 00:16:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[embeded]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[wmode]]></category>

		<guid isPermaLink="false">http://thecssbug.com/?p=83</guid>
		<description><![CDATA[Many of us are using a lightbox library for nice looking photo galleries, either on a blog or some other kind of website. When using a flash menu, or banner, on the same page usualy the flash gets on top of the image in the lightbox, creating a nasty looking effect.
A Flash movie in a [...]]]></description>
			<content:encoded><![CDATA[<p>Many of us are using a <strong>lightbox</strong> library for nice looking photo galleries, either on a blog or some other kind of website. When using a <strong>flash</strong> menu, or banner, on the same page usualy the <strong>flash</strong> gets on top of the image in the<strong> lightbox</strong>, creating a nasty looking effect.</p>
<p>A <strong>Flash movie</strong> in a layer on a DHTML page containing several layers may display above all the layers, regardless of the stacking order (&#8220;z-index&#8221;) of those layers. By default, browsers place embedded plug-in content, such as a Flash movie or Java applet, on the topmost layer.</p>
<p>In orderto to allow layering of Flash content with DHTML layers use the <strong>WMODE</strong> parameter . The WMODE parameter can be &#8216;window&#8217; (default), &#8216;opaque&#8217;, or &#8216;transparent&#8217;. Using a WMODE value of &#8216;opaque&#8217; or &#8216;transparent&#8217; will prevent a Flash movie from playing in the topmost layer and allow you to adjust the layering of the movie within other layers of the HTML document.</p>
<p>To edit an existing HTML page, add the WMODE parameters to the HTML code.</p>
<p>Add the following parameter to the OBJECT tag:</p>
<pre class="brush: html">
&lt;param name=&quot;wmode&quot; value=&quot;opaque&quot;&gt;
</pre>
<p>Add the following parameter to the EMBED tag:</p>
<pre class="brush: html">

wmode=&quot;opaque&quot;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://thecssbug.com/flash-on-top-of-lightbox/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
