<?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; as3</title>
	<atom:link href="http://blog.turtlebite.com/tag/as3/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 Online XML Editor</title>
		<link>http://blog.turtlebite.com/introducing-the-online-xml-editor/</link>
		<comments>http://blog.turtlebite.com/introducing-the-online-xml-editor/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 09:42:24 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Online XML Editor]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[as3 cms]]></category>
		<category><![CDATA[online xml editor]]></category>

		<guid isPermaLink="false">http://blog.turtlebite.com/?p=1078</guid>
		<description><![CDATA[I have finished another tool: an online editor for xml files. With this editor you can easily import your xml files and edit them without having to worry about proper syntax. Try it and let me know what you think! When I started writing this editor, I wanted to create something to handle xml files [...]]]></description>
			<content:encoded><![CDATA[<p>I have finished another tool: an <a href="http://www.online-xml-editor.com">online editor for xml files</a>. With this editor you can easily import your xml files and edit them without having to worry about proper syntax. <a href="http://www.online-xml-editor.com">Try it</a> and let me know what you think!</p>
<p><a href="http://www.online-xml-editor.com"><img class="alignnone size-full wp-image-1079" title="online-xml-editor-introducing" src="http://blog.turtlebite.com/wp-content/uploads/2010/11/online-xml-editor-introducing.jpg" alt="" width="595" height="452" /></a></p>
<p>When I started writing this editor, I wanted to create something to handle xml files for the global navigation. It quickly turn into something much more complex, and even better, much more flexible. In a next post I will show how you can turn this editor into a specialised editor for <a href="http://www.gaiaflashframework.com/">Gaia</a> site xml files, for example. By creating so called configuration xml files you can use this xml editor for any of your xml files.</p>
<p><strong>Simple but flexible CMS<br />
</strong>I have also implemented a rich text editor. In the final version you will be able to install this editor on your server and turn it into a simple but flexible CMS with individual user management. Easy but effective. More later.</p>
<p>Stay tuned!<br />
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-online-xml-editor/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-online-xml-editor/&amp;title=Introducing+the+Online+XML+Editor" 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-online-xml-editor/&amp;title=Introducing+the+Online+XML+Editor" 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-online-xml-editor/&amp;title=Introducing+the+Online+XML+Editor&amp;desc=I%20have%20finished%20another%20tool%3A%20an%20online%20editor%20for%20xml%20files.%20With%20this%20editor%20you%20can%20easily%20import%20your%20xml%20files%20and%20edit%20them%20without%20having%20to%20worry%20about%20proper%20syntax.%20Try%20it%20and%20let%20me%20know%20what%20you%20think%21%0D%0A%0D%0A%0D%0A%0D%0AWhen%20I%20started%20writing%20this%20editor%2C%20I%20wanted%20to%20create%20something%20to%20handle%20xml%20" 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-online-xml-editor/&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-online-xml-editor/&amp;bm_description=Introducing+the+Online+XML+Editor&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-online-xml-editor/&amp;title=Introducing+the+Online+XML+Editor" 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-online-xml-editor/&amp;title=Introducing+the+Online+XML+Editor" 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-online-xml-editor/&amp;title=Introducing+the+Online+XML+Editor" 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-online-xml-editor/" 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+Online+XML+Editor+-+http://b2l.me/a4yqkw&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-online-xml-editor/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Flebsite launched: www.turtlebite.com</title>
		<link>http://blog.turtlebite.com/flebsite-launched-www-turtlebite-com/</link>
		<comments>http://blog.turtlebite.com/flebsite-launched-www-turtlebite-com/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 09:22:03 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Flash CMS]]></category>
		<category><![CDATA[Fleb Framework]]></category>
		<category><![CDATA[Global Navigation]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[online xml editor]]></category>

		<guid isPermaLink="false">http://blog.turtlebite.com/?p=1067</guid>
		<description><![CDATA[I finally have launched a website on which I can show that I actually use all the stuff that I write about in this blog. I have also integrated my upcoming online xml editor, which is almost complete. Well, it actually is, but as usual I have to setup the documentation etc. But you can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.turtlebite.com"><img class="alignnone size-full wp-image-1069" title="turtlebite-flebsite" src="http://blog.turtlebite.com/wp-content/uploads/2010/10/turtlebite-flebsite1.jpg" alt="" width="595" height="473" /></a></p>
<p>I finally have <a href="http://www.turtlebite.com">launched a website</a> on which I can show that I actually use all the stuff that I write about in this blog. I have also integrated my upcoming online xml editor, which is almost complete. Well, it actually is, but as usual I have to setup the documentation etc. But you can already have a look and try out the basic functions: <a href="http://www.online-xml-editor.com">www.online-xml-editor.com</a> (User: demo, Pw: demo). For the menubar of the XML editor I used the <a href="http://blog.turtlebite.com/category/global-navigation/">global navigation</a>. As you can see, it is also very suitable to create application-like menus! <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>BTW: All content of the turtlebite.com flebsite is managed by the Turtlebite Flash CMS. Have a look at this video:<br />
<span class="youtube">
<object width="425" height="355">
<param name="movie" value="http://www.youtube.com/v/KQrFRPzPNCw&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=1s&amp;eurl=http://blog.turtlebite.com/&amp;feature=player_embedded" />
<param name="allowFullScreen" value="true" />
<embed wmode="transparent" src="http://www.youtube.com/v/KQrFRPzPNCw&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=1s&amp;eurl=http://blog.turtlebite.com/&amp;feature=player_embedded" 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=KQrFRPzPNCw">www.youtube.com/watch?v=KQrFRPzPNCw</a></p></p>
<p><strong>Online XML Editor</strong><br />
I will write a special post for the XML editor itself soon!</p>
<p>Cheers,<br />
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/flebsite-launched-www-turtlebite-com/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/flebsite-launched-www-turtlebite-com/&amp;title=Flebsite+launched%3A+www.turtlebite.com" 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/flebsite-launched-www-turtlebite-com/&amp;title=Flebsite+launched%3A+www.turtlebite.com" 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/flebsite-launched-www-turtlebite-com/&amp;title=Flebsite+launched%3A+www.turtlebite.com&amp;desc=%0D%0A%0D%0AI%20finally%20have%20launched%20a%20website%20on%20which%20I%20can%20show%20that%20I%20actually%20use%20all%20the%20stuff%20that%20I%20write%20about%20in%20this%20blog.%20I%20have%20also%20integrated%20my%20upcoming%20online%20xml%20editor%2C%20which%20is%20almost%20complete.%20Well%2C%20it%20actually%20is%2C%20but%20as%20usual%20I%20have%20to%20setup%20the%20documentation%20etc.%20But%20you%20can%20already%20h" 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/flebsite-launched-www-turtlebite-com/&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/flebsite-launched-www-turtlebite-com/&amp;bm_description=Flebsite+launched%3A+www.turtlebite.com&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/flebsite-launched-www-turtlebite-com/&amp;title=Flebsite+launched%3A+www.turtlebite.com" 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/flebsite-launched-www-turtlebite-com/&amp;title=Flebsite+launched%3A+www.turtlebite.com" 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/flebsite-launched-www-turtlebite-com/&amp;title=Flebsite+launched%3A+www.turtlebite.com" 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/flebsite-launched-www-turtlebite-com/" 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=Flebsite+launched%3A+www.turtlebite.com+-+http://b2l.me/a27m83&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/flebsite-launched-www-turtlebite-com/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Runtime dynamic font loading in AS3</title>
		<link>http://blog.turtlebite.com/runtime-dynamic-font-loading-in-as3/</link>
		<comments>http://blog.turtlebite.com/runtime-dynamic-font-loading-in-as3/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 08:04:44 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Utilities & Tips]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[as3 runtime dynamic font loading]]></category>
		<category><![CDATA[embed fonts]]></category>
		<category><![CDATA[runtime fonts]]></category>

		<guid isPermaLink="false">http://blog.flashcmsframework.com/?p=1031</guid>
		<description><![CDATA[I know this has been a long discussed topic. And I&#8217;m not going to re-invent the wheel. I have been searching for a long time now and have found many ways to dynamically load fonts at runtime in AS3, there are a lot of good solutions out there. But yesterday I found a font manager [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.turtlebite.com/wp-content/uploads/2010/08/as3_flash_runtime_dynamic_font_loading.jpg"></a><a href="http://blog.turtlebite.com/wp-content/uploads/2010/08/as3_flash_runtime_dynamic_font_loading1.jpg"></a><a href="http://blog.turtlebite.com/wp-content/uploads/2010/08/as3_flash_runtime_dynamic_font_loading2.jpg"><img class="alignleft size-full wp-image-1047" title="as3_flash_runtime_dynamic_font_loading" src="http://blog.turtlebite.com/wp-content/uploads/2010/08/as3_flash_runtime_dynamic_font_loading2.jpg" alt="" width="180" height="130" /></a></p>
<p>I know this has been a long discussed topic. And I&#8217;m not going to re-invent the wheel. I have been searching for a long time now and have found many ways to dynamically load fonts at runtime in AS3, there are a lot of good solutions out there. But yesterday I found a font manager class and WOW, that&#8217;s a really smart method. So all I did was wrapping it in another class, to make the handling even easier. <a href="http://www.turtlebite.com/downloads/dynamicfontloader.zip">Here it is.</a></p>
<p><a href="http://www.thetechlabs.com/tutorials/flash/dynamically-loading-fonts-with-fontloader-and-applying-styles-with-css-stylesheet-in-as3/">You should start with this tutorial</a> for the basic font loader manager class by <a href="http://etcs.ru/">etcs.ru</a> (<a href="http://translate.google.com/translate?hl=de&amp;sl=ru&amp;tl=en&amp;u=http://etcs.ru/blog/as3/fontloader_2/">translated</a>). Excerpt: &#8220;What the fontloader does is reading the swf bytecode and extract all fonts from it and registers it to the flash font class.&#8221;</p>
<p>What I did is creating a wrapper class for this, that makes the handling even easier and traces the CSS output file to the output window in the Flash IDE, so you can just copy it and paste in into a new style.css file.</p>
<p>Here is the code to load the fonts and listen to the events:</p>
<pre class="brush: php;">
import net.kaegi.utils.FontManager;
import net.kaegi.events.FontManagerEvent;
var fontManager:FontManager = new FontManager();
fontManager.addEventListener(FontManagerEvent.LOAD_PROGRESS, onFontManagerLoadProgress, false, 0, true);
fontManager.addEventListener(FontManagerEvent.LOAD_COMPLETE, onFontManagerLoadComplete, false, 0, true);
fontManager.addEventListener(FontManagerEvent.LOAD_ERROR, onFontManagerLoadError, false, 0, true);
fontManager.init(&quot;resources/fonts.swf&quot;, &quot;resources/style.css&quot;)

function onFontManagerLoadProgress(event:FontManagerEvent) {
	trace(&quot;FontManager LOAD Progress... &quot;+event.params.type+&quot;: &quot;+event.params.perc+&quot;% (&quot;+event.params.bytesLoaded +&quot;/&quot;+event.params.bytesTotal+&quot;)&quot;);
}
function onFontManagerLoadComplete(event:FontManagerEvent) {
	trace(&quot;FontManager LOAD Complete!&quot;);
	trace(event.params.displayFonts);
	trace(event.params.cssFileOutput);
}
function onFontManagerLoadError(event:FontManagerEvent) {
	trace(&quot;FontManager LOAD Error!&quot;);
	trace(event.params.msg);
}
</pre>
<p>Here is the output of the css trace, ready to use: You can copy and paste it into a new style.css file, then edit it to your needs.</p>
<pre class="brush: css;">
.font1 {
	font-family: &quot;Verdana&quot;;
	font-size: 12;
	color: #000000;
	/*font-weight: normal;*/
	/*font-style: normal;*/
	/*display: inline; /*inline, block, none
	/*leading: 0;
	/*letter-spacing: 0;
	/*margin-left: 0;
	/*margin-right: 0;*/
	/*text-align: left; /*left, center, right, justify*/
	/*text-decoration: none; /*none, underline*/
	/*text-indent: 0;*/
}

.font2 {
	font-family: &quot;Arial Unicode MS&quot;;
	font-size: 12;
	color: #000000;
	font-weight: bold;
	/*font-style: normal;*/
	/*display: inline; /*inline, block, none
	/*leading: 0;
	/*letter-spacing: 0;
	/*margin-left: 0;
	/*margin-right: 0;*/
	/*text-align: left; /*left, center, right, justify*/
	/*text-decoration: none; /*none, underline*/
	/*text-indent: 0;*/
}

.font3 {
	font-family: &quot;Helvetica CY BoldOblique&quot;;
	font-size: 12;
	color: #000000;
	font-weight: bold;
	font-style: italic;
	/*display: inline; /*inline, block, none
	/*leading: 0;
	/*letter-spacing: 0;
	/*margin-left: 0;
	/*margin-right: 0;*/
	/*text-align: left; /*left, center, right, justify*/
	/*text-decoration: none; /*none, underline*/
	/*text-indent: 0;*/
}
</pre>
<p><a href="http://www.turtlebite.com/downloads/dynamicfontloader.zip">Here are all the source files.</a></p>
<p>Some more useful links and resources about this topic:<br />
<a href="http://etcs.ru/pre/FontLoaderDemo/">http://etcs.ru/pre/FontLoaderDemo/</a><br />
<a href="http://www.thetechlabs.com/tutorials/flash/dynamically-loading-fonts-with-fontloader-and-applying-styles-with-css-stylesheet-in-as3/">http://www.thetechlabs.com/tutorials/flash/dynamically-loading-fonts-with-fontloader-and-applying-styles-with-css-stylesheet-in-as3/</a><br />
<a href="http://lab.revoke.ca/2010/02/as3-external-font-loading-class/">http://lab.revoke.ca/2010/02/as3-external-font-loading-class/</a><br />
<a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/StyleSheet.html">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/StyleSheet.html</a></p>
<p>Even though I don&#8217;t need it in the font loading method described here, while searching the web I found a nice site to get unicode ranges: <a href="http://www.tillschneidereit.de/unicode_range_tool.html">http://www.tillschneidereit.de/unicode_range_tool.html</a> If you are embedding your founds using the EMBED tag you might find it useful.</p>
<p>OK, now back to daily business!</p>
<p>Cheers,<br />
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/runtime-dynamic-font-loading-in-as3/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/runtime-dynamic-font-loading-in-as3/&amp;title=Runtime+dynamic+font+loading+in+AS3" 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/runtime-dynamic-font-loading-in-as3/&amp;title=Runtime+dynamic+font+loading+in+AS3" 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/runtime-dynamic-font-loading-in-as3/&amp;title=Runtime+dynamic+font+loading+in+AS3&amp;desc=%0D%0A%0D%0AI%20know%20this%20has%20been%20a%20long%20discussed%20topic.%20And%20I%27m%20not%20going%20to%20re-invent%20the%20wheel.%20I%20have%20been%20searching%20for%20a%20long%20time%20now%20and%20have%20found%20many%20ways%20to%20dynamically%20load%20fonts%20at%20runtime%20in%20AS3%2C%20there%20are%20a%20lot%20of%20good%20solutions%20out%20there.%20But%20yesterday%20I%20found%20a%20font%20manager%20class%20and%20WOW%2C%20" 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/runtime-dynamic-font-loading-in-as3/&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/runtime-dynamic-font-loading-in-as3/&amp;bm_description=Runtime+dynamic+font+loading+in+AS3&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/runtime-dynamic-font-loading-in-as3/&amp;title=Runtime+dynamic+font+loading+in+AS3" 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/runtime-dynamic-font-loading-in-as3/&amp;title=Runtime+dynamic+font+loading+in+AS3" 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/runtime-dynamic-font-loading-in-as3/&amp;title=Runtime+dynamic+font+loading+in+AS3" 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/runtime-dynamic-font-loading-in-as3/" 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=Runtime+dynamic+font+loading+in+AS3+-+http://b2l.me/afqzjq&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/runtime-dynamic-font-loading-in-as3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fleb Framework v1.2: Dinner is served!</title>
		<link>http://blog.turtlebite.com/fleb-framework-v1-2-released/</link>
		<comments>http://blog.turtlebite.com/fleb-framework-v1-2-released/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 14:56:08 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Fleb Framework]]></category>
		<category><![CDATA[Global Navigation]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[expressinstall]]></category>
		<category><![CDATA[Flash SEO]]></category>
		<category><![CDATA[swfaddress]]></category>
		<category><![CDATA[swfobject]]></category>

		<guid isPermaLink="false">http://blog.flashcmsframework.com/?p=889</guid>
		<description><![CDATA[It&#8217;s been a while since the release of Fleb v1.1. I&#8217;ve been using it ever since to build websites (here you can find some examples) and at the same time have improved it a lot. It is still the same, the PHP/CSS/HTML section has not changed a lot despite a few small improvements. What did [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-904" title="fleb-flash-website-opensource-framework" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/12/fleb-flash-website-opensource-framework.jpg" alt="fleb-flash-website-opensource-framework" width="180" height="130" />It&#8217;s been a while since the release of Fleb v1.1. I&#8217;ve been using it ever since to build websites (<a href="http://www.flashcmsframework.com/docs/fleb-framework-introduction#real-examples">here you can find some examples)</a> and at the same time have improved it a lot. It is still the same, the PHP/CSS/HTML section has not changed a lot despite a few small improvements. What did change are the classes: I have removed every line of code I could out of Main.as and Base.as which were disturbing the creative work, for example setting up SWFAddress, waiting for the global navigation to finish initialisation, handling the loading/unloading of content pages etc. This code is now placed in separate classes like Startup.as, Core.as, PageLoader.as in a package &#8220;net.kaegi.fleb&#8221;. You don&#8217;t have to think about these classes and can concentrate on the cool design of your flebsite! What else? Oh, and I have created a logo for the Fleb Framework. <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>But what the heck has &#8220;Dinner is served&#8221; to do with the Fl</strong><strong>eb Framework?</strong><br />
When I build a flebsite, I like to think of it as a table ready laid. If I want to have dinner, I will always find 3 things for sure: the table itself, a plate and some food on the plate. (Some of you might argue now that you can also eat on the floor without a plate, holding the food in your hands&#8230; Right. And you can also build websites by using SimpleText or Word&#8230; <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ) Okay, back to the point. Oh, I forgot two more things: the tablecloth or placemat and the menu card. But lets start with the table.<br />
<img class="alignnone size-full wp-image-909" title="fleb-flash-website-opensource-framework-v1.2-dinner-is-served" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/12/fleb-flash-website-opensource-framework-v1.2-dinner-is-served.jpg" alt="fleb-flash-website-opensource-framework-v1.2-dinner-is-served" width="595" height="351" /></p>
<p><strong>The table</strong><br />
Normally, you do not spend a thought about the table itself, but it is really important. If you remove it,  you will end up in a mess. It always has to be there, but once you have placed it somewhere in your house or flat, you probably will spend more time on the things you put on that table than the table itself. So to me as a flash website designer, I like to see the table as the necessary PHP/CSS/HTML/SEO construct I don&#8217;t want to care about every time I build a new flebsite.</p>
<p><strong>The tablecloth or placemat</strong><br />
For a decent dinner, before I put a plate on the table, I want to have a tablecloth or at least a placemat. To me, the tablecloth/placemat represents the basic settings of a flebsite: all the things that are most likely not going to change during a session, like the background image or color, a footer, a logo, a sound on/off switch etc. The tablecloth stands for a fullscreen flebsite, whereas the placemat represents a fixed size flebsite. The placemat, for example, may or may not be moved around with the plate, whereas the tablecloth will certainly stay in place when I scale the table (ups, sorry, I mean the browser window&#8230;)</p>
<p><strong>The plate and the food on it</strong><br />
The plate is the place where the action is happening: During a dinner, you may have a drink, followed by a salad or soup, then the main dishes and finally a dessert. The plate may or may not change for every course, but the food certainly does. You can share one plate for salad and soup (maybe you are having dinner at home and just don&#8217;t have more plates&#8230; <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ), while the main dishes are being served on different plates (even the shape and colors of the plates may change). The dessert will be served on a nice transparent glass plate.<br />
Think of the plate as your content page. The SWF displaying your data. The food is the actual data source. So you can have one plate that holds different food (the dynamically loaded content). If the food (the content) will be completely different (e.g. a change from a contact form to a gallery), than you might want to change the plate as well (the SWF). Than you have the cutlery that may or may not change with the plate: You can use the same fork for the salad and for the main dish. But you surely prefer a smaller spoon for the dessert than for the soup.</p>
<p><strong>Got the point? </strong><br />
While the table will not change at all and the tablecloth and placemat will remain the same during a &#8220;dinner session&#8221;, the plates, cutlery, glasses etc. will change, being moved around and emptied/filled up a lot.</p>
<p><strong>One more: the menu card</strong><br />
To make this metaphor complete I like to think of the global navigation as the menu card. When you hold it in your hands, it is floating above the table. In your mind you &#8220;navigate&#8221; through the dinner by selecting your food just like clicking on the buttons of a website.</p>
<p><strong>&#8230;and the last one: the waiter or &#8220;the brain&#8221;</strong><br />
Because I later refer to &#8220;the brain&#8221; when talking about &#8220;main.swf&#8221;, think of it as the person who knows everything about your dinner: the waiter. While your guests are the visitors of your flebsite, the waiter knows what to put on which plate, where to place it on the table, in which order the dishes have to be served, who has salad and who has the soup, who is vegetarian and has the risotto, when it is time to light the candles, clean up breadcrumbs, dim the lights, pump up the volume of the background music, help you with the chair if you need to go to the ladies&#8217;/men&#8217;s room, inform you about an incoming telephone call, when to ask you if the coffee may be served and so on&#8230;.</p>
<h2><strong><br />
Fleb Framework 1.2 </strong></h2>
<p><img class="alignnone size-full wp-image-906" title="fleb-flash-website-opensource-framework-overview" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/12/fleb-flash-website-opensource-framework-overview.jpg" alt="fleb-flash-website-opensource-framework-overview" width="595" height="638" /></p>
<p><strong>What&#8217;s new?</strong><br />
As written in the introduction, the whole framework has been cleaned up and restructured. Now there is much less code in main.as and you can concentrate on the design etc&#8230; As the Fleb Framework is based on the Global Navigation, I have moved the navigation settings into structure.xml. So now the whole website structure is defined in a central place.</p>
<p><strong>Flow</strong><br />
When base.swf (the &#8220;tablecloth/placemat&#8221;) is loaded, it starts loading main.swf (the &#8220;waiter&#8221; or &#8220;brain&#8221;). A preloader in base.swf shows the loading progress, main.swf will use 50% of the preloader bar. When main.swf is loaded, the navigation is initialised, which will use the other 50% of the preloader bar so it will reach 100% when main.swf and the navigation are completely initialised. Main.as will also create the pageHolder movieclip (the &#8220;plate&#8221;) and the navigationHolder movieclip (the &#8220;menu card&#8221;)</p>
<h2><strong> <span style="font-weight: normal;"><strong><br />
Examine the demosite</strong></span></strong></h2>
<p><strong><span style="font-weight: normal;"><strong><strong>Example 1: Landing on the homepage of the site<br />
<span style="font-weight: normal;">Launch the demosite: </span><span style="font-weight: normal;"><a href="http://www.turtlebite.com/flebsite_demo_v2" target="_blank">http://www.turtlebite.com/flebsite_demo_v2<br />
</a>As you can see, there is kind of an intro before the navigation is animated into place. Of course it is up to you to have an intro. This is just an example.</span></strong></strong></span></strong></p>
<p><strong>Example 2: Deeplinking</strong><br />
An intro is nice if the user enters the site via the homepage. But what about a deeplink?<br />
Try this:  <a href="http://www.turtlebite.com/flebsite_demo_v2/en/products/turbo-series" target="_blank">http://www.turtlebite.com/flebsite_demo_v2/en/products/turbo-series</a><br />
Now the user wants to get quickly to the content, so the intro is skipped.</p>
<p><strong>Example 3: Deeplinking with parameters</strong><br />
Maybe you have an image gallery on your site. You want to be able to deeplink to a specific image, but, because the gallery gets updated often, you cannot define all links in structure.xml. They need to be dynamic.<br />
Check this: <a href="http://www.turtlebite.com/flebsite_demo_v2/en/service/some/more/info" target="_blank">http://www.turtlebite.com/flebsite_demo_v2/en/service/some/more/info<br />
</a>The address defined in structure.xml is &#8220;/en/service/&#8221;. Everything which is beyond this scope will be stored in an array called deeplink. That way you can set up an event listener in your SWF and do whatever is needed, for example loading a certain image. This even works without flash, so you can catch the deeplink in your PHP file to feed the search engines:<br />
<a href="http://www.turtlebite.com/flebsite_demo_v2/noflash.php?swfaddress=/en/service/some/more/info" target="_blank">http://www.turtlebite.com/flebsite_demo_v2/noflash.php?swfaddress=/en/service/some/more/info<br />
</a><br />
<strong>Show your clients the &#8220;no flash&#8221; version</strong><br />
Maybe you&#8217;ve noticed the noflash.php part in the previous sample link above.<br />
Try this: <a href="http://www.turtlebite.com/flebsite_demo_v2/noflash.php" target="_blank">http://www.turtlebite.com/flebsite_demo_v2/noflash.php</a><br />
This is the site the user will see if he cancels the express install procedure. But at the same time it is really useful to easily show your clients the work &#8220;under the hood&#8221; without having them deactivate javascript.</p>
<p><strong>Transitioning pages</strong><br />
Launch the demosite: <a href="http://www.turtlebite.com/flebsite_demo_v2" target="_blank">http://www.turtlebite.com/flebsite_demo_v2</a>. If you navigate to &#8220;About us&#8221;, then &#8220;Service&#8221;, you see that the pages are just fading in and out. Now click on &#8220;Static content&#8221;. Here the previous page will not only fade out, but also move to the right, then there is a pause, just before the &#8220;static content&#8221; page slides in from the left.In fact it is very easy to set up different transitioning modes.</p>
<h2><strong> </strong></h2>
<p><strong>SWFObject 2.2 / 2.1</strong><br />
While using the new SWFAddress version 2.4, there are problems with SWFObject 2.2 when you cancel ExpressInstall in Firefox on PC: you will end up with a blank screen. This issue is not occuring with SWFObject 2.1, so I will continue using this version for the time being.</p>
<p><strong>How to start?<br />
<span style="font-weight: normal;"><a href="http://www.flashcmsframework.com/docs/fleb-framework-download">Download the Fleb Framework</a> from the download section. It also contains the complete source of the demosite. Dive into the files and <a href="http://www.flashcmsframework.com/docs/start#fleb-framework">visit the documentation</a>, I have spent some time updating it.</span></strong></p>
<p><strong><span style="font-weight: normal;">Update 9 december 2010: <a href="http://blog.turtlebite.com/fleb-2-0-the-flash-website-framework-has-grown-up/">Be sure to visit this post about version 2</a>!</span></strong></p>
<p><strong><span style="font-weight: normal;">Happy coding!<br />
Christian (the flebber&#8230;.;-)) </span></strong></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/fleb-framework-v1-2-released/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/fleb-framework-v1-2-released/&amp;title=Fleb+Framework+v1.2%3A+Dinner+is+served%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/fleb-framework-v1-2-released/&amp;title=Fleb+Framework+v1.2%3A+Dinner+is+served%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/fleb-framework-v1-2-released/&amp;title=Fleb+Framework+v1.2%3A+Dinner+is+served%21&amp;desc=It%27s%20been%20a%20while%20since%20the%20release%20of%20Fleb%20v1.1.%20I%27ve%20been%20using%20it%20ever%20since%20to%20build%20websites%20%28here%20you%20can%20find%20some%20examples%29%20and%20at%20the%20same%20time%20have%20improved%20it%20a%20lot.%20It%20is%20still%20the%20same%2C%20the%20PHP%2FCSS%2FHTML%20section%20has%20not%20changed%20a%20lot%20despite%20a%20few%20small%20improvements.%20What%20did%20change%20are%20" 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/fleb-framework-v1-2-released/&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/fleb-framework-v1-2-released/&amp;bm_description=Fleb+Framework+v1.2%3A+Dinner+is+served%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/fleb-framework-v1-2-released/&amp;title=Fleb+Framework+v1.2%3A+Dinner+is+served%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/fleb-framework-v1-2-released/&amp;title=Fleb+Framework+v1.2%3A+Dinner+is+served%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/fleb-framework-v1-2-released/&amp;title=Fleb+Framework+v1.2%3A+Dinner+is+served%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/fleb-framework-v1-2-released/" 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=Fleb+Framework+v1.2%3A+Dinner+is+served%21+-+http://b2l.me/afqwz7&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/fleb-framework-v1-2-released/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Global Navigation v2.10: suspend after initialisation</title>
		<link>http://blog.turtlebite.com/global-navigation-v2-10-suspend-after-initialisation/</link>
		<comments>http://blog.turtlebite.com/global-navigation-v2-10-suspend-after-initialisation/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 20:24:33 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Global Navigation]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://blog.flashcmsframework.com/?p=876</guid>
		<description><![CDATA[While working on the upcoming Fleb Framework release 1.2 I have made a small but quite useful update to the global navigation: It is now possible to suspend the navigation right after its initialisation just before it is transitioning in. This comes in very handy if you need to wait for an intro to finish [...]]]></description>
			<content:encoded><![CDATA[<p>While working on the upcoming Fleb Framework release 1.2 I have made a small but quite useful update to the global navigation: It is now possible to suspend the navigation right after its initialisation just before it is transitioning in. This comes in very handy if you need to wait for an intro to finish or some assets to be loaded, and you want to be sure the navigation is in place and ready.</p>
<p><a href="http://www.flashcmsframework.com/docs/doku.php?id=global-navigation2-examples">Test it here</a> (select example Nr. 16)</p>
<p>Visit the <a href="http://www.flashcmsframework.com/docs/doku.php?id=global_navigation_download">download section</a> and the <a href="http://www.flashcmsframework.com/docs/doku.php?id=global_navigation_changelog">changelog</a> for more details.</p>
<p>Cheers,<br />
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/global-navigation-v2-10-suspend-after-initialisation/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/global-navigation-v2-10-suspend-after-initialisation/&amp;title=Global+Navigation+v2.10%3A+suspend+after+initialisation" 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/global-navigation-v2-10-suspend-after-initialisation/&amp;title=Global+Navigation+v2.10%3A+suspend+after+initialisation" 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/global-navigation-v2-10-suspend-after-initialisation/&amp;title=Global+Navigation+v2.10%3A+suspend+after+initialisation&amp;desc=While%20working%20on%20the%20upcoming%20Fleb%20Framework%20release%201.2%20I%20have%20made%20a%20small%20but%20quite%20useful%20update%20to%20the%20global%20navigation%3A%20It%20is%20now%20possible%20to%20suspend%20the%20navigation%20right%20after%20its%20initialisation%20just%20before%20it%20is%20transitioning%20in.%20This%20comes%20in%20very%20handy%20if%20you%20need%20to%20wait%20for%20an%20intro%20to%20" 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/global-navigation-v2-10-suspend-after-initialisation/&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/global-navigation-v2-10-suspend-after-initialisation/&amp;bm_description=Global+Navigation+v2.10%3A+suspend+after+initialisation&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/global-navigation-v2-10-suspend-after-initialisation/&amp;title=Global+Navigation+v2.10%3A+suspend+after+initialisation" 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/global-navigation-v2-10-suspend-after-initialisation/&amp;title=Global+Navigation+v2.10%3A+suspend+after+initialisation" 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/global-navigation-v2-10-suspend-after-initialisation/&amp;title=Global+Navigation+v2.10%3A+suspend+after+initialisation" 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/global-navigation-v2-10-suspend-after-initialisation/" 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=Global+Navigation+v2.10%3A+suspend+after+initialisation+-+http://b2l.me/afqzjx&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/global-navigation-v2-10-suspend-after-initialisation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fleb Framework version 1.1: Improved Express Install Procedure and more</title>
		<link>http://blog.turtlebite.com/fleb-framework-version-1-1-improved-express-install-procedure/</link>
		<comments>http://blog.turtlebite.com/fleb-framework-version-1-1-improved-express-install-procedure/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 13:40:03 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Fleb Framework]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[expressinstall]]></category>
		<category><![CDATA[flash framework]]></category>
		<category><![CDATA[Flash SEO]]></category>
		<category><![CDATA[robots.txt]]></category>
		<category><![CDATA[swfaddress]]></category>
		<category><![CDATA[swfobject]]></category>

		<guid isPermaLink="false">http://blog.flashcmsframework.com/fleb-framework-version-1-1-improved-express-install-procedure/</guid>
		<description><![CDATA[A special thank to Niklas Hallgren who brought this issue up. I must admit I have not covered the case when a user actually has the flash plugin installed, but it is outdated and the express install is started. If he clicks &#8220;Yes&#8221;, the flash plugin will be installed and everything is fine: the user [...]]]></description>
			<content:encoded><![CDATA[<p>A special thank to <a href="http://www.widecircle.se">Niklas Hallgren</a> who brought this issue up. I must admit I have not covered the case when a user actually has the flash plugin installed, but it is outdated and the express install is started. If he clicks &#8220;Yes&#8221;, the flash plugin will be installed and everything is fine: the user will see the flash version of the website after installation is complete. This is where I stopped thinking about it any further. <strong>But what if the user aborts the express install by clicking &#8220;No&#8221;? </strong>For example, if the user is not allowed to upgrade and has to stick to the installed flash player version on his computer.</p>
<p>Unfortunatly when the users aborts the express install he will end up with a blank screen. Even if the user was shown the no javascript alternative content we would run into problems because of SWFAddress, which would again start the express install at the time of the next click in the navigation menu. For Fleb, this needed some rethinking.</p>
<p><strong>SWFObject 2.1 together with SWFAddress 2.3</strong><br />
At first I wanted to upgrade to the newest SWFObject 2.2, but I ran into 2 problems. First, when I have SWFObject 2.2 installed, when I test in Firefox (3.0.13 and 3.5.2) on the PC I get a blank screen and an error in firebug: &#8220;<em>Error calling method on NPObject</em>&#8220;. So I switched back to SWFObject 2.1, which I have not encountered any problems on the tested browsers. And there is even another issue: The combination of SFWObject 2.2 and SWFAddress 2.3 causes FlashVars to be NULL. <a href="http://code.google.com/p/swfobject/issues/detail?id=338#c0">Read this for more info about this issue.</a> Conclusion for the time being: I will stick to SWFObject 2.1 and SWFAddress 2.3.</p>
<p><strong>expressInstall.swf changed to flebExpressInstall.swf</strong><br />
Here is what I did: In expressInstall.as I changed the function <em>installStatus</em> like this:</p>
<pre class="brush: php;">

function installStatus(statusValue) {
switch (statusValue) {
case &quot;Download.Complete&quot;:
// Installation is complete.
break;
case &quot;Download.Cancelled&quot;:
getURL(baseURL+&quot;/noflash.php&quot;);
break;
case &quot;Download.Failed&quot;:
getURL(baseURL+&quot;/noflash.php&quot;);
break;
}
}
</pre>
<p>If the user hits &#8220;No&#8221;, he will be rerouted to &#8220;noflash.php&#8221;, which is in fact the same page as index.php, but without SWFAddress. See the graphic below.</p>
<p><img class="alignnone size-full wp-image-649" title="cancelling_flash_player_expressinstall" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/08/cancelling_flash_player_expressinstall.jpg" alt="cancelling_flash_player_expressinstall" width="595" height="500" /></p>
<p>This page is not linked to from anywhere and has the metatags &#8220;noindex, nofollow&#8221;, so the search engines should not index it. This page is only for the user to have at least something if he cannot upgrade to the needed flash player. At the same time this is a great way to show your clients the NO FLASH version of their new flash website, without having them deactivate javascript (which they normally don&#8217;t have a clue how to do it&#8230; <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</p>
<p><strong>robots.txt</strong><br />
In this release version 1.1 of Fleb I also have added a robots.txt file, to prevent the search engines from indexing certain files. For example SWFs. <a href="http://www.asual.com/blog/swfaddress/2008/11/25/swfaddress-and-robots-txt.html">Read this post for more info about SWFAddress and robots.txt</a>.<br />
Here is what it looks like:</p>
<pre class="brush: php;">
User-agent: *
Disallow: /base.swf
Disallow: /main.swf
Disallow: /noflash.php
Disallow: /structure.xml
Disallow: /structure.php
Disallow: /content_source/
Disallow: /content_swf/
</pre>
<p><strong>More improvements</strong><br />
Because there are now two php files that use the same info texts (<em>index.php</em> and <em>noflash.php</em>) I didn&#8217;t want to have redundant data, so I have created a new file named &#8220;<em>noflash_text.php</em>&#8221; with those pieces of text. Just have a look at it to see what I mean.</p>
<p><strong>Making things variable</strong><br />
I took everything out of <em>index.php</em> that you had to set (e.g. flash version, background color) and placed it in structure.xml. Now you don&#8217;t have to touch the index.php file anymore, it&#8217;s all variable and defined in <em>structure.xml</em>. In the download files I have also added a<em> structure.xml</em> file that contains only one language, for you to compare.</p>
<p><strong>Removed code from Main.as</strong><br />
I have placed all code for language handling in the navigationManager2 class, now Main.as is much clearer. The code that is left there has to be there. I mean, I could take even more code out and place it in seperate classes, but that would probably get in the way of your coding style. I want the Fleb Framework to remain as clear as possible. I have put a lot of comments in Main.as to explain every step. Please let me know if you have problems or suggestions.</p>
<p><a href="http://www.flashcmsframework.com/docs/doku.php?id=fleb-framework-download">You can download the Fleb Framework here.</a></p>
<p>Cheers,<br />
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/fleb-framework-version-1-1-improved-express-install-procedure/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/fleb-framework-version-1-1-improved-express-install-procedure/&amp;title=Fleb+Framework+version+1.1%3A+Improved+Express+Install+Procedure+and+more" 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/fleb-framework-version-1-1-improved-express-install-procedure/&amp;title=Fleb+Framework+version+1.1%3A+Improved+Express+Install+Procedure+and+more" 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/fleb-framework-version-1-1-improved-express-install-procedure/&amp;title=Fleb+Framework+version+1.1%3A+Improved+Express+Install+Procedure+and+more&amp;desc=A%20special%20thank%20to%20Niklas%20Hallgren%20who%20brought%20this%20issue%20up.%20I%20must%20admit%20I%20have%20not%20covered%20the%20case%20when%20a%20user%20actually%20has%20the%20flash%20plugin%20installed%2C%20but%20it%20is%20outdated%20and%20the%20express%20install%20is%20started.%20If%20he%20clicks%20%22Yes%22%2C%20the%20flash%20plugin%20will%20be%20installed%20and%20everything%20is%20fine%3A%20the%20user%20w" 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/fleb-framework-version-1-1-improved-express-install-procedure/&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/fleb-framework-version-1-1-improved-express-install-procedure/&amp;bm_description=Fleb+Framework+version+1.1%3A+Improved+Express+Install+Procedure+and+more&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/fleb-framework-version-1-1-improved-express-install-procedure/&amp;title=Fleb+Framework+version+1.1%3A+Improved+Express+Install+Procedure+and+more" 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/fleb-framework-version-1-1-improved-express-install-procedure/&amp;title=Fleb+Framework+version+1.1%3A+Improved+Express+Install+Procedure+and+more" 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/fleb-framework-version-1-1-improved-express-install-procedure/&amp;title=Fleb+Framework+version+1.1%3A+Improved+Express+Install+Procedure+and+more" 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/fleb-framework-version-1-1-improved-express-install-procedure/" 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=Fleb+Framework+version+1.1%3A+Improved+Express+Install+Procedure+and+more+-+http://b2l.me/aft79f&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/fleb-framework-version-1-1-improved-express-install-procedure/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Fleb Framework 1.0 released!</title>
		<link>http://blog.turtlebite.com/fleb-framework-1-0-released/</link>
		<comments>http://blog.turtlebite.com/fleb-framework-1-0-released/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 14:25:42 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Fleb Framework]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash framework]]></category>
		<category><![CDATA[flash navigation]]></category>
		<category><![CDATA[Flash SEO]]></category>
		<category><![CDATA[Global Navigation]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[swfaddress]]></category>

		<guid isPermaLink="false">http://blog.flashcmsframework.com/?p=610</guid>
		<description><![CDATA[Ok, it&#8217;s ready for release. You can download the framework here. What is the Fleb Framework and who needs it? It&#8217;s an open source front-end framework for AS3 to help you build pure flash websites with full SEO support. It is based on the Global Navigation for Flash and the SWFAddress SEO Solution. You define [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, it&#8217;s ready for release. <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  You can <a href="http://www.flashcmsframework.com/docs/doku.php?id=fleb-framework-download">download the framework here</a>.</p>
<p><strong>What is the Fleb Framework and who needs it?</strong><br />
It&#8217;s an open source front-end framework for AS3 to help you build pure flash websites with full SEO support. It is based on the <a href="http://blog.flashcmsframework.com/global-navigation-showcase/">Global Navigation for Flash</a> and the <a href="http://www.asual.com/swfaddress/">SWFAddress SEO Solution</a>. You define the whole structure of the website (navigation, title, description, keywords, assets etc.) in an <a href="http://www.flashcmsframework.com/flebsitedemo/structure.xml">XML file</a> which is parsed by your SWF files for your flash site and PHP files for the no-javascript SEO version of your site.</p>
<p><strong>What does &#8220;Fleb&#8221; stand for?</strong><br />
Very simple: It is just a short form of &#8220;flash web&#8221; -&gt; &#8220;fleb&#8221;. I prefer to build flebsites now&#8230; <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><strong>Concentrate on Flash</strong><br />
All is done automatically: You don&#8217;t have to think about the layout of the no-javascript website any longer, just concentrate on the content, keywords and description in your <a href="http://www.flashcmsframework.com/flebsitedemo/structure.xml">structure.xml</a> file. By using the global navigation you can create almost any navigation setup you can think of. <a href="http://www.flashcmsframework.com/docs/doku.php?id=global-navigation2-examples">Check it out.</a></p>
<p><strong>Test it!</strong><br />
Let me demonstrate it. <a href="http://www.flashcmsframework.com/flebsitedemo/">Start the Fleb Demosite</a>. Navigate through the site and observe the address bar. Also use the browser back/forward buttons. At any point, reload the site to see how deeplinking is working. Speaking of deeplinking, try this: Add some additional parameters to the url, for example like so:</p>
<p>http://www.flashcmsframework.com/flebsitedemo/#/en/products/ultra-power/<strong>1/2/3/</p>
<p><img class="size-full wp-image-612 alignnone" title="fleb-flash-framework-deeplinks" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/08/fleb-flash-framework-deeplinks.jpg" alt="fleb-flash-framework-deeplinks" width="595" height="135" /><br />
</strong><br />
As you can see the parameters are split into an array. Whenever there are parameters in the URL an event is dispatch which you can listen to from anywhere and react accordingly.</p>
<p><strong>SEO, please!</strong><br />
Now comes the interesting part: Turn off JavaScript to see what the search engines get.<br />
<img class="alignnone size-full wp-image-616" title="fleb-flash-framework-no-javascript" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/08/fleb-flash-framework-no-javascript.jpg" alt="fleb-flash-framework-no-javascript" width="595" height="266" /><br />
The navigation is created automatically by parsing the <a href="http://www.flashcmsframework.com/flebsitedemo/structure.xml">same XML file that is used for your flebsite (structure.xml).</a> You can easily adjust the colors of the sidebar, header, content background etc. in a separate css file, if needed. But remember, this no javascript version will almost no one ever see! <img src='http://blog.turtlebite.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . Please navigate around and watch the address bar. As you can see, the &#8220;#&#8221; has gone, you have clean URLs for the search engines. Also look at the source text of the website to see the content of the metatags &#8220;keywords&#8221; and &#8220;description&#8221;. Now turn javascript back on and reload. SWFAddress will automatically insert a &#8220;#&#8221; and you will be taken to the right location inside your flash website.<br />
<strong> </strong></p>
<p><img class="size-full wp-image-615 alignnone" title="fleb-overview-2" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/08/fleb-overview-2.jpg" alt="fleb-overview-2" width="595" height="331" /></p>
<p>Since my <a href="http://blog.flashcmsframework.com/introducing-the-fleb-framework/">last post</a> about the fleb framework I have merged the 2 PHP files &#8220;seonavig.php&#8221; and &#8220;datasource.php&#8221; into one file, &#8220;structure.php&#8221; to make it easier. <a href="http://www.flashcmsframework.com/docs/doku.php?id=fleb-framework-overview">Please visit the docs for an in-depth explanation of each file</a>.<strong><br />
</strong></p>
<p><strong>Open and very flexible</strong><br />
Besides the use of the Global Navigation you are completely free how you create/code your site. The Fleb Demosite (included in the <a href="http://www.flashcmsframework.com/docs/doku.php?id=fleb-framework-download">download</a>) is just a suggestion and shows the way I use to create websites. The main part of your code will be in main.swf. This is the place where the navigation and SWFAddress are initialized and where the loading/unloading of content is organized. Anyway, there are some techniques and classes involved I like to explain. Remember, it&#8217;s up to you if you use these or any other solutions.</p>
<p><strong>Debugging</strong><br />
I use one of these 3 debugger solutions. Each one has its advantages.<br />
<a href="http://blog.hexagonstar.com/alcon/">Alcon</a><br />
<a href="http://arthropod.stopp.se/">Arthropod</a><br />
<a href="http://demonsterdebugger.com/">DeMonster</a></p>
<p><strong>Global event handling &amp; global variables</strong><br />
Some time ago I discovered <a href="http://www.reynaldocolumna.com/blog/archives/event-control-system">this post by Reyco1<strong> </strong></a> about a centralized event system. This is very useful for events that need to be used all over your project. For example, in Fleb there are 3 of those &#8220;global&#8221; events: onDeeplink, onLanguageChange, onStageResize. These event classes are included in Fleb. Based on this concept I have created a very simple class called VarCentral, which is a singleton that stores any variable you can globally access from anywhere in your project (an object, for example):</p>
<pre class="brush: php;"> VarCentral.getInstance().vars.hello = {a:1, b:2}</pre>
<p><strong>Loading assets</strong><br />
For simple cases, I use a slightly enhanced class  found in <a href="http://www.moock.org/">Colin Moock&#8217;s Book &#8220;Essential Actionscript 3&#8243;</a>, LoadChildAsset. That is okay for most of my needs. If you need a more sophisticated class, you have to check out the <a href="http://www.stimuli.com.br/trane/2007/nov/25/loading-reloaded/">BulkLoader from Arthur Debert</a>. It&#8217;s awesome!<br />
And this also looks very promising (though I have not used it yet): <a href="http://code.google.com/p/queueloader-as3/">Queueloader by Donovan Adams</a>.</p>
<p><strong>Browser window resizing</strong><br />
If I need a script that resizes my flash movie automatically if the browser window size changes, i use <a href="http://swffit.millermedeiros.com/">swffit</a>.</p>
<p><strong>Tweening</strong><br />
<a href="http://blog.greensock.com/tweenmaxas3/">TweenLite/Tweenmax</a><br />
<a href="http://goasap.org/">GO</a><br />
<a href="http://desuade.com/dmp">Desuade Motion Package</a> (not really tested yet, it&#8217;s quite new but looks very promising)</p>
<p>Cheers!<br />
Christian</p>
<p><strong><br />
</strong></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/fleb-framework-1-0-released/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/fleb-framework-1-0-released/&amp;title=Fleb+Framework+1.0+released%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/fleb-framework-1-0-released/&amp;title=Fleb+Framework+1.0+released%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/fleb-framework-1-0-released/&amp;title=Fleb+Framework+1.0+released%21&amp;desc=Ok%2C%20it%27s%20ready%20for%20release.%20%3A-%29%20You%20can%20download%20the%20framework%20here.%0D%0A%0D%0AWhat%20is%20the%20Fleb%20Framework%20and%20who%20needs%20it%3F%0D%0AIt%27s%20an%20open%20source%20front-end%20framework%20for%20AS3%20to%20help%20you%20build%20pure%20flash%20websites%20with%20full%20SEO%20support.%20It%20is%20based%20on%20the%20Global%20Navigation%20for%20Flash%20and%20the%20SWFAddress%20SEO%20Sol" 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/fleb-framework-1-0-released/&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/fleb-framework-1-0-released/&amp;bm_description=Fleb+Framework+1.0+released%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/fleb-framework-1-0-released/&amp;title=Fleb+Framework+1.0+released%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/fleb-framework-1-0-released/&amp;title=Fleb+Framework+1.0+released%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/fleb-framework-1-0-released/&amp;title=Fleb+Framework+1.0+released%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/fleb-framework-1-0-released/" 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=Fleb+Framework+1.0+released%21+-+http://b2l.me/afrdvf&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/fleb-framework-1-0-released/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<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>
		<item>
		<title>Global Navigation version 2.00 released</title>
		<link>http://blog.turtlebite.com/global-navigation-version-2-00-released/</link>
		<comments>http://blog.turtlebite.com/global-navigation-version-2-00-released/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 19:37:45 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Global Navigation]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Fleb Framework]]></category>

		<guid isPermaLink="false">http://blog.flashcmsframework.com/?p=520</guid>
		<description><![CDATA[This is an exciting update, because it makes things easier. From now on you don&#8217;t have to think about button IDs anymore. Remember, up to now you had to name the buttons carefully in the correct manner: b0, b1, b2 etc. for the first level, then b1_0, b1_1, b1_2 and so on for the sub [...]]]></description>
			<content:encoded><![CDATA[<p>This is an exciting update, because it makes things easier. From now on you don&#8217;t have to think about button IDs anymore. Remember, up to now you had to name the buttons carefully in the correct manner: b0, b1, b2 etc. for the first level, then b1_0, b1_1, b1_2 and so on for the sub navigation of b1 etc. This is now handled automatically, so you can move nodes around in the xml file without having to rearrange the button IDs. At the same time I have taken out the global navigation of the Gaia site.xml. That way the xml file gets clearer. Because the btnIDs are gone, there is a new xml attribute &#8220;id&#8221; in the global navigation xml file. That is also the link to the Gaia site.xml: Just use for the button IDs the page IDs of the Gaia site.xml and the two files are linked.</p>
<p>Check out the following 3 screenshots.:</p>
<p><strong>Global Navigation XML + Gaia site XML together in one file</strong></p>
<p><img class="alignnone size-full wp-image-522" title="gaia_globnav_mixed" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/07/gaia_globnav_mixed1.jpg" alt="gaia_globnav_mixed" width="593" height="133" /></p>
<p>As you can see, this is how it used to be up to now (Global Navigation version 1.57a). The attributes of both Gaia and Global Navigation together in one file.<span id="more-520"></span></p>
<p><strong>Gaia site.xml without Global Navigation</strong></p>
<p><img class="alignnone size-full wp-image-523" title="xml_gaia_site" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/07/xml_gaia_site.jpg" alt="xml_gaia_site" width="595" height="129" /></p>
<p>This is the normal Gaia site.xml without the Global Navigation.</p>
<p><strong>The new Global Navigation XML source file</strong></p>
<p><img class="alignnone size-full wp-image-524" title="xml_global_nav" src="http://blog.flashcmsframework.com/wp-content/uploads/2009/07/xml_global_nav.jpg" alt="xml_global_nav" width="595" height="127" /></p>
<p>This is the new Global Navigation navig.xml file. Yellow marked you can see that the new attribute &#8220;id&#8221; is the same as the page IDs of the Gaia site.xml above. The root node can be of any name, but the &#8220;navigation&#8221; and &#8220;button&#8221; nodes have to be named like that.</p>
<p><strong>Ok, but what is so exciting about this?<br />
</strong></p>
<p>The fact that you don&#8217;t have to handle the button IDs by yourself is one thing, the other is that this is one of the last pieces of my own Flash Website Framework called &#8220;FLEB&#8221; which is based on the Global Navigation. One of the key features of this framework is SEO. Stay tuned!</p>
<p>Visit the docs to <a href="http://www.flashcmsframework.com/docs/doku.php?id=global_navigation_download">download the source files and classes</a>.</p>
<p>.<strong><br />
</strong></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/global-navigation-version-2-00-released/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/global-navigation-version-2-00-released/&amp;title=Global+Navigation+version+2.00+released" 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/global-navigation-version-2-00-released/&amp;title=Global+Navigation+version+2.00+released" 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/global-navigation-version-2-00-released/&amp;title=Global+Navigation+version+2.00+released&amp;desc=This%20is%20an%20exciting%20update%2C%20because%20it%20makes%20things%20easier.%20From%20now%20on%20you%20don%27t%20have%20to%20think%20about%20button%20IDs%20anymore.%20Remember%2C%20up%20to%20now%20you%20had%20to%20name%20the%20buttons%20carefully%20in%20the%20correct%20manner%3A%20b0%2C%20b1%2C%20b2%20etc.%20for%20the%20first%20level%2C%20then%20b1_0%2C%20b1_1%2C%20b1_2%20and%20so%20on%20for%20the%20sub%20navigation%20of%20b1" 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/global-navigation-version-2-00-released/&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/global-navigation-version-2-00-released/&amp;bm_description=Global+Navigation+version+2.00+released&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/global-navigation-version-2-00-released/&amp;title=Global+Navigation+version+2.00+released" 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/global-navigation-version-2-00-released/&amp;title=Global+Navigation+version+2.00+released" 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/global-navigation-version-2-00-released/&amp;title=Global+Navigation+version+2.00+released" 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/global-navigation-version-2-00-released/" 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=Global+Navigation+version+2.00+released+-+http://b2l.me/afrrwf&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/global-navigation-version-2-00-released/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How to use your own fonts and textstyles in the Flash CMS</title>
		<link>http://blog.turtlebite.com/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/</link>
		<comments>http://blog.turtlebite.com/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 19:16:22 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Flash CMS]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[embed fonts]]></category>
		<category><![CDATA[textstyles]]></category>

		<guid isPermaLink="false">http://www.flashcmsframework.com/?p=481</guid>
		<description><![CDATA[This first tutorial will cover a very basic requirement of the Flash CMS: defining different fonts and font styles. I assume you have downloaded and installed the Flash CMS and everything works fine so far. You&#8217;ve tested and played around with it and now want to take the next steps. Step 1: Embedding the fonts [...]]]></description>
			<content:encoded><![CDATA[<p>This first tutorial will cover a very basic requirement of the Flash CMS: defining different fonts and font styles.</p>
<p><img class="alignnone size-full wp-image-493" title="ownfonts" src="http://www.flashcmsframework.com/wp-content/uploads/ownfonts.jpg" alt="ownfonts" width="673" height="397" /></p>
<p><span id="more-481"></span></p>
<p>I assume you have <a href="http://www.flashcmsframework.com/docs/doku.php?id=flash_cms_installation">downloaded and installed</a> the Flash CMS and everything works fine so far. You&#8217;ve tested and played around with it and now want to take the next steps.</p>
<p><strong>Step 1: Embedding the fonts</strong></p>
<ol>
<li>Open &#8220;fonts.fla&#8221; in Flash.</li>
<li>Open the library: you see 2 fonts already defined: &#8220;_myfont1&#8243; and &#8220;_myfont2&#8243;. You are going to owerwrite these 2 and create a third, new font.</li>
<li>In the library, create a new font. Name it &#8220;_myfont3&#8243;. (Note: The CMS will refer to these names. You can define up to 15 different fonts: &#8220;_myfont1&#8243; to &#8220;_myfont15&#8243;).</li>
<li>Open &#8220;_myfont1&#8243; in the library and choose any font you like. Be sure your export settings are the same as in the screenshot. Repeat these steps for &#8220;_myfont2&#8243; and &#8220;_myfont3&#8243; with different fonts.</li>
</ol>
<p><strong><img class="alignnone size-full wp-image-483" title="font_export" src="http://www.flashcmsframework.com/wp-content/uploads/font_export.jpg" alt="font_export" width="560" height="490" /></strong></p>
<p><strong>Step 2: Defining textstyles</strong></p>
<ol>
<li> Now open frame 1 (&#8220;setup&#8221;) in the actions panel to edit it.</li>
<li>At the top you can see the styles for hyperlinks. Change it if you like (different colours and decorations).</li>
<li>Next, you can find an array &#8220;_level0.testFontStyle&#8221;. Leave the name for now. There are 3 styles defined: &#8220;Body&#8221;, &#8220;Body bold&#8221; and &#8220;Headline&#8221;. These are the names the user sees and can choose from in the CMS.</li>
</ol>
<p>Now, type in the fontnames you have embedded. I have used these fonts: &#8220;Bumblebee&#8221; (_myfont1), &#8220;JanicesHand&#8221; (_myfont2) and &#8220;Gadget&#8221; (_myfont3). <strong> </strong></p>
<p>Here the code after all changes:</p>
<pre class="brush: php;">
_level0.testLinkStyle = new TextField.StyleSheet();
_level0.testLinkStyle.setStyle("a:link",{color:"#24A831", textDecoration:"underline"});
_level0.testLinkStyle.setStyle("a:hover",{color:"#177120", textDecoration:"none"});
// --------------------------------------------
_level0.testFontStyle = [];
// --------------------------------------------
f = {};
f.styleName = "Body";
f.font = "_myfont3";
f.size = 12;
f.color = 0x000000;
_level0.testFontStyle.push(f);
// --------------------------------------------
f = {};
f.styleName = "Handwriting in red";
f.font = "_myfont2";
f.size = 15;
f.color = 0x990000;
_level0.testFontStyle.push(f);
// --------------------------------------------
f = {};
f.styleName = "bigger Handwr. in blue";
f.font = "_myfont2";
f.size = 20;
f.color = 0x003399;
_level0.testFontStyle.push(f);
// --------------------------------------------
f = {};
f.styleName = "HUGE Handwr.in pink";
f.font = "_myfont2";
f.size = 45;
f.color = 0xD906F0;
_level0.testFontStyle.push(f);
// --------------------------------------------
f = {};
f.styleName = "The bubble Bumblebees";
f.font = "_myfont1";
f.size = 22;
f.color = 0x003333;
_level0.testFontStyle.push(f);
</pre>
<p><strong>Step 3: Export fonts.swf and upload it to the server</strong></p>
<ol>
<li>Export fonts.swf for (ActionScript 2!) and upload it into the folder &#8220;login&#8221; on your server.</li>
</ol>
<p>Login the CMS and test it. It should look similar to this (of course with your chosen fonts).</p>
<p><img class="alignnone size-full wp-image-491" title="texteditor" src="http://www.flashcmsframework.com/wp-content/uploads/texteditor.jpg" alt="texteditor" width="536" height="308" /><br />
<strong>Step 4: Create the FLA that loads this content</strong></p>
<p>First, we will create the &#8220;fonts_as3.swf&#8221;. In this SWF the fonts are embedded for global use all over your website. Create 3 fonts in the library with the settings as shown in this screenshot below.</p>
<p><img class="alignnone size-full wp-image-506" title="fonts_as3" src="http://www.flashcmsframework.com/wp-content/uploads/fonts_as3.jpg" alt="fonts_as3" width="546" height="429" /></p>
<p><strong>Step 6: Register the fonts in AS3</strong></p>
<pre class="brush: php;">

Font.registerFont(_myfont1);
Font.registerFont(_myfont2);
Font.registerFont(_myfont3);

import net.kaegi.utils.VarCentral;
var fonts:Array = [];
fonts[0] = ["_myfont1","Bumblebee"];
fonts[1] = ["_myfont2","JanicesHand Regular"];
fonts[2] = ["_myfont3","Gadget"];
VarCentral.getInstance().vars.fontsForCMS = fonts;
</pre>
<p>In the code above you can see that I use a little class, &#8220;VarCentral&#8221;. This comes in very handy if you want to store any variables in a central place because you may need them somewhere else in your site. It&#8217;s up to you to also use this or do the handling of global vars in your preferred way. The array &#8220;fonts&#8221; will later be used to replace all occurences of &#8220;_myfontX&#8221; in the html textfields of the CMS with the corresponding real fonts. This method is very useful, because you are able to change fonts without disturbing the saved html text.</p>
<p><strong>Step 7: Create the SWF that loads the CMS slots</strong></p>
<p><a href="http://www.flashcmsframework.com/downloads/turtlebite_flash_cms_example_embed_fonts.zip">Please download this FLAs</a>. I have commented everything so it should be self-explanatory. It also contains the font_as3.fla. Note that you may have to adjust it to your own fonts.</p>
<p>Below just a reminder that the Flash CMS backend is written in AS2 and your website is written in AS3:</p>
<p><img class="alignnone size-full wp-image-509" title="fonts_as2_as3.001" src="http://www.flashcmsframework.com/wp-content/uploads/fonts_as2_as3.001.jpg" alt="fonts_as2_as3.001" width="536" height="242" /></p>
<p>.</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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/&amp;title=How+to+use+your+own+fonts+and+textstyles+in+the+Flash+CMS" 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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/&amp;title=How+to+use+your+own+fonts+and+textstyles+in+the+Flash+CMS" 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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/&amp;title=How+to+use+your+own+fonts+and+textstyles+in+the+Flash+CMS&amp;desc=This%20first%20tutorial%20will%20cover%20a%20very%20basic%20requirement%20of%20the%20Flash%20CMS%3A%20defining%20different%20fonts%20and%20font%20styles.%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AI%20assume%20you%20have%20downloaded%20and%20installed%20the%20Flash%20CMS%20and%20everything%20works%20fine%20so%20far.%20You%27ve%20tested%20and%20played%20around%20with%20it%20and%20now%20want%20to%20take%20the%20next%20steps.%0D%0A%0D%0ASt" 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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/&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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/&amp;bm_description=How+to+use+your+own+fonts+and+textstyles+in+the+Flash+CMS&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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/&amp;title=How+to+use+your+own+fonts+and+textstyles+in+the+Flash+CMS" 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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/&amp;title=How+to+use+your+own+fonts+and+textstyles+in+the+Flash+CMS" 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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/&amp;title=How+to+use+your+own+fonts+and+textstyles+in+the+Flash+CMS" 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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/" 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=How+to+use+your+own+fonts+and+textstyles+in+the+Flash+CMS+-+http://b2l.me/afrdnn&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/how-to-use-your-own-fonts-and-textstyles-in-the-flash-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

