<?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>web.erratica &#187; flash + actionscript</title>
	<atom:link href="http://www.weberratica.com/category/flash-actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.weberratica.com</link>
	<description>an rr.interactive resource site for web designers, developers and clients</description>
	<lastBuildDate>Sat, 01 May 2010 11:13:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>getting pages with flash to validate</title>
		<link>http://www.weberratica.com/2007/09/30/getting-pages-with-flash-to-validate/</link>
		<comments>http://www.weberratica.com/2007/09/30/getting-pages-with-flash-to-validate/#comments</comments>
		<pubDate>Sun, 30 Sep 2007 21:25:39 +0000</pubDate>
		<dc:creator>robin ragle-davis</dc:creator>
				<category><![CDATA[css + standards compliant markup]]></category>
		<category><![CDATA[flash + actionscript]]></category>

		<guid isPermaLink="false">http://www.weberratica.com/2007/09/30/getting-pages-with-flash-to-validate/</guid>
		<description><![CDATA[I spent a good portion of last week taking my own site, rrinterative.com, out of tables, creating nice tableless css and then making sure it validated. Of course you know the one about the cobblers children &#8211; I preach search friendly valid code but when it came time to put my own site up I [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a good portion of last week taking my own site, <a href="http://www.rrinteractive.com" target="_blank">rrinterative.com</a>, out of tables, creating nice tableless css and then making sure it validated. <em>Of course you know the one about the cobblers children</em> &#8211; I preach search friendly valid code but when it came time to put my own site up I pretty much just threw it up there nasty old tables and all.</p>
<p>I&#8217;m not done &#8211; a couple of pages still need work but the biggest hurdle in the process was that the <a href="http://validator.w3.org/" target="_blank">validator</a> [as you may have experienced yourself] does not like the embed tag &#8211; you know, the one Netscape based browsers, including my version of Firefox, require or Flash will not display properly.</p>
<p>I didn&#8217;t want to give up the Flash file, I wanted it to validate.</p>
<p>And so it does with a nifty conditional statement.</p>
<p>This is for ColdFusion but the same thing can be done in php, .NET whatever. . .</p>
<p>So here is my code &#8211; I&#8217;m including it all from the opening to closing object tag:</p>
<p>&lt;object classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243; codebase=&#8221;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0&#8243; width=&#8221;531&#8243; height=&#8221;179&#8243; title=&#8221;Bubble Flash&#8221;&gt;&lt;param name=&#8221;movie&#8221; value=&#8221;bubblesrrv1.swf&#8221; /&gt;<br />
&lt;param name=&#8221;quality&#8221; value=&#8221;high&#8221; /&gt;<br />
&lt;cfif  #Find(&#8220;Netscape&#8221;,CGI.HTTP_USER_AGENT)#&gt;&lt;embed src=&#8221;bubblesrrv1.swf&#8221; quality=&#8221;high&#8221; pluginspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221; type=&#8221;application/x-shockwave-flash&#8221; width=&#8221;531&#8243; height=&#8221;179&#8243; /&gt;&lt;/cfif&gt;<br />
&lt;cfif  #Find(&#8220;Firefox&#8221;,CGI.HTTP_USER_AGENT)#&gt;&lt;embed src=&#8221;bubblesrrv1.swf&#8221; quality=&#8221;high&#8221; pluginspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221; type=&#8221;application/x-shockwave-flash&#8221; width=&#8221;531&#8243; height=&#8221;179&#8243; /&gt;&lt;/cfif&gt;&lt;/object&gt;</p>
<p>I&#8217;m sure there are better methods out there. This worked for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weberratica.com/2007/09/30/getting-pages-with-flash-to-validate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Countdown Clock</title>
		<link>http://www.weberratica.com/2007/09/02/flash-countdown-clock/</link>
		<comments>http://www.weberratica.com/2007/09/02/flash-countdown-clock/#comments</comments>
		<pubDate>Sun, 02 Sep 2007 12:27:48 +0000</pubDate>
		<dc:creator>robin ragle-davis</dc:creator>
				<category><![CDATA[flash + actionscript]]></category>

		<guid isPermaLink="false">http://www.weberratica.com/?p=3</guid>
		<description><![CDATA[I needed to create a countdown to election day clock for a web site I oversee. After a php version proved unsatisfactory (you had to reload the page to see the change in time) I searched the web for a Flash version.
I&#8217;m sure there are others out there. I was able to find code for [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to create a countdown to election day clock for a web site I oversee. After a php version proved unsatisfactory (you had to reload the page to see the change in time) I searched the web for a Flash version.</p>
<p>I&#8217;m sure there are others out there. I was able to find code for a clock that counted down to midnight (didn&#8217;t take into account multiple days) or one that you could generate on a website and use as an include but wasn&#8217;t self customizable for look and feel.</p>
<p>I finally created my own.</p>
<p>I am hoping this will prove useful to others. . .its a very simple design but you change the look and feel to be as loud and spectacular as you like. The important parts are the actionscript and the dynamic text fields.</p>
<p>The actionscript is heavily commented so you should find it easy to  customize.</p>
<p>All I ask is that you email me [  <a href="mailto:robin@rrinteractive.com">robin@rrinteractive.com</a> ] and let me know where you have used it. Otherwise its free.</p>
<p>If you find any bugs or improve upon it share with us here.</p>
<p>Here is the zip file: <a href="http://www.weberratica.com/wp-content/uploads/2007/09/clock3fla.zip" title="clock3fla.zip">clock3fla.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.weberratica.com/2007/09/02/flash-countdown-clock/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
