<?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>Turtlebite&#039;s Blog &#187; php</title>
	<atom:link href="http://blog.turtlebite.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.turtlebite.com</link>
	<description>Flash CMS Framework, Fleb Framework, Global Navigation and other ActionScript Stuff</description>
	<lastBuildDate>Thu, 17 Nov 2011 06:01:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Introducing the Fleb Framework!</title>
		<link>http://blog.turtlebite.com/introducing-the-fleb-framework/</link>
		<comments>http://blog.turtlebite.com/introducing-the-fleb-framework/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 12:53:05 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Fleb Framework]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash framework]]></category>
		<category><![CDATA[Flash SEO]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[swfaddress]]></category>

		<guid isPermaLink="false">http://blog.flashcmsframework.com/?p=543</guid>
		<description><![CDATA[Hi everyone! I have created my own framework to build pure flash websites, or short: flebsites . Let me introduce the Fleb Framework. But why another framework when there is the wonderful Gaia Framework around? Let me explain: I really like the Gaia Framework, I have used it for my last websites. As I wrote [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-549" title="fleb-overview_small" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/08/fleb-overview_small.jpg" alt="fleb-overview_small" width="200" height="125" />Hi everyone! I have created my own framework to build pure flash websites, or short: flebsites <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . Let me introduce the Fleb Framework. But why another framework when there is the wonderful Gaia Framework around? Let me explain: I really like the Gaia Framework, I have used it for my last websites. As I wrote in my very first post in the Gaia forum, I had my own framework coded in AS2 and I was thinking of porting it to AS3. The point was that this AS2 framework was kind of a mess,  so porting it to AS3 would have been like coding it from scratch. Then I discovered Gaia and all of a sudden I could jump into an AS3 framework and did not have to code my own. But there were two things I missed in Gaia: a global navigation and a more advanced SEO technique. As time went by I solved both problems: creating a <a href="http://www.flashcmsframework.com/docs/doku.php?id=global-navigation2-examples">global navigation system</a> and a <a href="http://blog.flashcmsframework.com/swfaddress-seo-solution-for-gaia-flash-framework/">SEO solution for Gaia</a>. But there was still something else I had to do same hacking<span id="more-543"></span>: multi language support. The fact that I have never really used the Gaia panel, which is one of the core features, was yet another reason. Whenever I start with a new website, I like to reuse code from the previous one, that is why I didn&#8217;t use the Gaia panel which always scaffolds a new and empty setup I have to edit. Please don&#8217;t get me wrong: Gaia is a wonderful framework which is available for AS3 and AS2 (Fleb Framework is AS3 only),  I still highly recommend it for everyone (for example, there is no context menu &#8220;out of the box&#8221; in Fleb), but it simply did not match my way of working anymore. (And I just could never get used to the &#8220;/#/home&#8221; in the address bar&#8230;)</p>
<p><strong>What is the Fleb Framework?</strong></p>
<p>A front end flash framework. It focusses heavily on SEO, based on the <a href="http://www.asual.com/swfaddress/samples/seo/">example found at asual.com</a>. Because SEO was (and still is) always a discussion point wether to create a website in flash or html. I always try to do everything in flash, so I had to find a way to wipe out the arguments against flash. <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Check out the movie below to get an idea and play with the <a href="http://www.flashcmsframework.com/flebsitedemo">demosite online</a>.</p>
<p><span class="youtube">
<object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/WQRa8G_7gqI&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0?rel=1&amp;fmt=22" />
<param name="allowFullScreen" value="true" />
<embed wmode="transparent" src="http://www.youtube.com/v/WQRa8G_7gqI&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0?rel=1&amp;fmt=22" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355"></embed>
<param name="wmode" value="transparent" />
</object>
</span><p><a href="http://www.youtube.com/watch?v=WQRa8G_7gqI">www.youtube.com/watch?v=WQRa8G_7gqI</a></p></p>
<p><strong>Overview of the Fleb Framework</strong></p>
<p>In order to use the framework you need to enable mod_rewrite in .htaccess file. It uses PHP and XML. Just read on for more details.</p>
<div id="attachment_547" class="wp-caption alignnone" style="width: 605px"><img class="size-full wp-image-547" title="fleb-overview" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/08/fleb-overview.jpg" alt="Fleb Framework Overview" width="595" height="371" /><p class="wp-caption-text">Fleb Framework Overview</p></div>
<p><strong> 1. index.php</strong></p>
<p>The index.php embeds base.swf. It uses SWFObject to detect the flash plugin and SWFAddress for URL rewriting (by using mod_rewrite in .htaccess). Every request is rerouted to index.php.</p>
<p><strong>2. base.swf</strong></p>
<p>This is the base of your website. Its whole purpose is to load the main website (main.swf, see 3). It contains only the neccessary setup and a preloader. This SWF should be kept as small as possible in order to display the preloader very soon.</p>
<p><strong>3. main.swf</strong></p>
<p>This is where the &#8220;brain&#8221; of the website resides. In main.swf the global navigation is initialized, the content (pages) is handled (preloading, fading in/out, crossfading, unloading etc.) and event handlers are added (SWFAddress, navigation, language etc.). All is open for you to finetune, extend and so on.</p>
<p><strong>4. [content].swf</strong></p>
<p>Your actual content. I&#8217;ve put the name in square brackets because it could be any name, like &#8220;about_us.swf&#8221; or &#8220;products.swf&#8221;. It&#8217;s completely up to you how you create these content SWFs.</p>
<p><strong>5. structure.xml</strong></p>
<p>This is the &#8220;plan&#8221; of your website: It contains the title, description, keywords of your website as well as the navigation structure and the source XML files with the content. Here is an example:</p>
<pre class="brush: xml;">
&lt;structure&gt;
&lt;site&gt;
&lt;title&gt;Flebsite Demo&lt;/title&gt;
&lt;description&gt;This website is a pure flash website, or short: a flebsite!{Dies ist eine reine flash website, oder einfacher: eine flebsite &lt;/description&gt;
&lt;keywords&gt;flash,website framework,cms&lt;/keywords&gt;
&lt;/site&gt;
&lt;navigation&gt;
&lt;button id=&quot;home&quot; btnSWF=&quot;mainBtn.swf&quot; btnPosX=&quot;0&quot; btnPosY=&quot;0&quot; btnSpacingX=&quot;5&quot; btnAddLabelSpace=&quot;10&quot; btnLabel=&quot;Home{Startseite&quot; btnStayActive=&quot;false&quot;&gt;
&lt;data swf=&quot;&quot; source=&quot;home&quot; seosource=&quot;_page.php&quot; title=&quot;Welcome to %site%{Willkommen! - %site%&quot; address=&quot;/en/{/de/&quot; keywords=&quot;%site%&quot; description=&quot;%site%&quot;/&gt;
&lt;yournode test=&quot;any data&quot;/&gt;
&lt;/button&gt;
&lt;button id=&quot;about_us&quot; btnSWF=&quot;mainBtn.swf&quot; btnAddLabelSpace=&quot;10&quot; btnLabel=&quot;About us{Über uns&quot;&gt;
&lt;data swf=&quot;_page.swf&quot; source=&quot;_about_us.xml{_ueber_uns.xml&quot; seosource=&quot;_page.php&quot; title=&quot;About us - %site%{Über uns - %site%&quot; address=&quot;/en/about-us/{/de/ueber-uns/&quot; keywords=&quot;about us,%site%{über uns,%site%&quot; description=&quot;about us - %site%{über uns - %site%&quot;/&gt;
&lt;yournode test=&quot;hello world 1&quot;&gt;This is text of yournode 1&lt;/yournode&gt;
&lt;yournode test=&quot;hello world 2&quot;&gt;This is text of yournode 2&lt;/yournode&gt;
&lt;/button&gt;
&lt;/navigation&gt;
&lt;/structure&gt;
</pre>
<p><strong>6. [contentData].xml</strong></p>
<p>Holds the data of your content pages. This XML file is loaded in the SWF and also in PHP for SEO. I prefer to use XML whenever possible instead of JSON/PHP to store content because XML can be loaded directly into an SWF while testing in the Flash IDE. Here is an example:</p>
<pre class="brush: xml;">

&lt;page&gt;
&lt;title&gt;About us&lt;/title&gt;
&lt;body bgColor=&quot;699306&quot;&gt;&lt;![CDATA[ABOUT US: But I must explain to you how all this mistaken.......]]&gt;&lt;/body&gt;
&lt;pic url=&quot;images/b6nature_animals_sea000.jpg&quot;&gt;This is a nice description of the image for SEO!&lt;/pic&gt;
&lt;/page&gt;
</pre>
<p><span style="text-decoration: line-through;"><strong>7. seonavig.php</strong></span></p>
<p><span style="text-decoration: line-through;">This file is included in index.php. It parses structure.xml and creates the navigation for SEO. With correct indentation etc.</span></p>
<p><span style="text-decoration: line-through;"><strong>8. datasource.php</strong></span></p>
<p><span style="text-decoration: line-through;">datasource.php is also included in index.php. It parses structure.xml and stores the navigation data in an object. It than compares the SWFAddress value to the parsed address values of structure.xml and loads the corresponding content source file (page.php, see next point) for SEO.</span></p>
<p><strong>Update 08/06/2009</strong>: <a href="http://blog.flashcmsframework.com/fleb-framework-1-0-released/">Please have a look at this post</a>. I have merged &#8220;seonavig.php&#8221; and &#8220;datasource.php&#8221; into &#8220;structure.php&#8221; to make it all clearer.<br />
<span style="text-decoration: line-through;"><br />
</span></p>
<p><strong>9. [page].php</strong></p>
<p>As in point 6 I have used square brackets because these PHP files can have any name. Usually there is always a pair of a PHP and an XML file. I use this to parse the content XML file for SEO. page.php is only used to load data for SEO, either by parsing the XML file, by a MySQL query or JSON etc.</p>
<p><strong>Conclusion</strong></p>
<p>The Fleb Framework will be available open source very soon. As with my other code, I will create a documentation for this. The FLAs are already well commented, so there will be a lot of information in the code.</p>
<p>Stay tuned!</p>
<p>Christian</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://blog.turtlebite.com/introducing-the-fleb-framework/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.turtlebite.com/introducing-the-fleb-framework/&amp;title=Introducing+the+Fleb+Framework%21" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.turtlebite.com/introducing-the-fleb-framework/&amp;title=Introducing+the+Fleb+Framework%21" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.diigo.com/post?url=http://blog.turtlebite.com/introducing-the-fleb-framework/&amp;title=Introducing+the+Fleb+Framework%21&amp;desc=Hi%20everyone%21%20I%20have%20created%20my%20own%20framework%20to%20build%20pure%20flash%20websites%2C%20or%20short%3A%20flebsites%20%3A-%29.%20Let%20me%20introduce%20the%20Fleb%20Framework.%20But%20why%20another%20framework%20when%20there%20is%20the%20wonderful%20Gaia%20Framework%20around%3F%20Let%20me%20explain%3A%20I%20really%20like%20the%20Gaia%20Framework%2C%20I%20have%20used%20it%20for%20my%20last%20websites." rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.turtlebite.com/introducing-the-fleb-framework/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.mister-wong.com/addurl/?bm_url=http://blog.turtlebite.com/introducing-the-fleb-framework/&amp;bm_description=Introducing+the+Fleb+Framework%21&amp;plugin=sexybookmarks" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://blog.turtlebite.com/introducing-the-fleb-framework/&amp;title=Introducing+the+Fleb+Framework%21" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.turtlebite.com/introducing-the-fleb-framework/&amp;title=Introducing+the+Fleb+Framework%21" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://blog.turtlebite.com/introducing-the-fleb-framework/&amp;title=Introducing+the+Fleb+Framework%21" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://blog.turtlebite.com/introducing-the-fleb-framework/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Introducing+the+Fleb+Framework%21+-+http://b2l.me/aft79h&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.turtlebite.com/introducing-the-fleb-framework/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
	</channel>
</rss>

