<?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>Mike Richards Photography Blog</title>
	<atom:link href="http://www.mikerichardsphotography.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikerichardsphotography.com/blog</link>
	<description></description>
	<lastBuildDate>Thu, 16 Feb 2012 20:12:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Web Site and Gallery Update</title>
		<link>http://www.mikerichardsphotography.com/blog/2012/02/16/web-site-and-gallery-update/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2012/02/16/web-site-and-gallery-update/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 20:12:11 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Opinion]]></category>
		<category><![CDATA[Website Update]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=267</guid>
		<description><![CDATA[We are working on another site update as part of which I&#8217;m planning on moving away from SimpleViewer and SWFAddress. There has been a lot of hate on Flash lately I have mixed feelings on the issue and part of me hates joining in on that hate. I&#8217;m a big fan of open source, open [...]]]></description>
			<content:encoded><![CDATA[<p>We are working on another site update as part of which I&#8217;m planning on moving away from SimpleViewer and SWFAddress. There has been a lot of hate on Flash lately I have mixed feelings on the issue and part of me hates joining in on that hate. I&#8217;m a big fan of open source, open format and web standards and I really like having the option to be able to customize code and not have that code limited as to where it will run. However most of the flash applications out there just seem so much more refined than their open JavaScript/HTML/CSS counter parts. I have had a heck of a time finding a gallery that would fit my needs, on several occasions came very close to coding my own, but for now have settled on <a href="https://github.com/aino/galleria" title="Galleria">Galleria</a> and <a href="https://github.com/balupton/history.js" title="history.js">History.js</a> for deep linking. Galleria&#8217;s code is a bit bloated, but I have a hard time criticizing open source software. Actions before words right? We&#8217;ll see if I can find time to make the changes I would like when it already functional now. </p>
<p>The redesign of the site is mostly done and will hopefully be up in the next couple of weeks. Until then you can always see new photos at my <a href="http://500px.com/mike-richards" title="Mike Richards on 500px">500px</a> account.</p>
<p><!-- iframe src="http://500px.com/mike-richards/badge/wide" width="450" height="200" style="border:0;overflow:hidden">
<p><a href="http://500px.com/mike-richards">mike-richards</a> on <a href="http://500px.com">500px</a></p>
<p></iframe --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2012/02/16/web-site-and-gallery-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Noise about SOPA</title>
		<link>http://www.mikerichardsphotography.com/blog/2012/01/18/the-noise-about-sopa/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2012/01/18/the-noise-about-sopa/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 20:35:44 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Opinion]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=265</guid>
		<description><![CDATA[Short and sweet &#8211; I don&#8217;t know that there is much that can be said about the Stop Online Piracy Act (SOPA) at this point that isn&#8217;t just adding to the noise. So I will simply join in solidarity with the movement to stop its passage, voice to that I think SOPA is going about [...]]]></description>
			<content:encoded><![CDATA[<p>Short and sweet &#8211; I don&#8217;t know that there is much that can be said about the <a href="http://en.wikipedia.org/wiki/Stop_Online_Piracy_Act" title="Stop Online Piracy Act" target="_blank">Stop Online Piracy Act</a> (SOPA) at this point that isn&#8217;t just adding to the noise. So I will simply join in solidarity with the movement to stop its passage, voice to that I think SOPA is going about what needs to be done, copyright reform, the wrong way and leave it at that for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2012/01/18/the-noise-about-sopa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Plus pages.</title>
		<link>http://www.mikerichardsphotography.com/blog/2011/11/09/google-plus-pages/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2011/11/09/google-plus-pages/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 22:12:34 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Google Plus]]></category>
		<category><![CDATA[Google+]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=244</guid>
		<description><![CDATA[Not sure yet the value of a Google+ page vs a normal Google+ account for Photographers, but that may come as they develop the service. One thing I have notice while looking into pages is a bunch of people talking about &#8220;ERROR CHANGING MEMBERSHIP&#8221; problems, if you take a look at Google&#8217;s tips for the [...]]]></description>
			<content:encoded><![CDATA[<p>Not sure yet the value of a Google+ page vs a normal Google+ account for Photographers, but that may come as they develop the service.</p>
<p>One thing I have notice while looking into pages is a bunch of people talking about &#8220;ERROR CHANGING MEMBERSHIP&#8221; problems, if you take a look at <a href="https://plus.google.com/u/0/b/113981733355401672841/101560853443212199687/posts/dcPPWkBbkLY" title="5 Cool Tips You Should Know About Google+ Pages" target="_blank">Google&#8217;s tips for the new pages feature</a> you will find this:</p>
<blockquote><p>
&#8220;2. No Google+ Page Can Follow You Until You Follow Them</p>
<p>We want Google+ to be a place you love to share. Pages cannot circle you until you follow them first&#8230;&#8221;</p></blockquote>
<p>So if you have a Google plus page and you are trying to follow someone and see &#8220;ERROR CHANGING MEMBERSHIP&#8221; remember they have to follow you first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2011/11/09/google-plus-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Google Plus Thumbnail Panorama Template.</title>
		<link>http://www.mikerichardsphotography.com/blog/2011/10/25/creating-a-google-plus-thumbnail-panorama-template/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2011/10/25/creating-a-google-plus-thumbnail-panorama-template/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 05:55:43 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Gimp]]></category>
		<category><![CDATA[Google Plus]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[technique]]></category>
		<category><![CDATA[Template]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=228</guid>
		<description><![CDATA[I have seen several templates for creating a Google Plus Thumbnail Panorama, but they seem to over-complicate what has to be done. If we go back to the dawn of Photoshop there is a tool that does all the work for us: the slice tool. Using the slice tool to create a thumbnail panorama is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mikerichardsphotography.com/blog/wp-content/uploads/2011/10/photoshopgpluspanoss.jpg"><img src="http://www.mikerichardsphotography.com/blog/wp-content/uploads/2011/10/photoshopgpluspanoss-300x82.jpg" alt="Photoshop G+ Pano Template Screenshot" title="Photoshop G+ Pano Template Screenshot" width="300" height="82" class="aligncenter size-medium wp-image-231" /></a></p>
<p>I have seen several templates for creating a Google Plus Thumbnail Panorama, but they seem to over-complicate what has to be done. If we go back to the dawn of Photoshop there is a tool that does all the work for us: the slice tool. Using the slice tool to create a thumbnail panorama is as easy as downloading my PSD template &#8211; or creating your own PSD that is 670px by 134px with 5 square 134px slices &#8211; adding your image (resizing and positioning as needed) and saving for the web.</p>
<p><a href="http://www.mikerichardsphotography.com/blog/wp-content/uploads/2011/10/g+ pano template.psd" class="download">g+ pano template.psd</a><br/></p>
<p><strong>Gimp:</strong><br />
You can also use the PSD template with the free, open source image editor Gimp. The process does not seem to be as automated, but someone who uses Gimp regularly may be able to correct me on that. Once you open the PSD and add your image to the template, in Gimp&#8217;s image menu choose transform and then Guillotine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2011/10/25/creating-a-google-plus-thumbnail-panorama-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Value of Art</title>
		<link>http://www.mikerichardsphotography.com/blog/2011/10/03/value-of-art/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2011/10/03/value-of-art/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 20:03:07 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Opinion]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=222</guid>
		<description><![CDATA[Three memorable experiences with the pricing of art left it as one of my takeaways from the Alternative Press Expo (APE) in San Francisco this weekend. 1) I found it interesting that one of the artists that we bought a print from had a quasi pay what you like pricing structure, for example some of [...]]]></description>
			<content:encoded><![CDATA[<p>Three memorable experiences with the pricing of art left it as one of my takeaways from the <a href="http://www.comic-con.org/ape/" title="Alternative Press Expo">Alternative Press Expo (APE)</a> in San Francisco this weekend. </p>
<p>1) I found it interesting that one of the artists that we bought a print from had a quasi pay what you like pricing structure, for example some of the pieces were priced $10 &#8211; $20. When I first asked how much the piece was he said something about knowing the economy is bad and he wants to work with people. And later after we were purchasing the item I asked from him one artist to another how the pricing structure was working for him. He seemed embarrassed, said that he guessed that it averages out to somewhere in between, but he didn&#8217;t track his sales and then sheepishly mumbled that he is still not making it.<br />
<span id="more-222"></span><br />
2) I was kind of shocked that another piece we bought was only $5 and I had expected the artist to at least be charging between $20 and $40 for the it.</p>
<p>3) Conversely we went to a talk in which an interview with Alexander Calder was paraphrased as “Your work is worth the time you put into it plus everything it took you to get to this point in your career, thus a 60 sec sketch can be worth $200,000.”</p>
<p>Pay what you want / pay what you think the work is worth seems to be the hip thing to do these days, at least in the music world. MP3 downloads are easy to sell at volume and  volume and averaging out allow this to succeed, but does it really work for the rest of the art world? Is work taken as seriously when it has a flexible or undervalued price? How does this affect other artists? Is this the answer to selling art in a slow economy? </p>
<p>Traditionally art and entertainment tend to continue to do well during periods of economic trouble, people need to feel entertained. Above all if you are going to experiment with pricing make sure you track your sales, otherwise you wont know if it is working or bankrupting you. If you are worried about not getting sales because of the economy, I think a better route is to provide a few different items at different price points, than to experiment or undervalue your work. As to the third stance, while I appreciate and think that it is important to remember not to undervalue your work, not everyone can afford pay or can justify charging $200,000 for a piece of art.  There has to be a balance here. Remember that how we value our work affects how others value both your work and the work of other artists.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2011/10/03/value-of-art/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now out of the San Francisco Bay Area.</title>
		<link>http://www.mikerichardsphotography.com/blog/2011/05/01/now-out-of-the-san-francisco-bay-area/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2011/05/01/now-out-of-the-san-francisco-bay-area/#comments</comments>
		<pubDate>Sun, 01 May 2011 19:49:45 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=213</guid>
		<description><![CDATA[Quick update I just moved from the Boston area back to the San Francisco Bay Area.]]></description>
			<content:encoded><![CDATA[<p>Quick update I just moved from the Boston area back to the San Francisco Bay Area.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2011/05/01/now-out-of-the-san-francisco-bay-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimpleViewer 2 and Fotomoto</title>
		<link>http://www.mikerichardsphotography.com/blog/2010/09/13/simpleviewer-2-and-fotomoto/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2010/09/13/simpleviewer-2-and-fotomoto/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 18:03:18 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[How to]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=145</guid>
		<description><![CDATA[Currently SimpleViewer 2 does not provide a method for clicking an image and running a function. You can however get around this short coming by embedding the simpleviewer.swf into another swf and placing a transparent button over your image area. Note you wont be able to use the image overlay navigation and you will need [...]]]></description>
			<content:encoded><![CDATA[<p>Currently SimpleViewer 2 does not provide a method for clicking an image and running a function.  You can however get around this short coming by embedding the simpleviewer.swf into another swf and placing a transparent button over your image area.  Note you wont be able to use the image overlay navigation and you will need to make your gallery size static. The other option is to create normal purchase button that calls the purchaseImage function.<br />
<span id="more-145"></span><br />
The basic setup is as follows, you then need to turn on the SimpleViewer API, add an event listener that calls purchaseImage when the transparent button is clicked and add svAPI.addEventListener(&#8220;svImageChange&#8221;,checkImage); to onGalleryLoaded. You can find an example of embeding SimpleViewer into a swf and using the API in the examples\flash_embed folder of the Pro download. Finally add the following code to your ActionScript and gallery HTML page.</p>
<p>ActionScript:</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">var</span> svAPI:<span style="color: #0066CC;">Object</span>; <span style="color: #808080; font-style: italic;">//svAPI is the object to call API methods on</span><br />
<br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> onGalleryLoaded<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; svAPI = <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</span>svLoader.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">api</span>;<br />
&nbsp; &nbsp; svAPI.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;svImageChange&quot;</span>,checkImage<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> checkImage<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> imageInfo:<span style="color: #0066CC;">Object</span> = svAPI.<span style="color: #006600;">getImageInfo</span><span style="color: #66cc66;">&#40;</span>svAPI.<span style="color: #006600;">getImageIndex</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> imgURL:<span style="color: #0066CC;">String</span> = imageInfo.<span style="color: #006600;">imageURL</span>;<br />
&nbsp; &nbsp; ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'fmCheckImage'</span>,imgURL<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> purchaseImage<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> imageInfo:<span style="color: #0066CC;">Object</span> = svAPI.<span style="color: #006600;">getImageInfo</span><span style="color: #66cc66;">&#40;</span>svAPI.<span style="color: #006600;">getImageIndex</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> imgURL:<span style="color: #0066CC;">String</span> = imageInfo.<span style="color: #006600;">imageURL</span>;<br />
&nbsp; &nbsp; ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'fmWindow'</span>,imgURL<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p>Add this JavaScript to your gallery html making sure to correct _yourFotoMotoID_</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br /></div></td><td><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">&gt;</span><span style="color: #003366; font-weight: bold;">var</span> fotomoto_api_mode <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;&lt;/</span>script<span style="color: #339933;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">'http://widget.fotomoto.com/stores/script/_yourFotoMotoID_.js'</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span><br />
&nbsp; &nbsp; <span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">//this opens the fotomoto window with the image info.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span> fmWindow<span style="color: #009900;">&#40;</span>theImage<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FOTOMOTO.<span style="color: #660066;">API</span>.<span style="color: #660066;">showWindow</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">100</span><span style="color: #339933;">,</span> theImage<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">//As people browser through your gallery this checks to see if the image is in fotomoto</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">//It will add the image if it isn't and if it is it will update the number of times viewed.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">function</span> fmCheckImage<span style="color: #009900;">&#40;</span>theImage<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FOTOMOTO.<span style="color: #660066;">API</span>.<span style="color: #660066;">checkinImage</span><span style="color: #009900;">&#40;</span>theImage<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></div></td></tr></tbody></table></div>
<p>To use the following example you will need to change the fotomoto id and add your SimpleViewer Pro swf to the folder.<br />
<a href='http://www.mikerichardsphotography.com/blog/wp-content/uploads/2010/09/simpleviewer_fotomoto.zip' class="download">simpleviewer_fotomoto.zip</a></p>
<p>You can also see it working in my <a href="http://www.mikerichardsphotography.com/gallery/">gallery</a>.</p>
<blockquote style="font-size:10px;" ><p>The MIT License</p>
<p>Copyright (c) 2010 Michael Richards &#8211; mikerichardsphotography.com</p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy<br />
of this software and associated documentation files (the &#8220;Software&#8221;), to deal<br />
in the Software without restriction, including without limitation the rights<br />
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br />
copies of the Software, and to permit persons to whom the Software is<br />
furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in<br />
all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br />
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br />
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br />
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br />
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br />
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<br />
THE SOFTWARE.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2010/09/13/simpleviewer-2-and-fotomoto/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Long over due post/gallery update</title>
		<link>http://www.mikerichardsphotography.com/blog/2010/08/30/long-over-due-postgallery-update/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2010/08/30/long-over-due-postgallery-update/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 18:04:37 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=141</guid>
		<description><![CDATA[Been busy and it looks like that trend is going to carry on for the foreseeable future. I have updated all of my galleries with the exception of Oceans adding 16 new images, primarily to Abstractions 2. I have a review halfway written for RadioPopper&#8217;s JrX STUDIO flash triggers which I will try to have [...]]]></description>
			<content:encoded><![CDATA[<p>Been busy and it looks like that trend is going to carry on for the foreseeable future. I have updated all of my galleries with the exception of Oceans adding 16 new images, primarily to Abstractions 2. I have a review halfway written for  RadioPopper&#8217;s JrX STUDIO flash triggers which I will try to have up soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2010/08/30/long-over-due-postgallery-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some new hardware and software &#8220;toys&#8221; and site updats&#8230;</title>
		<link>http://www.mikerichardsphotography.com/blog/2010/03/11/lots-of-new-toys/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2010/03/11/lots-of-new-toys/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 21:10:00 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Website Update]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=124</guid>
		<description><![CDATA[Steve Chapman&#8217;s (panocamera.com) Nintendo DS Camera Controller which I purchased awhile ago has been open sourced as Open Camera Control. Palm has released the beta version of the native Plug-in Developer Kit (PDK) for the Palm Pre, though unfortunately they don&#8217;t have support for Linux yet. I finally got around to completing the assembly of [...]]]></description>
			<content:encoded><![CDATA[<p>Steve Chapman&#8217;s (panocamera.com) <a href="http://panocamera.com/blog/?p=26">Nintendo DS Camera Controller</a> which I purchased awhile ago has been open sourced as <a href="http://www.hdrlabs.com/occ/index.html">Open Camera Control</a>. </p>
<p>Palm has released the beta version of the native <a href="http://developer.palm.com/blog/2010/03/beta-pdk-released/">Plug-in Developer Kit (PDK)</a> for the Palm Pre, though unfortunately they don&#8217;t have support for Linux yet.</p>
<p>I finally got around to completing the assembly of the <a href="http://www.glacialwanderer.com/hobbyrobotics/?p=325">Camera Axe</a> I got for Christmas.</p>
<p>Seems like I&#8217;m constantly tinkering with site updates I added 29 new images to  my galleries and <a href="http://blog.fotomoto.com/2010/02/16/fotomoto-api-v07/">Fotomoto released their API</a> last month which I integrated with SimpleViewer. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2010/03/11/lots-of-new-toys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: SimpleViewer 2 and SWFAddress.</title>
		<link>http://www.mikerichardsphotography.com/blog/2010/01/28/how-to-simpleviewer-2-and-swfaddress/</link>
		<comments>http://www.mikerichardsphotography.com/blog/2010/01/28/how-to-simpleviewer-2-and-swfaddress/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 18:07:54 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[deep linking]]></category>
		<category><![CDATA[deeplinking]]></category>
		<category><![CDATA[flash gallery]]></category>
		<category><![CDATA[simpleviewer]]></category>
		<category><![CDATA[swfaddress]]></category>

		<guid isPermaLink="false">http://www.mikerichardsphotography.com/blog/?p=91</guid>
		<description><![CDATA[As this is an update to an existing post I will dispense with a basic introduction. The major difference between this post and the previous is that the new version uses Actionscript 3. Here is the deep linking example of SimpleViewer 2 and SWFAddress 2.4. What you will need to download: SimpleViewer Pro 2.0.1 SWFAddress [...]]]></description>
			<content:encoded><![CDATA[<p>As this is an update to an <a href="http://www.mikerichardsphotography.com/blog/2009/05/15/how-to-adding-swfaddress-to-simpleviewer/">existing post</a> I will dispense with a basic introduction. The major difference between this post and the previous is that the new version uses Actionscript 3. Here is the deep linking <a href="http://www.mikerichardsphotography.com/example/SV2withSWFAddress/">example of SimpleViewer 2 and SWFAddress 2.4</a>.</p>
<p>What you will need to download:</p>
<ul>
<li><a href="http://www.simpleviewer.net/simpleviewer/pro/">SimpleViewer Pro 2.0.1</a></li>
<li><a href="http://www.asual.com/download/swfaddress">SWFAddress 2.4</a></li>
<li>If you don&#8217;t have it <a href="http://www.adobe.com/products/flash/">Adobe Flash Professional</a></li>
</ul>
<p><span id="more-91"></span><br />
Make a new folder on your desktop – you can call it whatever you would like, for the tutorial I&#8217;m going to call mine <strong>gallery</strong>. </p>
<p>Extract the file you download from the SimpleViwer site, simpleviewer-pro.zip.</p>
<p>Copy all of the files in the <strong>flash_embed</strong> folder into your <strong>gallery</strong> folder. You will find the Flash Embed example in the SimpleViewer folder you created when you extracted the simpleviewer-pro.zip under <strong>simpleviewer-pro2_1/examples/flash_embed</strong>.</p>
<p>Rename simpleviewer_flash_embed.fla to simpleviewer_swfaddress.fla, delete  simpleviewer_flash_embed.swf and simpleviewer_flash_embed.html.</p>
<p>Unzip swfaddress-2.4zip</p>
<p>Copy the <strong>asual</strong> folder found in <strong>swfaddress-2.4\dist\as\3\com\</strong> to <strong>gallery\com\</strong>.</p>
<p>Copy swfaddress.js from <strong>swfaddress-2.4\dist\js</strong> to the <strong>gallery</strong> folder.</p>
<p>In the <strong>gallery</strong> folder right click new>text document. Rename the text file to index.html.</p>
<p>You should now have all of the files you need in the <strong>gallery</strong> folder:</p>
<ul>
<li>com folder</li>
<li>images folder</li>
<li>thumbs folder</li>
<li>gallery_1.xml</li>
<li>gallery_2.xml</li>
<li>index.html</li>
<li>simpleviewer_swfaddress.fla</li>
<li>simpleviewer.swf</li>
<li>swfaddress.js</li>
</ul>
<p>In your <strong>gallery</strong> folder open index.html and copy the following code into index.html:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span> xml:<span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en&quot;</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">meta</span></a> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span>Simpleviewer Gallery with SWFAdress<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;swfaddress.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var flashvars = {};<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var params = {};<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; params.scale = &quot;noscale&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; params.allowfullscreen = &quot;true&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; params.allowScriptAccess = &quot;sameDomain&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; swfobject.embedSWF(&quot;simpleviewer_swfaddress.swf&quot;, &quot;galleryContent&quot;, &quot;900&quot;, &quot;670&quot;, &quot;10.0.0&quot;, false, flashvars, params);<br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">style</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;screen&quot;</span>&gt;</span><br />
&nbsp; &nbsp; object { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; outline:none; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; body {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; margin:0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; padding:0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">style</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;galleryContent&quot;</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span>In order to view these galleries you must have <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&quot;</span>&gt;</span>Adobe Flash Player<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span> installed. <br />
&nbsp; &nbsp; If you know that you have Flash installed, then please ensure JavaScript and/or Active Content are enabled.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/p.html"><span style="color: #000000; font-weight: bold;">p</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></div></td></tr></tbody></table></div>
<p>In your <strong>gallery</strong> folder open simpleviewer_swfaddress.fla with Adobe Flash Professional. Delete all the buttons and the text box, with the exception of the Load Gallery 1 and 2 buttons. (Feel free to change the background color so it&#8217;s not so hard to look at.) </p>
<p><img src="http://www.mikerichardsphotography.com/blog/wp-content/uploads/2010/01/sv2swfaddress-withoutextrabuttons.jpg" alt="SimpleViewer 2 flash_embed example screen shot" title="sv2swfaddress-withoutextrabuttons" width="550" height="391" class="aligncenter size-full wp-image-101" /> </p>
<p>Now select the code layer&#8217;s Actions &#8211; Frame within the simpleviewer_swfaddress.fla document and replace the existing code with the following:</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:700px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br /></div></td><td><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">//Mike Rchards - mikerichardsphotography.com</span><br />
<span style="color: #808080; font-style: italic;">//This code is provided free without guarantee and is &quot;AS IS&quot;.</span><br />
<br />
<span style="color: #808080; font-style: italic;">//import required classes</span><br />
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #66cc66;">*</span>;<br />
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">net</span>.<span style="color: #006600;">URLRequest</span>; <br />
<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">asual</span>.<span style="color: #006600;">swfaddress</span>.<span style="color: #66cc66;">*</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">//turn off stage auto resizing</span><br />
<span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">scaleMode</span> = StageScaleMode.<span style="color: #006600;">NO_SCALE</span>;<br />
<span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">align</span> = StageAlign.<span style="color: #006600;">TOP_LEFT</span>; &nbsp; &nbsp; &nbsp;<br />
<br />
<span style="color: #808080; font-style: italic;">//Init variables</span><br />
<span style="color: #000000; font-weight: bold;">var</span> svAPI:<span style="color: #0066CC;">Object</span>; <span style="color: #808080; font-style: italic;">//svAPI is the object to call API methods on</span><br />
<span style="color: #000000; font-weight: bold;">var</span> swfLoaded:<span style="color: #0066CC;">Boolean</span> = <span style="color: #000000; font-weight: bold;">false</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> galleryURL:<span style="color: #0066CC;">String</span>; <span style="color: #808080; font-style: italic;">//used when switching between galleries</span><br />
<span style="color: #000000; font-weight: bold;">var</span> imageIndex:<span style="color: #0066CC;">Number</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> svLoader:Loader = <span style="color: #000000; font-weight: bold;">new</span> Loader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//loader to load SimpleViewer swf into</span><br />
<span style="color: #000000; font-weight: bold;">var</span> galleryShowing:<span style="color: #0066CC;">Boolean</span> = <span style="color: #000000; font-weight: bold;">true</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">//the default galleryname should be the same as the name of the xml minus .xml</span><br />
<span style="color: #000000; font-weight: bold;">var</span> defaulGallery:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;gallery_1&quot;</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> currentGalName:<span style="color: #0066CC;">String</span> =<span style="color: #ff0000;">&quot;&quot;</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">//add svLoader to the &quot;mcLoader&quot; stage movieclip on the main timeline</span><br />
mcLoader.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>svLoader<span style="color: #66cc66;">&#41;</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">//listen for SWF loaded</span><br />
svLoader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">INIT</span>, onViewerInit<span style="color: #66cc66;">&#41;</span>;<br />
SWFAddress.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>SWFAddressEvent.<span style="color: #006600;">EXTERNAL_CHANGE</span>, handleSWFAddressExt<span style="color: #66cc66;">&#41;</span>;<br />
SWFAddress.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>SWFAddressEvent.<span style="color: #006600;">INTERNAL_CHANGE</span>, handleSWFAddressInt<span style="color: #66cc66;">&#41;</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">/*<br />
* This function runs on external change - URL, Link, Back/Forward Button<br />
**/</span><br />
<span style="color: #000000; font-weight: bold;">function</span> handleSWFAddressExt<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:SWFAddressEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> path:<span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">path</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> arr:<span style="color: #0066CC;">Array</span> = path.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> galName:<span style="color: #0066CC;">String</span> = arr<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> imgId:<span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">parseInt</span><span style="color: #66cc66;">&#40;</span>arr<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// If the gallery name is empty set to the default gallery.</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>galName == <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">||</span> galName == <span style="color: #ff0000;">&quot;unknown&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>galName = defaulGallery;<span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// If the image number is not a number set it to the first image.</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">isNaN</span><span style="color: #66cc66;">&#40;</span>imgId<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>imgId =<span style="color: #cc66cc;">0</span>;<span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; imageIndex = imgId - <span style="color: #cc66cc;">1</span>; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// If the galName is the currentGalName load the new image.</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>galName == currentGalName<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; svAPI.<span style="color: #006600;">showImage</span><span style="color: #66cc66;">&#40;</span>imgId<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span><span style="color: #808080; font-style: italic;">// If the galName is not the currentGalName load the new gallery.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; loadGallery<span style="color: #66cc66;">&#40;</span>galName, imgId<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//Adds just the gallery name to the browser title bar. The title is taken from the gallery XML title.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; SWFAddress.<span style="color: #006600;">setTitle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Simpleviewer With SWFAdress &nbsp;: '</span> + galName<span style="color: #66cc66;">&#41;</span>; <br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> &nbsp; <br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/**<br />
* This function runs on internal change - clicking a thumbnail, autoplay<br />
**/</span><br />
<span style="color: #000000; font-weight: bold;">function</span> handleSWFAddressInt<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:SWFAddressEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> path:<span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">path</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> arr:<span style="color: #0066CC;">Array</span> = path.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> imgId:<span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">parseInt</span><span style="color: #66cc66;">&#40;</span>arr<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; imageIndex = imgId - <span style="color: #cc66cc;">1</span>; <br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/**<br />
* This function loads the SimpleViewer SWF<br />
*/</span><br />
<span style="color: #000000; font-weight: bold;">function</span> loadGallery<span style="color: #66cc66;">&#40;</span>galName:<span style="color: #0066CC;">String</span>, imgId:<span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
<br />
&nbsp; &nbsp; currentGalName = galName;<br />
&nbsp; &nbsp; galleryURL = galName + <span style="color: #ff0000;">&quot;.xml&quot;</span>; <span style="color: #808080; font-style: italic;">//url;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//unload previous simpleviewer instance</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>svAPI <span style="color: #66cc66;">!</span>= <span style="color: #000000; font-weight: bold;">null</span> <span style="color: #66cc66;">&#41;</span> svAPI.<span style="color: #006600;">dispose</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; svAPI = <span style="color: #000000; font-weight: bold;">null</span>;<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//flash 9 - unload</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>swfLoaded<span style="color: #66cc66;">&#41;</span> svLoader.<span style="color: #006600;">unload</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//Flash 10 - unloadAndStop </span><br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//if (_viewerLoaded) svLoader.unloadAndStop();</span><br />
<br />
&nbsp; &nbsp; SWFAddress.<span style="color: #006600;">setValue</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/'</span>+galName+<span style="color: #ff0000;">'/'</span>+ imgId +<span style="color: #ff0000;">'/'</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//load simpleviewer swf</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> urlReq:URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;simpleviewer.swf&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; svLoader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>urlReq<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; swfLoaded = <span style="color: #000000; font-weight: bold;">true</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> updateGalleryUrl<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> path = SWFAddress.<span style="color: #006600;">getValue</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> arr:<span style="color: #0066CC;">Array</span> = path.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> galName = arr<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//We are disregarding arr[2] because we are being </span><br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//passed the new image id, e.data, and don't need the current one.</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> imgId:<span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">data</span> + <span style="color: #cc66cc;">1</span> &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// SWFAddress.setValue updates the address bar and calls handleChange(event:SWFAddressEvent)</span><br />
&nbsp; &nbsp; SWFAddress.<span style="color: #006600;">setValue</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/'</span>+galName+<span style="color: #ff0000;">'/'</span>+imgId+<span style="color: #ff0000;">'/'</span><span style="color: #66cc66;">&#41;</span>; &nbsp;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/**<br />
* Fired when preloader is available<br />
* Can set flashvars at this point<br />
*/</span> <br />
<span style="color: #000000; font-weight: bold;">function</span> onViewerInit<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;onViewerInit&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//listen for</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</span>svLoader.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;svComplete&quot;</span>, onGalleryLoaded<span style="color: #66cc66;">&#41;</span>; <br />
&nbsp; &nbsp; <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;setViewerFlashVars&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> options:<span style="color: #0066CC;">Object</span> = <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</span>svLoader.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">embedOptions</span>;<br />
<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//set gallery.xml url based on current galleryId</span><br />
&nbsp; &nbsp; options.<span style="color: #006600;">galleryURL</span> = galleryURL; &nbsp; &nbsp;<br />
&nbsp; &nbsp; options.<span style="color: #006600;">firstImageIndex</span> = imageIndex;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">/**<br />
&nbsp;* Fired when gallery has completly loaded (SWF + &nbsp;XML)<br />
&nbsp;* API is now available.<br />
&nbsp;*/</span> <br />
<span style="color: #000000; font-weight: bold;">function</span> onGalleryLoaded<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; svAPI = <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</span>svLoader.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">api</span>;<br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">//Init Event Listeners</span><br />
&nbsp; &nbsp; svAPI.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;svImageChange&quot;</span>,updateGalleryUrl<span style="color: #66cc66;">&#41;</span>; &nbsp; <br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #808080; font-style: italic;">//Init Button Click Handlers</span><br />
mcButton1.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>,loadGallery1<span style="color: #66cc66;">&#41;</span>;<br />
mcButton2.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>,loadGallery2<span style="color: #66cc66;">&#41;</span>;<br />
<br />
<span style="color: #808080; font-style: italic;">//Button Click Handlers</span><br />
<span style="color: #000000; font-weight: bold;">function</span> loadGallery1<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; loadGallery<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;gallery_1&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> loadGallery2<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; loadGallery<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;gallery_2&quot;</span>,<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></td></tr></tbody></table></div>
<p>Save (Crtl + S) simpleviewer_swfaddress.fla.</p>
<p>Export (Crtl + Alt + Shift + S) simpleviewer_swfaddress.fla as simpleviewer_swfaddress.swf into your <strong>gallery</strong> folder.</p>
<p><strong>To test you must upload the files to your server.</strong></p>
<p>Make sure to upload all of the following files and folders:</p>
<ul>
<li>images folder</li>
<li>thumbs folder</li>
<li>gallery_1.xml</li>
<li>gallery_2.xml</li>
<li>index.html</li>
<li>simpleviewer_swfaddress.swf </li>
<li>simpleviewer.swf</li>
<li>swfaddress.js</li>
</ul>
<p>The browser history is updated every time you click a thumbnail, thus enabling the browser back button. You can now link to any image via a nice URL and as you click on thumbnails you can watch the address bar change. You can also directly link to an image.</p>
<p>To use the following example you will need to add your SimpleViewer Pro swf to the folder and upload it to a server. <a href='http://www.mikerichardsphotography.com/blog/wp-content/uploads/2010/01/SV2swfaddress.zip' class="download">SV2swfaddress.zip</a></p>
<blockquote style="font-size:10px;" ><p>The MIT License</p>
<p>Copyright (c) 2010 Michael Richards &#8211; mikerichardsphotography.com</p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy<br />
of this software and associated documentation files (the &#8220;Software&#8221;), to deal<br />
in the Software without restriction, including without limitation the rights<br />
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br />
copies of the Software, and to permit persons to whom the Software is<br />
furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in<br />
all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED &#8220;AS IS&#8221;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br />
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br />
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br />
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br />
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br />
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<br />
THE SOFTWARE.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.mikerichardsphotography.com/blog/2010/01/28/how-to-simpleviewer-2-and-swfaddress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

