<?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>seventy6 &#187; code</title>
	<atom:link href="http://www.seventy6.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seventy6.com</link>
	<description>code, design and things</description>
	<lastBuildDate>Fri, 06 Aug 2010 21:05:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SQL for migrating a WordPress DB between domains</title>
		<link>http://www.seventy6.com/2010/05/05/sql-for-migrating-a-wordpress-db-between-domains/</link>
		<comments>http://www.seventy6.com/2010/05/05/sql-for-migrating-a-wordpress-db-between-domains/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:59:42 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/?p=216</guid>
		<description><![CDATA[When working locally on a wordpress site there&#8217;s 2 references to the local server address stored in wordpress&#8217; &#8216;wp_options&#8217; table. These handy bits of sql will update the DB when you have imported to the live server: /* update wordpress sql */ UPDATE `wp_options` SET `option_id`='1', `blog_id`='0', `option_name`='siteurl', `option_value`='[NEW DOMAIN NAME HERE]', `autoload`='yes' WHERE `option_id` [...]]]></description>
			<content:encoded><![CDATA[<p>When working locally on a wordpress site there&#8217;s 2 references to the local server address stored in wordpress&#8217; &#8216;wp_options&#8217; table. These handy bits of sql will update the DB when you have imported to the live server:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* update wordpress sql */</span>
<span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`wp_options`</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #ff0000;">`option_id`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">`blog_id`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">`option_name`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'siteurl'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">`option_value`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'[NEW DOMAIN NAME HERE]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">`autoload`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'yes'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`option_id`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #ff0000;">`blog_id`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span> <span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #ff0000;">`option_name`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'siteurl'</span>;
&nbsp;
<span style="color: #993333; font-weight: bold;">UPDATE</span> <span style="color: #ff0000;">`wp_options`</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #ff0000;">`option_id`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'39'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">`blog_id`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'0'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">`option_name`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'home'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">`option_value`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'[NEW DOMAIN NAME HERE]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">`autoload`</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'yes'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> <span style="color: #ff0000;">`option_id`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'39'</span> <span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #ff0000;">`blog_id`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'0'</span> <span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #ff0000;">`option_name`</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'home'</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2010/05/05/sql-for-migrating-a-wordpress-db-between-domains/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A standard Drupal install</title>
		<link>http://www.seventy6.com/2009/12/04/a-standard-drupal-install/</link>
		<comments>http://www.seventy6.com/2009/12/04/a-standard-drupal-install/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 16:25:27 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/?p=160</guid>
		<description><![CDATA[Here is a list of the modules we generally end up installing for a standard Drupal 6 based site. If you have further recommendations please add as comments! Note some modules will be bound into the core and not required as external modules. In no particular order: Drupal 6 &#8211; http://drupal.org/node/579476 Admin Role &#8211; http://drupal.org/project/adminrole [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a list of the modules we generally end up installing for a standard Drupal 6 based site. If you have further recommendations please add as comments! Note some modules will be bound into the core and not required as external modules.</p>
<p>In no particular order:</p>
<ul>
<li>Drupal 6 &#8211; <a href="http://drupal.org/node/579476">http://drupal.org/node/579476</a></li>
<li>Admin Role &#8211; <a href="http://drupal.org/project/adminrole">http://drupal.org/project/adminrole</a></li>
<li>Save &amp; Edit &#8211; <a title="http://drupal.org/project/save_edit" href="http://">http://drupal.org/project/save_edit</a></li>
<li>Admin menu &#8211; <a href="http://drupal.org/project/admin_menu">http://drupal.org/project/admin_menu</a></li>
<li>ZEN Theme &#8211; <a href="http://drupal.org/project/zen">http://drupal.org/project/zen</a></li>
<li>CCK &#8211; <a href="http://drupal.org/project/cck">http://drupal.org/project/cck</a></li>
<li>CCK fileField &#8211; <a href="http://drupal.org/project/filefield">http://drupal.org/project/filefield</a></li>
<li>CCK insert &#8211; <a href="http://drupal.org/project/insert">http://drupal.org/project/insert</a></li>
<li>ImageCache &#8211; <a href="http://drupal.org/project/imagecache">http://drupal.org/project/imagecache</a></li>
<li>WYSIWYG &#8211; <a href="http://drupal.org/project/wysiwyg">http://drupal.org/project/wysiwyg</a></li>
<li>Views &#8211; <a href="http://drupal.org/project/views">http://drupal.org/project/views</a></li>
<li>XML sitemap &#8211; <a title="http://drupal.org/project/xmlsitemap" href="http://">http://drupal.org/project/xmlsitemap</a></li>
<li>Menu Block &#8211; <a href="http://drupal.org/project/menu_block">http://drupal.org/project/menu_block</a></li>
<li>Sitemap &#8211; <a href="http://drupal.org/project/site_map">http://drupal.org/project/site_map</a></li>
<li>Webform &#8211; <a href="http://drupal.org/project/webform">http://drupal.org/project/webform</a></li>
<li>Backup and migrate &#8211; <a href="http://drupal.org/project/backup_migrate">http://drupal.org/project/backup_migrate</a></li>
<li>Legal &#8211; <a href="http://drupal.org/project/legal">http://drupal.org/project/legal</a></li>
<li>Pathauto &#8211; <a href="http://drupal.org/project/pathauto">http://drupal.org/project/pathauto</a></li>
<li>Node clone &#8211; <a href="http://drupal.org/project/node_clone">http://drupal.org/project/node_clone</a></li>
<li>ImageApi &#8211; <a href="http://drupal.org/project/imageapi">http://drupal.org/project/imageapi</a></li>
<li>ImageField &#8211; <a href="http://drupal.org/project/imagefield">http://drupal.org/project/imagefield</a></li>
<li>Menu Attributes &#8211; <a href="http://drupal.org/project/menu_attributes">http://drupal.org/project/menu_attributes</a></li>
<li>Token (needed for pathauto) &#8211; <a href="http://drupal.org/project/token">http://drupal.org/project/token</a></li>
<li>Checkbox Validate (required by Legal) -  <a href="http://drupal.org/project/checkbox_validate">http://drupal.org/project/checkbox_validate</a></li>
<li>Suggested Terms (Helper for taxonomy) &#8211; <a href="http://drupal.org/project/suggestedterms">http://drupal.org/project/suggestedterms</a></li>
<li>Sitemap &#8211; <a href="http://drupal.org/project/site_map">http://drupal.org/project/site_map</a></li>
<li>jQuery plugins &#8211; <a href="http://drupal.org/project/jquery_plugin">http://drupal.org/project/jquery_plugin</a></li>
<li>Google Analytics &#8211; <a href="http://drupal.org/project/google_analytics">http://drupal.org/project/google_analytics</a></li>
</ul>
<p>Extras</p>
<ul>
<li>Node Hierarchy &#8211; <a title="http://drupal.org/project/nodehierarchy" href="http://">http://drupal.org/project/nodehierarchy</a></li>
</ul>
<p>Also add to the bottom of the .htaccess file in the root this line to allocate some more memory (where your web hosting company will allow):</p>
<blockquote><p>php_value memory_limit 64M</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2009/12/04/a-standard-drupal-install/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Re: Flash CS3 / Flex 2 AS3 Error #1046</title>
		<link>http://www.seventy6.com/2009/11/02/re-flash-cs3-flex-2-as3-error-1046/</link>
		<comments>http://www.seventy6.com/2009/11/02/re-flash-cs3-flex-2-as3-error-1046/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 16:53:06 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[as3]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/?p=150</guid>
		<description><![CDATA[handy little explanation of the old #1046 problem: http://curtismorley.com/2007/06/20/flash-cs3-flex-2-as3-error-1046/]]></description>
			<content:encoded><![CDATA[<p>handy little explanation of the old #1046 problem:</p>
<p><a title="1046 peple" href="http://curtismorley.com/2007/06/20/flash-cs3-flex-2-as3-error-1046/">http://curtismorley.com/2007/06/20/flash-cs3-flex-2-as3-error-1046/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2009/11/02/re-flash-cs3-flex-2-as3-error-1046/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009 portfolio</title>
		<link>http://www.seventy6.com/2009/10/21/2009-portfolio/</link>
		<comments>http://www.seventy6.com/2009/10/21/2009-portfolio/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 21:14:33 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/?p=137</guid>
		<description><![CDATA[This took far too long and not comprehensive by any stretch of the imagination. But its a start ok?! The work posted is a snapshot of the bigger Flash based projects I have been involved in over the last year. There&#8217;s a lot of front end development (html/css/js) projects to go up at some point [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.seventy6.com/portfolio-2009/"><img class="alignright size-thumbnail wp-image-141" title="2009 portfolio" src="http://www.seventy6.com/wp-content/uploads/2009/10/Picture-1-150x150.png" alt="2009 portfolio" width="150" height="150" /></a>This took far too long and not comprehensive by any stretch of the imagination. But its a start ok?!</p>
<p>The work posted is a snapshot of the bigger Flash based projects I have been involved in over the last year.<br />
There&#8217;s a lot of front end development (html/css/js) projects to go up at some point soon.</p>
<p><a title="seventy6 portfolio" href="/portfolio-2009/">Check it out now</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2009/10/21/2009-portfolio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Carlo Blatz &#8211; How Labs works</title>
		<link>http://www.seventy6.com/2009/10/18/carlo-blatz-how-labs-works/</link>
		<comments>http://www.seventy6.com/2009/10/18/carlo-blatz-how-labs-works/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 15:01:13 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/?p=125</guid>
		<description><![CDATA[Interesting presentation by Carlo Blatz about agile project management and development of their labs website. These guys are seriously talented http://www.powerflasher.de/ Link:]]></description>
			<content:encoded><![CDATA[<p>Interesting presentation by Carlo Blatz about agile project management and development of their labs website. These guys are seriously talented <a href="http://www.powerflasher.de/" title="Power Flasher">http://www.powerflasher.de/</a></p>
<p><script type="text/javascript" src="http://de.sevenload.com/pl/C4oBnzc/500x314"></script>
<p>Link: <a href="http://de.sevenload.com/videos/C4oBnzc-Carlo-Blatz-How-Labs-works"><img src="http://static.sevenload.com/img/sevenload.png" width="66" height="10" alt="Carlo Blatz - How Labs works" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2009/10/18/carlo-blatz-how-labs-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flip Flop the Flash on the Beach 09</title>
		<link>http://www.seventy6.com/2009/09/28/flip-flop-the-flash-on-the-beach-09/</link>
		<comments>http://www.seventy6.com/2009/09/28/flip-flop-the-flash-on-the-beach-09/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 11:58:36 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[flashonthebeach09]]></category>
		<category><![CDATA[fotb09]]></category>
		<category><![CDATA[FOTBTWENTYTEN]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/2009/09/28/flip-flop-the-flash-on-the-beach-09/</guid>
		<description><![CDATA[Originally uploaded by seventy6.com John Davey, organiser of the brilliant Flash on the Beach, asked everybody to purchase a pair of the rather cool flip-flops and take an interesting picture with them. The winner gets a free ticket to next year! Well after 2 days of walking the Brighton streets &#8211; my poor feet ached [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px; margin-bottom: 10px;"><a title="photo sharing" href="http://www.flickr.com/photos/seventy6/3961678197/"> <img class="alignright" style="border: 2px solid #000000;" src="http://farm3.static.flickr.com/2432/3961678197_e2ff73ba1c_m.jpg" alt="" width="162" height="216" /> </a><br />
Originally uploaded by <a href="http://www.flickr.com/people/seventy6/">seventy6.com</a></div>
<p>John Davey, organiser of the brilliant <a title="Flash on the Beach" href="http://www.flashonthebeach.com/">Flash on the Beach</a>, asked everybody to purchase a pair of the rather cool flip-flops and take an interesting picture with them. The winner gets a free ticket to next year! Well after 2 days of walking the Brighton streets &#8211; my poor feet ached real bad. I popped into a shoe shop to get some in-soul comfort, where I clocked the row of trendy flip flops. Seemed to good an opportunity not to ask the friendly shop assis if I could place the <a title="Follow FOTB on twiiter" href="http://twitter.com/FOTB">#FOTB</a> flip-flop in place of a trendy Superdry number&#8230; Well it hit the spot because it was picked with a few others as a winner. Result! <a title="next years fotb" href="http://twitter.com/search#search?q=FOTBTWENTYTEN">#FOTBTWENTYTEN</a> here I come.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2009/09/28/flip-flop-the-flash-on-the-beach-09/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 abbr css bug</title>
		<link>http://www.seventy6.com/2009/07/29/ie6-abbr-css-bug/</link>
		<comments>http://www.seventy6.com/2009/07/29/ie6-abbr-css-bug/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 15:50:36 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/?p=56</guid>
		<description><![CDATA[On a current Sandbox project, we&#8217;ve committed to delivering an IE6 friendly version. WHY?!!!! Anyhows, after some head banging with an AWOL &#60;abbr&#62; tag not even being noticed by IE6 &#8211; some digging shows that its never been supported! Good news is ie7+ now take notice. This handy little JS DOM hack takes the offending [...]]]></description>
			<content:encoded><![CDATA[<p>On a current Sandbox project, we&#8217;ve committed to delivering an IE6 friendly version. WHY?!!!!</p>
<p>Anyhows, after some head banging with an AWOL &lt;abbr&gt; tag not even being noticed by IE6 &#8211; some digging shows that its never been supported! Good news is ie7+ now take notice.</p>
<p>This handy little JS DOM hack takes the offending tag and adds a span for IE6 to work with.</p>
<p><a title="IE6 abbr css bug hack" href="http://www.sovavsiti.cz/css/abbr.html">http://www.sovavsiti.cz/css/abbr.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2009/07/29/ie6-abbr-css-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AS3 combobox bug</title>
		<link>http://www.seventy6.com/2009/03/26/as3-combobox-bug/</link>
		<comments>http://www.seventy6.com/2009/03/26/as3-combobox-bug/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 09:45:37 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[CS4]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/?p=53</guid>
		<description><![CDATA[Every so often in the CS4 Flash file I&#8217;m working on, the standard flash combobox component seems to corrupt once compiled. You get undefined errors in the output window when clicking on the dropdown which point to some of the imported event listener classes are missing. The only solution so far is to drop a [...]]]></description>
			<content:encoded><![CDATA[<p>Every so often in the CS4 Flash file I&#8217;m working on, the standard flash combobox component seems to corrupt once compiled. You get undefined errors in the output window when clicking on the dropdown which point to some of the imported event listener classes are missing.</p>
<p>The only solution so far is to drop a new copy of the component into the library and replace the current version. Has anybody else seen this before?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2009/03/26/as3-combobox-bug/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Drupal, 1&amp;1 hosting and some 500 errors to order</title>
		<link>http://www.seventy6.com/2009/03/12/drupal-11-hosting-and-some-500-errors-to-order/</link>
		<comments>http://www.seventy6.com/2009/03/12/drupal-11-hosting-and-some-500-errors-to-order/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 17:12:55 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[mamp]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/?p=51</guid>
		<description><![CDATA[Migrating from a MAMP localhost to 1&#38;1 shared server space for a Drupal site, started causing intermittent 500 error pages. But no real feedback from Drupal. After some digging it turns out that 1&#38;1 default to PHP 4.4.9 even through they have 5.2.8 installed!!??!! So adding an .htaccess file (even though they don&#8217;t allow them) [...]]]></description>
			<content:encoded><![CDATA[<p>Migrating from a <a title="MAMP" href="http://www.mamp.info/en/index.html">MAMP</a> localhost to 1&amp;1 shared server space for a <a title="Drupal" href="http://drupal.org/node/232773">Drupal</a> site, started causing intermittent 500 error pages. But no real feedback from Drupal.</p>
<p>After some <a title="digging" href="http://drupal.org/node/232773">digging</a> it turns out that 1&amp;1 default to PHP 4.4.9 even through they have 5.2.8 installed!!??!!</p>
<p>So adding an .htaccess file (even though they don&#8217;t allow them) with the following line of code upgrades you nicely:</p>
<p><code>AddType x-mapp-php5 .php</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2009/03/12/drupal-11-hosting-and-some-500-errors-to-order/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Controlling flippingbook api within loaded swf pages</title>
		<link>http://www.seventy6.com/2008/12/02/controlling-flippingbook-api-within-loaded-swf-pages/</link>
		<comments>http://www.seventy6.com/2008/12/02/controlling-flippingbook-api-within-loaded-swf-pages/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 18:03:58 +0000</pubDate>
		<dc:creator>nick</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flippingbook]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://www.seventy6.com/?p=26</guid>
		<description><![CDATA[FlippingBook HTML Edition is a set of JavaScript and SWF files running on your HTML page. When a page is loaded, the code contained in these files automatically builds in the flash album having such options as: zooming, printing, saving, contents, navigation. All good until your client wants to add any extra features! For the [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><a title="Flipping books" href="http://page-flip.com/flippingbook-html-edition.htm">FlippingBook</a> HTML Edition is a set of JavaScript and SWF files running on your HTML page. When a page is loaded, the code contained in these files automatically builds in the flash album having such options as: zooming, printing, saving, contents, navigation.</p></blockquote>
<p>All good until your client wants to add any extra features! For the record, Flippingbook&#8217;s support and documentation is crap. One simple requirement is having buttons on the internal pages that link to other pages within the book.<span id="more-26"></span></p>
<p>When you add the simple bit of actionscript below to any swf pages published you can start talking back to the JavaScript Object and methods. No Examples included but can be if requested&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.external</span>.<span style="color: #000000; font-weight: bold;">*</span>;
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> goToPage<span style="color: #000000;">&#40;</span>_num<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span>Void
<span style="color: #000000;">&#123;</span>
<span style="color: #004993;">ExternalInterface</span>.<span style="color: #004993;">call</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;flippingBook.flipGotoPage&quot;</span>, _num<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
<span style="color: #339966; font-weight: bold;">function</span> goToFirstPage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span>Void
<span style="color: #000000;">&#123;</span>
<span style="color: #004993;">ExternalInterface</span>.<span style="color: #004993;">call</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;flippingBook.flipGotoFirstPage&quot;</span>, <span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
<span style="color: #009900;">//</span>
<span style="color: #0033ff; font-weight: bold;">this</span>.btn_goToPage.onRelease = <span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
goToPage<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">4</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
<span style="color: #0033ff; font-weight: bold;">this</span>.btn_goToFirstPage.onRelease = <span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
goToFirstPage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.seventy6.com/2008/12/02/controlling-flippingbook-api-within-loaded-swf-pages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
