<?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>Michael Fretz - Interaction Designer &#187; ActionScript</title>
	<atom:link href="http://www.michaelfretz.com/tag/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelfretz.com</link>
	<description>Interaction Design Studium Blog</description>
	<lastBuildDate>Wed, 21 Jul 2010 09:43:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migros Terra Suisse &#8211; Who Is Muh</title>
		<link>http://www.michaelfretz.com/2010/07/10/migros-terra-suisse-who-is-muh/</link>
		<comments>http://www.michaelfretz.com/2010/07/10/migros-terra-suisse-who-is-muh/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 10:17:42 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Webapplikation]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[migros]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=3228</guid>
		<description><![CDATA[The last couple of weeks I had the possibility to work for Jung von Matt, one of the leading advertisement agencies in Europe. I worked on different small projects but mainly on the Migros Terra Suisse Microsite &#8220;Who is Muh&#8221;.
What is &#8220;Who is Muh&#8221;?
&#8220;Who is Muh&#8221; is an interactive platform for the Migros brand Terra [...]]]></description>
			<content:encoded><![CDATA[<p>The last couple of weeks I had the possibility to work for <a href="http://www.jvm.ch" target="_blank">Jung von Matt</a>, one of the leading advertisement agencies in Europe. I worked on different small projects but mainly on the <a href="http://www.migros.ch/DE/Supermarkt/Engagement/TerraSuisse/Seiten/TerraSuisseTiere.aspx" target="_blank">Migros Terra Suisse Microsite &#8220;Who is Muh&#8221;</a>.</p>
<p><strong>What is &#8220;Who is Muh&#8221;?</strong><br />
&#8220;Who is Muh&#8221; is an interactive platform for the Migros brand Terra Suisse. This interactive site shows different animals from the Terra Suisse program and explains what each animal does and how the animals are being treated and raised by their farmers.</p>
<p><img class="alignnone size-full wp-image-3243" title="migros_terrasuisse" src="http://www.michaelfretz.com/wp-content/uploads/2010/06/migros_terrasuisse2.jpg" alt="" width="578" height="419" /></p>
<p><span id="more-3228"></span></p>
<p><strong>Terra Suisse Animals and there Language</strong><br />
In the section animals and their language each animal explains briefly how they are being treated and what they do all day long. Each animal explains some things about its live and the environment it grows up in.</p>
<p><img class="alignnone size-full wp-image-3233" title="terrasuisse_animal_music" src="http://www.michaelfretz.com/wp-content/uploads/2010/06/terrasuisse_animal_music.jpg" alt="" width="580" height="439" /></p>
<p><strong>Muh Mix</strong><br />
The Muh Mix is a game like part of the site. Per drag and drop users can place animals into a play-list and arrange the order of the animal voices. If a user is happy with his choice he can play the song he created, share it on Facebook or send it through an email to his friends. If a user thinks the song he just made is great he can download it as an mp3 or m4r (iPhone Ring-tone format).</p>
<p><img class="alignnone size-full wp-image-3234" title="terrasuisse_animal_sound_1" src="http://www.michaelfretz.com/wp-content/uploads/2010/06/terrasuisse_animal_sound_1.jpg" alt="" width="580" height="439" /></p>
<p><img class="alignnone size-full wp-image-3235" title="terrasuisse_animals_sound" src="http://www.michaelfretz.com/wp-content/uploads/2010/06/terrasuisse_animals_sound.jpg" alt="" width="580" height="439" /></p>
<p><strong>iPhone App</strong><br />
In addition to this site there is an iPhone app, available on the iTunes Store. Install it and enjoy cute animals on your phone.</p>
<p><img class="alignnone size-full wp-image-3236" title="terrasuisse_iphone" src="http://www.michaelfretz.com/wp-content/uploads/2010/06/terrasuisse_iphone.jpg" alt="" width="580" height="439" /></p>
<p><strong>Coding Base</strong><br />
The hole application is build in Object Oriented AS3. I was able to apply some design patterns in this app, for example I applied the singelton pattern on the objects that store the data in the application. This enabled me easy access to all my data from anywhere in the application.. Everything language related is saved in XML and dynamicaly loaded by the migros website. The platform runs on a FreeBSD server managed by my own Company <a href="http://www.cubera.ch" target="_blank">Cubera Solutions GmbH</a>. For generating the mp3 and m4r we created a php script which concatted the different small animal sound fragments to one mp3 file and for the secondary download option as m4r we used ffmpeg to convert.</p>
<p><img class="alignnone size-full  wp-image-3237" title="terrasuisse_tellafriend" src="http://www.michaelfretz.com/wp-content/uploads/2010/06/terrasuisse_tellafriend.jpg" alt="" width="580" height="439" /></p>
<p><img class="alignnone size-full wp-image-3239" title="iPhoneApp" src="http://www.michaelfretz.com/wp-content/uploads/2010/06/iPhoneApp.jpg" alt="" width="580" height="439" /></p>
<p><strong>Looking back</strong><br />
After finishing this project I&#8217;m very happy with it. All requested functionality could be built even-though we didn&#8217;t know if it is possible in the first place. The site works quite good and its cute and fun to play with it.<br />
Many thanks to Claude Ebersold from <a href="http://www.jvm.ch" target="_blank">Jung von Matt</a> for providing all the cute graphics and for pushing me to work all day and night. Also thanks to Nadja Holdener for helping us where-ever help was needed, for creating many of the animations, and especially for learning and handling SVN so quickly. A special thank goes to Matthias Adolf for leading the project and letting me be part of it. Thank you all!</p>
<p><strong>Try it</strong><br />
You can try this application <a href="http://www.migros.ch/DE/Supermarkt/Engagement/TerraSuisse/Seiten/TerraSuisseTiere.aspx" target="_blank">here</a> (german)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2010/07/10/migros-terra-suisse-who-is-muh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spot the Dogference</title>
		<link>http://www.michaelfretz.com/2010/04/07/spot-the-dogference/</link>
		<comments>http://www.michaelfretz.com/2010/04/07/spot-the-dogference/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 11:31:57 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Internship USA]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Almer/Blank]]></category>
		<category><![CDATA[internship]]></category>
		<category><![CDATA[pureMVC]]></category>
		<category><![CDATA[USA]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=3184</guid>
		<description><![CDATA[
Last week, Spot the Dogference  came online as a public beta. Time to write a blog post about this project I worked on during my internship at Almer/Blank.
What is this game?
Spot the Dogference is an online game of spot the difference featuring pictures of dogs. It has 3 levels and one bonus level. You can [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-3186" title="spotthedogference01" src="http://www.michaelfretz.com/wp-content/uploads/2010/04/spotthedogference01.png" alt="" width="580" height="91" /></p>
<p>Last week, Spot the Dogference  came online as a public beta. Time to write a blog post about this project I worked on during my internship at Almer/Blank.</p>
<p><strong>What is this game?</strong></p>
<p>Spot the Dogference is an online game of spot the difference featuring pictures of dogs. It has 3 levels and one bonus level. You can share your score on twitter and it will be displayed on the spot the dogference website.<span id="more-3184"></span></p>
<p><img class="alignnone size-full wp-image-3188" title="spotthedogference03" src="http://www.michaelfretz.com/wp-content/uploads/2010/04/spotthedogference03.png" alt="" width="580" height="388" /></p>
<p><img class="alignnone size-full wp-image-3187" title="spotthedogference02" src="http://www.michaelfretz.com/wp-content/uploads/2010/04/spotthedogference02.png" alt="" width="580" height="387" /></p>
<p>The game itself is built in Actionscript 3 with the <a href="http://www.puremvc.org/" target="_blank">pureMVC</a> framework. It uses <a href="https://www.mochimedia.com/" target="_blank">MocciAds</a> and the <a href="http://blog.swfjunkie.com/2009/12/tweetr-lib-reaches-v1-0b/" target="_blank">Twitter API</a> from Sandro (SWFJunkie)<br />
I contributed in some parts to this game which was originally build by different developers from<a href="http://almerblank.com/" target="_blank"> Almer/Blank.</a></p>
<p><a href="http://spotthedogference.com/" target="_blank">Play it now</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2010/04/07/spot-the-dogference/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Terminal For Tracing In Actionscript Projects</title>
		<link>http://www.michaelfretz.com/2010/02/21/using-terminal-for-tracing-in-actionscript-projects/</link>
		<comments>http://www.michaelfretz.com/2010/02/21/using-terminal-for-tracing-in-actionscript-projects/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 18:40:44 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=3149</guid>
		<description><![CDATA[
I think all of you know how to use trace in a flash project therefore I will target only on how to set up an easy tracing environment. I use terminal to display my traces on my Mac. I think this is an convenient way if you work on a dual screen environment. What do [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-3151" title="traceinterminal" src="http://www.michaelfretz.com/wp-content/uploads/2010/02/traceinterminal1.jpg" alt="traceinterminal" width="580" height="114" /></p>
<p>I think all of you know how to use trace in a flash project therefore I will target only on how to set up an easy tracing environment. I use terminal to display my traces on my Mac. I think this is an convenient way if you work on a dual screen environment. What do you need to do?<br />
<span id="more-3149"></span>1) Install a Debug Flash Player on your Mac. (<a href="http://www.adobe.com/support/flashplayer/downloads.html" target="_blank">http://www.adobe.com/support/flashplayer/downloads.html</a>)<br />
2) Go to your home directory on your computer (in my case: /Users/<span>itz</span>/)<br />
3) Check if a file called: &#8220;mm.<span>cfg</span>&#8221; exist<br />
4) If not create one and open it<br />
5) Write this code into the mm.<span>cfg</span> file and make sure the path to the <span>TraceOutPutFileName</span> actually goes to a file called <span>flashlog</span>.<span>txt</span>:</p>
<p><span>TraceOutPutFileName</span>=/Users/<span>itz</span>/Library/Preferences/<span>Macromedia</span>/Flash Player/Logs/<span>flashlog</span>.<span>txt</span><br />
<span>ErrorReportingEnable</span>=1<br />
<span>TraceOutputFileEnable</span>=1<br />
<span>MaxWarnings</span>=100</p>
<p>6) Save the file and close it.<br />
7) Start Terminal<br />
8) Type following and make sure the path to the files are the correct paths of your system and press ENTER: tail -f /Users/<span>itz</span>/Library/Preferences/<span>Macromedia</span>/Flash\ Player/Logs/<span>flashlog</span>.<span>txt</span><br />
8) Start your Flash Project and send out a trace<br />
9) Enjoy working on Flash projects and see traces in your Terminal.<br />
10) Share this post ;)</p>
<p>Tip: If you want to clear your traces press Command K wile your Terminal is active.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2010/02/21/using-terminal-for-tracing-in-actionscript-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My talk at L.A. Flex User Group Meeting in January</title>
		<link>http://www.michaelfretz.com/2010/02/12/my-talk-at-la-flex-user-group-meeting-in-january/</link>
		<comments>http://www.michaelfretz.com/2010/02/12/my-talk-at-la-flex-user-group-meeting-in-january/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 22:41:09 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Internship USA]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[mojofont]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=3139</guid>
		<description><![CDATA[Some of you probably read my article about Font Embedding in Actionscript 3 projects. In the January L.A. Flex User Group meeting, Tom Bray recorded my talk about MojoFont. MojoFont is an Eclipse Plugin for easy Font Embedding in Flex, FDT or Eclipse. It was a good experience to speak to the L.A. Flex group. [...]]]></description>
			<content:encoded><![CDATA[<p>Some of you probably read my article about <a href="http://www.michaelfretz.com/2010/01/12/font-embedding-in-actionscript-projects/">Font Embedding in Actionscript 3 projects</a>. In the January <a href="http://groups.adobe.com/groups/2b6ef91865/summary" target="_blank">L.A. Flex User Group </a>meeting, <a href="http://www.tombray.com/2010/02/l-a-flex-video-embedding-fonts-with-mojofont-with-michael-fretz/" target="_blank">Tom Bray</a> recorded my talk about <a href="http://mojofont.badmojo.ch/" target="_blank">MojoFont</a>. MojoFont is an Eclipse Plugin for easy Font Embedding in Flex, FDT or Eclipse. It was a good experience to speak to the L.A. Flex group. Thank you Tom for letting me a part of it. If you want to see my talk watch this video.<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="580" height="435" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=9411553&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="580" height="435" src="http://vimeo.com/moogaloop.swf?clip_id=9411553&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://www.tombray.com/2010/02/l-a-flex-video-embedding-fonts-with-mojofont-with-michael-fretz/" target="_blank">My talk about MojoFont at L.A. Flex User Group</a></p>
<p>Unfortunately the picture quality is not really good but if you want to know more about Font Embedding with MojoFont read my post about <a href="http://www.michaelfretz.com/2010/01/12/font-embedding-in-actionscript-projects/">Font Embedding in Actionscript 3.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2010/02/12/my-talk-at-la-flex-user-group-meeting-in-january/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Font Embedding in Actionscript Projects</title>
		<link>http://www.michaelfretz.com/2010/01/12/font-embedding-in-actionscript-projects/</link>
		<comments>http://www.michaelfretz.com/2010/01/12/font-embedding-in-actionscript-projects/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 03:12:14 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[mojofont]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=3010</guid>
		<description><![CDATA[While working on Actionscript projects you will have to use fonts quite often. There are many ways how you can embed a font into your project. In this post I will illustrate different ways of how to do that and I would like to demonstrate a very easy way with MojoFont.

Example 1: Font Embedding During [...]]]></description>
			<content:encoded><![CDATA[<p>While working on Actionscript projects you will have to use fonts quite often. There are many ways how you can embed a font into your project. In this post I will illustrate different ways of how to do that and I would like to demonstrate a very easy way with MojoFont.</p>
<p><span id="more-3010"></span></p>
<p><strong>Example 1: Font Embedding During Runtime With SWF</strong><br />
Embedding a font with <span>SWF</span> has the advantage that it can be loaded on run-time. This will make the file size of the start-up application smaller and improves loading times. The font will be only loaded if there is a need for it. You will need to have Adobe Flash CS4 or higher for this example.<br />
1) Open a new <span>Actionscript</span> 3 file in the Flas IDE and save it as American.<span>fla</span><br />
2) Open the action panel and type following:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #000000;">&#91;</span>Embed<span style="color: #000000;">&#40;</span>systemFont=<span style="color: #990000;">&quot;American Typewriter&quot;</span>, <span style="color: #004993;">fontName</span>=<span style="color: #990000;">&quot;American&quot;</span>,
	   mimeType=<span style="color: #990000;">&quot;application/x-font&quot;</span>, unicodeRange=<span style="color: #990000;">&quot;U+0061-U+007A&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> american<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Class</span>;
&nbsp;
<span style="color: #004993;">Font</span>.<span style="color: #004993;">registerFont</span><span style="color: #000000;">&#40;</span>american<span style="color: #000000;">&#41;</span>;</pre></div></div>

<p><strong>systemFont</strong> is the actual name of the font on your system.<br />
<strong>fontName</strong> can be named what ever you want to name it.<br />
<strong>unicodeRange</strong> is used to define the avaible characters.</p>
<p>I used for this example only lowercase characters. You can change the <span>unicodeCharset</span> to add more characters. A good website to generate the required <span>unicode</span> is <a href="http://rishida.net/scripts/uniview/conversion.php" target="_blank">http://rishida.net/scripts/uniview/conversion.php</a></p>
<p>3) Compile the <span>SWF</span>. You will be asked for the Flex <span>SDK</span> Path on your first compile. If you have the Flex SDK press OK and compile again otherwise download first the Flex SDK from <a href='http://opensource.adobe.com/wiki/display/flexsdk/'>opensource.adobe.com/wiki/display/flexsdk</a>. Now you should have a blank <span>SWF</span>.</p>
<p>4) Start a new <span>Actionscript</span> 3 file and save it as <span>Fonttest</span>.<span>fla</span> in the same directory as the other file.<br />
5) Open the action panel and type the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">loader</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Loader</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Loader</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #004993;">loader</span>.<span style="color: #004993;">contentLoaderInfo</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">INIT</span>, fontloaded<span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #004993;">loader</span>.<span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">'AmericanTypewriter.swf'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> fontloaded<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> tf<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	tf.<span style="color: #004993;">width</span>			= <span style="color: #000000; font-weight:bold;">400</span>;
	tf.<span style="color: #004993;">embedFonts</span> = <span style="color: #0033ff; font-weight: bold;">true</span>;
	tf.<span style="color: #004993;">defaultTextFormat</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextFormat</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">'American'</span>, <span style="color: #000000; font-weight:bold;">30</span>, 0x000000<span style="color: #000000;">&#41;</span>;
	tf.<span style="color: #004993;">text</span> = <span style="color: #990000;">'hey you'</span>;
	<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>tf<span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>6) Save the file and compile it. You will now load the font from the <span>SWF</span>.</p>
<p>This example is based on the video tutorial from Lee <span>Brimelow</span>. Make sure that you watch his video Tutorial at <a href="http://gotoandlearn.com/play?id=102" target="_blank">http://gotoandlearn.com/play?id=102</a> to dive deeper into loading fonts with external <span>SWF</span>.</p>
<p><a href="http://michaelfretz.com/wp-content/uploads/2010/01/FontEmbeddinginFlash.zip">Download Sourcecode including FLA</a></p>
<p><strong>Example 2: Font Embedded In Flash.</strong></p>
<p>Using the [Embed] tag: The font needs to be accessible in your Actionscript project during compile time.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">AntiAliasType</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextField</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextFormat</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> FontEmbeddingEmbedTag extends <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #000000;">&#91;</span>Embed<span style="color: #000000;">&#40;</span><span style="color: #004993;">source</span>=<span style="color: #990000;">&quot;Arial.ttf&quot;</span>, fontFamily=<span style="color: #990000;">&quot;foo&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> bar<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Class</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> FontEmbeddingEmbedTag<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> format<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextFormat</span>              = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextFormat</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			format.<span style="color: #004993;">font</span>                      = <span style="color: #990000;">&quot;foo&quot;</span>;
			format.<span style="color: #004993;">color</span>                = 0xFFFFFF;
			format.<span style="color: #004993;">size</span>                 = <span style="color: #000000; font-weight:bold;">30</span>;
&nbsp;
			<span style="color: #6699cc; font-weight: bold;">var</span> label<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextField</span>         = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">TextField</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			label.<span style="color: #004993;">embedFonts</span>            = <span style="color: #0033ff; font-weight: bold;">true</span>;
			label.<span style="color: #004993;">width</span>                    = <span style="color: #000000; font-weight:bold;">300</span>
			label.<span style="color: #004993;">defaultTextFormat</span>     = format;
			label.<span style="color: #004993;">text</span>                  = <span style="color: #990000;">&quot;Hi michaelfretz.com!&quot;</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>label<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p><a href="http://michaelfretz.com/wp-content/uploads/2010/01/FontEmbeddingEmbedTag.zip">Download Sourcecode</a></p>
<p><strong>Example 3: The MojoFont Way</strong><br />
My favorite way of embedding a font into an Actionscript project is using MojoFont.<br />
You may ask, what is MojoFont? MojoFont is an Eclipse Plugin for embedding Fonts, developed by Philipp Laeubli. MojoFont is still in private beta but will be released soon as a public beta.</p>
<p><strong>Example 3.1: Embedding A Single Font For Basic Textfields With MojoFont</strong><br />
<strong>1)</strong> Apply for a private beta account at <a href="http://mojofont.badmojo.ch/" target="_blank">http://mojofont.badmojo.ch</a> and install it as soon as you get the url for the eclipse update-site.<br />
<strong>2)</strong> Start Flex or FDT and open a new or existing Actionscript 3 project.</p>
<p><img class="alignnone size-full wp-image-3028" title="MojoFontTutorial01" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial01.png" alt="MojoFontTutorial01" width="580" height="225" /></p>
<p><strong>3)</strong> Go to File -&gt; Import -&gt;Other</p>
<p><img class="alignnone size-full wp-image-3029" title="MojoFontTutorial02" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial02.png" alt="MojoFontTutorial02" width="580" height="499" /></p>
<p><strong>4)</strong> Choose MojoFont -&gt; Import and convert Font</p>
<p><img class="alignnone size-full wp-image-3030" title="MojoFontTutorial03" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial03.png" alt="MojoFontTutorial03" width="551" height="551" /></p>
<p><strong>5)</strong> For the First Tutorial we choose the import mode: &#8220;Import a font with a single style&#8221;. This option will allow us to use only one style of th font. A single style font can not be used for HTML textfield. You can make a font bold or italic but to do that you have to import the font with &#8220;import font with multiple font style&#8221;. I will show the import of fonts for HTML textfield in the next example further down.</p>
<p><img class="alignnone size-full wp-image-3031" title="MojoFontTutorial04" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial04.png" alt="MojoFontTutorial04" width="549" height="319" /></p>
<p><strong>6)</strong> Choose a font you want to use and press &#8220;Next &gt;&#8221;.</p>
<p><img class="alignnone size-full wp-image-3033" title="MojoFontTutorial05" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial05.png" alt="MojoFontTutorial05" width="550" height="770" /></p>
<p><img class="alignnone size-full wp-image-3034" title="MojoFontTutorial06" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial06.png" alt="MojoFontTutorial06" width="550" height="769" /><br />
<strong>7)</strong> Select a location in your project where the compiled SWC should be saved. The path to this SWC will be automatically added to your project properties and if you decide to delete a font you have to delete this path too. (Right-click on your project name-&gt;Properties-&gt;Actionscript Build path-&gt;Library path) For the Charset Range we use &#8220;Default / All&#8221;. If you only need some caracters and want to keep the filesize low you can change the settings to &#8220;Predefined&#8221; or &#8220;Custom&#8221;.</p>
<p><img class="alignnone size-full wp-image-3035" title="MojoFontTutorial07" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial07.png" alt="MojoFontTutorial07" width="551" height="771" /><br />
<strong>8)</strong> A quick example how to use it will be shown before you press Finish.</p>
<p><img class="alignnone size-full wp-image-3036" title="MojoFontTutorial08" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial08.png" alt="MojoFontTutorial08" width="550" height="770" /></p>
<p><strong>9)</strong> This is how your Sourcecode should look like if you want to embed a font with MojoFont.</p>
<p><img class="alignnone size-full wp-image-3038" title="MojoFontTutorial09" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial09.png" alt="MojoFontTutorial09" width="580" height="200" /></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextField</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> MojoFontBasic01 extends <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> MojoFontBasic01<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> txt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> 	= ComicSansMSRegular.createTextField<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			txt.<span style="color: #004993;">text</span>		= <span style="color: #990000;">'Hi michaelfretz.com'</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>txt<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p><strong>10)</strong> The compiled version will look like that</p>
<p><img class="alignnone size-full wp-image-3037" title="MojoFontTutorial10" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial10.png" alt="MojoFontTutorial10" width="514" height="211" /></p>
<p><a href="http://michaelfretz.com/wp-content/uploads/2010/01/MojoFontBasic01.zip">Download Sourcecode</a></p>
<p><strong>Example 3.2: Same As Before But With TextFormat</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextField</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextFormat</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> MojoFontBasic02 extends <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> MojoFontBasic02<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> txtFormat<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextFormat</span> 	= ComicSansMSRegular.createTextFormat<span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">20</span><span style="color: #000000;">&#41;</span>;
			txtFormat.<span style="color: #004993;">color</span>			= 0xff8c00;
			txtFormat.<span style="color: #004993;">kerning</span>		= <span style="color: #000000; font-weight:bold;">2</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> txt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextField</span>		= ComicSansMSRegular.createTextField<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			txt.<span style="color: #004993;">defaultTextFormat</span>		= txtFormat;
			txt.<span style="color: #004993;">text</span>			= <span style="color: #990000;">'hi michaelfretz.com'</span>;
			txt.<span style="color: #004993;">selectable</span>			= <span style="color: #0033ff; font-weight: bold;">false</span>;
			txt.<span style="color: #004993;">width</span>			= <span style="color: #000000; font-weight:bold;">300</span>;
			txt.<span style="color: #004993;">rotation</span>			= <span style="color: #000000; font-weight:bold;">20</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>txt<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p><a href="http://michaelfretz.com/wp-content/uploads/2010/01/MojoFontBasic02.zip">Download Sourcecode</a></p>
<p><strong>Example 3.3: Text As HTML Textfield</strong></p>
<p>If you want to use HTML text with your MojoFont import, you need to use &#8220;Import multiple Font Style&#8221; instead of &#8220;Import a font with a single style&#8221;. This will bring you up this window.<strong><br />
</strong></p>
<p><strong><img class="alignnone size-full wp-image-3048" title="MojoFontTutorial11" src="http://www.michaelfretz.com/wp-content/uploads/2010/01/MojoFontTutorial11.png" alt="MojoFontTutorial11" width="548" height="770" /></strong></p>
<p>You can choose for all styles a suitable font. You can even mix fonts in a HTML textfield. The rest will be more or less the same. Here the sourcecode.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextField</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> MojoFontAdv01 extends <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> MojoFontAdv01<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> txt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextField</span> = Helvetica.createTextField<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			txt.<span style="color: #004993;">htmlText</span> = <span style="color: #990000;">'&lt;strong&gt;Hi&lt;/strong&gt; &lt;em&gt;michael&lt;/em&gt; fretz'</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>txt<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p><a href="http://michaelfretz.com/wp-content/uploads/2010/01/MojoFontAdv01.zip">Download Sourcecode</a></p>
<p><strong>Example 3.4: HTML Text Same As Before But With TextFormat</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextField</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextFormat</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> MojoFontAdv02 extends <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> MojoFontAdv02<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> txtFormat<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextFormat</span>	= Helvetica.createTextFormat<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			txtFormat.<span style="color: #004993;">size</span>				= <span style="color: #000000; font-weight:bold;">20</span>;
			txtFormat.<span style="color: #004993;">color</span>				= 0xff8c00;
			txtFormat.<span style="color: #004993;">underline</span>			=  <span style="color: #0033ff; font-weight: bold;">true</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> txt<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">TextField</span>			= Helvetica.createTextField<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			txt.<span style="color: #004993;">defaultTextFormat</span>		= txtFormat;
&nbsp;
			txt.<span style="color: #004993;">multiline</span>				= <span style="color: #0033ff; font-weight: bold;">true</span>;
			txt.<span style="color: #004993;">width</span>					= <span style="color: #000000; font-weight:bold;">300</span>;
			txt.<span style="color: #004993;">wordWrap</span>				= <span style="color: #0033ff; font-weight: bold;">true</span>;
			txt.<span style="color: #004993;">rotation</span>				= <span style="color: #000000; font-weight:bold;">30</span>;
			txt.<span style="color: #004993;">htmlText</span>				= <span style="color: #990000;">'&lt;strong&gt;hi&lt;/strong&gt;
&lt;em&gt;michaelfretz.com&lt;/em&gt;'</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>txt<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p><a href="http://michaelfretz.com/wp-content/uploads/2010/01/MojoFontAdv02.zip">Download Sourcecode</a></p>
<p><strong>Live Demo</strong></p>
<p>If you want to see a live demo of MojoFont join me at the <a href="http://groups.adobe.com/groups/2b6ef91865/summary" target="_blank">LA Flex User Group</a> meeting in Santa Monica <span title="GMT-8 Pacific Time US &amp; Canada">January 13, 2010 from 7:00pm &#8211; 10:00pm where I will held a short presentation about MojoFont. </span>We meet at 12304 Santa Monica Blvd, Suite 215A. California, USA.</p>
<p>or</p>
<p>Join us for the Los Angeles Flash User Group meeting on January 20, 2010 at 525 Venezia Ave.  Venice, CA 90291 <a href="http://www.laflash.org">www.laflash.org</a> where I will talk about FontEmbedding in Actionscript projects.</p>
<p><strong>Thanks</strong></p>
<p>Many special thank to Philipp Laeubli who is the developer and founder of MojoFont. Please visit his project <a href="http://mojofont.badmojo.ch/" target="_blank">website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2010/01/12/font-embedding-in-actionscript-projects/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Book review: Foundation ActionScript 3.0 Image Effects</title>
		<link>http://www.michaelfretz.com/2009/12/09/book-review-foundation-actionscript-3-0-image-effects/</link>
		<comments>http://www.michaelfretz.com/2009/12/09/book-review-foundation-actionscript-3-0-image-effects/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 20:33:15 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=3003</guid>
		<description><![CDATA[This book is one of my favorite Actionscript books. The author writes in an understandable and clear way. The examples are on topic and clear in the understanding. The book covers a wide variety of different aspects in the use of image effects and image processing in Actionscript 3. The target audience are definitely not [...]]]></description>
			<content:encoded><![CDATA[<p>This book is one of my favorite Actionscript books. The author writes in an understandable and clear way. The examples are on topic and clear in the understanding. The book covers a wide variety of different aspects in the use of image effects and image processing in Actionscript 3. The target audience are definitely not for beginners or coders new to Actionscript, but for coders with medium or more advanced level. This book is definitely worth your time to dive into and gives you a lot of new ideas. <span id="more-3003"></span>For instance, what you can do with your web-cam, images or other visual projects. One part of it I really like is the explanation of the mathematical aspect of this topic. I wish my math teacher would have explained it as well as this book ;)<br />
I haven&#8217;t finished the entire book yet and I&#8217;m exited to read the rest.<br />
<img class="alignnone size-full wp-image-3004" title="Actionscript 3.0 Image Effects" src="http://www.michaelfretz.com/wp-content/uploads/2009/12/actionscript3imageeffects.jpg" alt="Actionscript 3.0 Image Effects" width="300" height="359" /></p>
<p><a href="http://www.amazon.com/Foundation-ActionScript-Image-Effects-Foundations/dp/1430218711/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1260390903&amp;sr=8-1">buy it here.</a></p>
<p>If you want to support me visit my <a href="http://www.amazon.com/gp/registry/wishlist/28B1PBGHJC7X">wishlist</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2009/12/09/book-review-foundation-actionscript-3-0-image-effects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ribbit Workshop</title>
		<link>http://www.michaelfretz.com/2009/10/14/ribbit-workshop/</link>
		<comments>http://www.michaelfretz.com/2009/10/14/ribbit-workshop/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 06:57:54 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Internship USA]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AlmerBlankLab]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[VOIP]]></category>
		<category><![CDATA[Workshop]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=2942</guid>
		<description><![CDATA[Add Communication to your Applications with Ribbit

On Sunday, October 4th, I had the change to visit a workshop about the Ribbit mobile service at the Rich Media Institute in Venice. I could see some examples how to build a Text message application in Flex or Flash and saw different ways to build a phone application. [...]]]></description>
			<content:encoded><![CDATA[<p>Add Communication to your Applications with Ribbit</p>
<p><a href="http://www.ribbit.com/" target="_blank"><img class="alignnone size-full wp-image-2943" title="Ribbit" src="http://www.michaelfretz.com/wp-content/uploads/2009/10/397368540.png" border="0" alt="Ribbit" width="101" height="38" /></a></p>
<p>On Sunday, October 4<span>th</span>, I had the change to visit a workshop about the <span>Ribbit</span> mobile service at the Rich Media Institute in Venice. I could see some examples how to build a Text message application in Flex or Flash and saw different ways to build a phone application. The combination between <span>Actionscript</span> 3 and a telephone system is quite interesting and I see a great potential in it.</p>
<p><span id="more-2942"></span></p>
<p>The only problem with <span>Ribbit</span> is that they currently only in the USA operate. As soon as they will have other branches in Europe it could be a very interesting alternative to other <span>VOIP</span> systems because it can be build in Flash and integrated in many devices and websites. <span>Ribbit</span> offers many possibilities like Google Voice. A message to Text function is currently one of the coolest feature they have and I look forward to see whats the new version is going to bring.</p>
<p>If you think Ribbit might be a solution for you, contact me. I would like to build a Ribbit application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2009/10/14/ribbit-workshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hype Framework Workshop</title>
		<link>http://www.michaelfretz.com/2009/10/13/hype-framework-workshop/</link>
		<comments>http://www.michaelfretz.com/2009/10/13/hype-framework-workshop/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 01:01:10 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Internship USA]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AlmerBlankLab]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=2893</guid>
		<description><![CDATA[Just before Adobe Max I had the opportunity to visit the Joshua Davis workshop about the  HYPE Framework. The HYPE-framework is a easy framework for creating digital art. It makes it easy to build computer based art in Actionscript 3. Josh is a very outgoing and super friendly person. All of us had really good [...]]]></description>
			<content:encoded><![CDATA[<p>Just before Adobe Max I had the opportunity to visit the Joshua Davis workshop about the  HYPE Framework. The HYPE-framework is a easy framework for creating digital art. It makes it easy to build computer based art in <span>Actionscript</span> 3. Josh is a very outgoing and super friendly person. All of us had really good fun with him. We build a couple of examples with the HYPE framework which was build <span>by Branden</span> Hall and Joshua Davis.<br />
<span id="more-2893"></span> Some of them I would like to show you here:</p>
<p><strong>Object Pool Example</strong></p>
<p><object type="application/x-shockwave-flash" data="http://www.michaelfretz.com/wp-content/uploads/2009/10/HYPEObjectPool.swf" width="580" height="300" class="embedflash"><param name="movie" value="http://www.michaelfretz.com/wp-content/uploads/2009/10/HYPEObjectPool.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object></p>
<p><strong>Sound analyzer.</strong><br />
Press on the Speaker to turn on the sound.</p>
<p><object type="application/x-shockwave-flash" data="http://www.michaelfretz.com/wp-content/uploads/2009/10/HYPEsound.swf" width="580" height="100" class="embedflash"><param name="movie" value="http://www.michaelfretz.com/wp-content/uploads/2009/10/HYPEsound.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object></p>
<p>Music by Ratatat</p>
<p>More information about the HYPE Framework on</p>
<p><a href="http://hype.joshuadavis.com" target="_blank">http://hype.joshuadavis.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2009/10/13/hype-framework-workshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to avoid caching of XML-files in Actionscript projects</title>
		<link>http://www.michaelfretz.com/2009/08/22/how-to-avoid-caching-of-xml-files-in-actionscript/</link>
		<comments>http://www.michaelfretz.com/2009/08/22/how-to-avoid-caching-of-xml-files-in-actionscript/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 15:28:03 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=2796</guid>
		<description><![CDATA[A wile ago I had a problem with external XML files loaded in to my Actionscript project. Some browser always used an older version of my XML and didn&#8217;t reload it every time I reloaded the page. An easy way to avoid this is the following solution:

As you can see I added to the string [...]]]></description>
			<content:encoded><![CDATA[<p>A wile ago I had a problem with external XML files loaded in to my Actionscript project. Some browser always used an older version of my XML and didn&#8217;t reload it every time I reloaded the page. An easy way to avoid this is the following solution:<br />
<img class="alignnone size-full wp-image-2797" title="avoid caching in xml" src="http://www.michaelfretz.com/wp-content/uploads/2009/08/avoidcachinginxml.png" alt="avoid caching in xml" width="560" height="407" /><br />
As you can see I added to the string of the path a question mark and a random number. Every time the page is reloaded it generates a new path to the XML file. The only changes are behind  the question mark and will not affect the XML file</p>
<p><a href="http://www.michaelfretz.com/wp-content/uploads/2009/08/XMLwithoutCaching_as.zip">Download the XMLwithoutCaching.as File</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2009/08/22/how-to-avoid-caching-of-xml-files-in-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Visualization with AS3.0, Tween Lite, MojoFont, PHP 5 and MySQL</title>
		<link>http://www.michaelfretz.com/2009/08/20/xml-visualization-with-as30-tween-lite-mojofont-php-5-and-mysql/</link>
		<comments>http://www.michaelfretz.com/2009/08/20/xml-visualization-with-as30-tween-lite-mojofont-php-5-and-mysql/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 11:26:33 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Interface Design]]></category>
		<category><![CDATA[mojofont]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tween lite]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/?p=2740</guid>
		<description><![CDATA[One of the main reason I use Actionscript 3.0 is to create data visualization. Most times the data is saved in a XML or database. Therefore I would like to show you some parts of of a recently developed program.
Here is an example of the final result.
(Please open the article to see the flash file [...]]]></description>
			<content:encoded><![CDATA[<p>One of the main reason I use Actionscript 3.0 is to create data visualization. Most times the data is saved in a XML or database. Therefore I would like to show you some parts of of a recently developed program.<br />
Here is an example of the final result.</p>
<p><object type="application/x-shockwave-flash" data="http://www.michaelfretz.com/wp-content/uploads/2009/08/Hagedorn_Organigramm.swf" width="580" height="600" class="embedflash"><param name="movie" value="http://www.michaelfretz.com/wp-content/uploads/2009/08/Hagedorn_Organigramm.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object></p>
<p><span id="more-2740"></span></p>
<p><strong>Font Embedding</strong></p>
<p>Because most time you visualize data you need to write some text to it. If you have done any pure ActionScript projects in Flex or FDT you know this stuff sucks. The resulting code looks like this and it takes hours of googling to get to the right embed parameters/tags.</p>
<p><img class="alignnone size-full wp-image-2742" title="Font embedding" src="http://www.michaelfretz.com/wp-content/uploads/2009/08/fontembeddingoldfashinway.jpg" alt="Font embedding" width="580" height="185" /></p>
<p>But now the way of font handling in Actionscript changed. My colleague Philipp Laeubli created a plugin for eclipse which makes font embedding a piece of cake. If your interested in this, just apply for a private beta account on <a href="http://mojofont.badmojo.ch" target="_blank">mojofont.badmojo.ch</a>.<br />
Here a little example how to embed a font with the mojofont plugin.<br />
<img class="alignnone size-full wp-image-2743" title="Font embedding with mojofont" src="http://www.michaelfretz.com/wp-content/uploads/2009/08/fontembeddingeasyway.png" alt="Font embedding with mojofont" width="425" height="178" /></p>
<p>Instead of writing a whole bunch of metacode and doing some strange font registration, you import your font, and then you can use ist like this: Helvetica.createTextField(). Thats it. All the nasty embedding code and other things are completely handled by the plugin which generates a simple to use and embed swc file.</p>
<p><strong>Tweening</strong><br />
For the hole tweening I used the tweenlite library from <a href="http://blog.greensock.com/tweenliteas3/" target="_blank">http://blog.greensock.com/tweenliteas3/</a>. In my opinion it is one of the best tweening libarys and very easy to use.</p>
<p><strong>XML Loading</strong><br />
I wrote a XMLLoader class. The XMLLoader class loads the hole data of the XML into a String. As soon as its finishes with loading, it dispatches an event. With the getter methods its easy to recive the data and use it afterwards in your programm.</p>
<p><img class="alignnone size-full wp-image-2749" title="xmlloader1" src="http://www.michaelfretz.com/wp-content/uploads/2009/08/xmlloader1.jpg" alt="xmlloader1" width="512" height="554" /></p>
<p><strong>PHP File to generate XML</strong><br />
Many of you will ask why I id use XML. In my opinion its the easiest way of recieving data and its easy to generate it from a database. To generate the XML file I developed a PHP file. This file connects to a MySQL database and loads the whole content of the defined table.  At the moment you will have to define the used fields by hand. First of all, be sure you have all the needed fields in your database. Afterwards change the values in the begin of the mysqlToXML.php file. You have two options. 1: Make the PHP file look like an XML after loading it or 2: let it generate an external file. The first one is the better way if you change often data but dont have to many visitors. The option with the external file is a good option if you want to save database connections because you only ned to generate the XML file once you have changed some data. If you use the external XML file option, be sure that you have the write permission set on your webspace. After you generated your XML just make sure your XML loader class in your Actionscript project knows the path to the file. If you use the other option just add the path of the mysqlToXML.php in your Actionscript project.<br />
<a href="http://www.michaelfretz.com/wp-content/uploads/2009/08/mysqlToXML.zip">Download mysqlToXML.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2009/08/20/xml-visualization-with-as30-tween-lite-mojofont-php-5-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash at the Lake</title>
		<link>http://www.michaelfretz.com/2009/05/23/flash-at-the-lake/</link>
		<comments>http://www.michaelfretz.com/2009/05/23/flash-at-the-lake/#comments</comments>
		<pubDate>Sat, 23 May 2009 13:10:37 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Konferenz]]></category>
		<category><![CDATA[Swiss Flash User Group]]></category>
		<category><![CDATA[Veranstaltung]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2009/05/23/flash-at-the-lake/</guid>
		<description><![CDATA[Zur Abwechslung mal kein Projekt von mir sondern ein Anlass welcher ich hiermit gerne unterstützen möchte.
Vom 26 Juni bis 27 Juni 2009 findet in Zürich eine Schweizer Flash User Konferenz statt.
Flash at the Lake.

Neben diversen lokalen Speakers sind auch internationale Vertreter anwesend.
Während zwei Tagen zeigt uns die Elite ihres Gebietes was mit Flash möglich ist [...]]]></description>
			<content:encoded><![CDATA[<p>Zur Abwechslung mal kein Projekt von mir sondern ein Anlass welcher ich hiermit gerne unterstützen möchte.<br />
Vom 26 Juni bis 27 Juni 2009 findet in Zürich eine Schweizer Flash User Konferenz statt.</p>
<p><strong>Flash at the Lake.</strong><br />
<a href="http://www.fatl.ch"><img src="http://fatl.ch/banners/fatl_button1_180x60.gif" border="0" alt="Flash at the Lake" width="180" height="60" /></a></p>
<p>Neben diversen lokalen Speakers sind auch internationale Vertreter anwesend.<br />
Während zwei Tagen zeigt uns die Elite ihres Gebietes was mit Flash möglich ist und geben gute Inputs für zukünftige Projekte. Auch Workshops und eine Party dürfen an einem solchen Anlass nicht fehlen.<br />
Ich würde mich freuen wenn möglichst viele von euch kommen werden.<br />
Tickets und weitere Informationen gibt es auf <a href="http://www.fatl.ch">www.fatl.ch</a><br />
PS: Wenn es nicht gerade aus Kübeln giesst sollten die Badehosen nicht vergessen werden, denn die Location befindet sich direkt am schönen Zürichsee</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2009/05/23/flash-at-the-lake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LichtON &#8211; Lichtsteuerungssoftware</title>
		<link>http://www.michaelfretz.com/2009/02/27/lichton-lichtsteuerungssoftware/</link>
		<comments>http://www.michaelfretz.com/2009/02/27/lichton-lichtsteuerungssoftware/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 15:42:59 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Visualisierung]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2009/02/27/lichton-lichtsteuerungssoftware/</guid>
		<description><![CDATA[Der Hintergrund
Dieses Projekt hat in Zusammenarbeit mit der Nimbus-Group in Stuttgart stattgefunden. Dort befindet sich auch das Nimbus Mock-Up, ein Simulationsbereich, auf welchem auf über 1500m2 die Produkte von Nimbus präsentiert werden. In Zusammenarbeit mit GIRA wurde für das Mock-Up ein Gebäudesteuerungssystem installiert, über welches primär das Licht der gesamten Ausstellungsfläche geregelt werden kann. Diese [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Der Hintergrund</strong><br />
Dieses Projekt hat in Zusammenarbeit mit der Nimbus-Group in Stuttgart stattgefunden. Dort befindet sich auch das Nimbus Mock-Up, ein Simulationsbereich, auf welchem auf über 1500m2 die Produkte von Nimbus präsentiert werden. In Zusammenarbeit mit GIRA wurde für das Mock-Up ein Gebäudesteuerungssystem installiert, über welches primär das Licht der gesamten Ausstellungsfläche geregelt werden kann. Diese Steuerung wird mittels eines Touchscreens bedient, welchem unser Interesse galt.<br />
<strong>Das Ziel</strong><br />
Das Ziel des Projekts war die Entwicklung eines Navigationskonzepts und die Gestaltung eines entsprechenden GUI‘s für den Touchscreen. Damit sollte vor allem sämtliches Licht im ganzen Mock-Up gesteuert werden können. Das heisst, vom ganzen Stockwerk über einzelne Räume bis hin zu einzelnen Leuchten sollte die Lichtstimmung detailliert regelbar sein. Optional war auch die Steuerung weiterer Komponenten wie Audioquellen, Jalousien etc. denkbar. Das GUI sollte zudem an das CorporateDesign von Nimbus angepasst werden und sich gut ins Mock-Up einfügen. Und zu guter letzt gilt es auch noch zu erwähnen, dass die beste Arbeit prämiert wurde: für jeden Gewinner gab es eine Nimbus Leuchte &#8220;Line Z&#8221;.<br />
<strong>Projekt</strong><br />
Das Projekt LichtOn baut auf eine simple Bedienung, auf die Einfachheit des An/Aus eines Lichtschalters. Der Fokus unserer Arbeit liegt in der Schlichtheit und Usability des Programms. So zeigt sich beispielsweise der Startscreen auch gern schlicht, mit nichts weiter als einigen wählbaren Voreinstellungen in Form von simplen Buttons, welche mit einem einzigen Klick das ganze Mock-Up auf die gewünschte Helligkeit einstellen.</p>
<p>Die Hauptnavigation befindet sich diskret am unteren Bildschirmrand. Das Konzept sieht ausserdem als wichtigen Punkt vor, dass bei jedem Schritt nur die Interaktionselemente sichtbar sind, welche gerade benutzt werden können oder sonst von Bedeutung sind, indem sie beispielsweise auf etwas hinweisen. So werden die Elemente im Bild auf ein Minimum reduziert und die Übersichtlichkeit und Bedienbarkeit auf ein Maximum angehoben.</p>
<p>Grafisch ist unser Design den von der Firma Nimbus vermittelten sinnlichen Erfahrungen angepasst. Die verschiedenen Elemente sind in ihrer milchglasig/metallischen Erscheinung der Konnotation der beiden meist genutzten Materialien von Nimbus angepasst.</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2009/02/lichton_startscreen.jpg" alt="LichtOn Startscreen" /></p>
<p>Startscreen</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2009/02/lichton_karteubersicht2.jpg" alt="LichtON Kartenübersicht" /></p>
<p>Kartenübersicht</p>
<p><a title="LichtOn Dokumentation (PDF 2.3MB)" href="http://www.michaelfretz.com/wp-content/uploads/2009/02/lichton-dokumentation.pdf">LichtOn Dokumentation (PDF 2.3MB)</a></p>
<p><a href="http://code.google.com/p/hs08-nimbus/">SourceCode auf Google Code http://code.google.com/p/hs08-nimbus/</a></p>
[See post to watch Flash video]
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2009/02/27/lichton-lichtsteuerungssoftware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vorlesungsverzeichnis XML AS3</title>
		<link>http://www.michaelfretz.com/2009/01/13/vorlesungsverzeichnis-xml-as3/</link>
		<comments>http://www.michaelfretz.com/2009/01/13/vorlesungsverzeichnis-xml-as3/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 15:14:45 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Interaktion]]></category>
		<category><![CDATA[Visualisierung]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2009/01/13/vorlesungsverzeichnis-xml-as3/</guid>
		<description><![CDATA[Im Modul: Digitaler Modulbau 3 lernten wir die Grundlagen des XML Handlings. Dazu haben wir das Vorlesungsverzeichnis der Zürcher Hochschule der Künste neu visualisiert. Die Unterschiedlichen XML Dateien werden dynamisch vom Server der ZHdK in das Projekt geladen.

Vorlesungsverzeichnis nachdem das Departement XML geladen ist.

Übersicht der Module welche in einer Vertiefung angeboten werden. Durch dir Pfeile [...]]]></description>
			<content:encoded><![CDATA[<p>Im Modul: Digitaler Modulbau 3 lernten wir die Grundlagen des XML Handlings. Dazu haben wir das Vorlesungsverzeichnis der Zürcher Hochschule der Künste neu visualisiert. Die Unterschiedlichen XML Dateien werden dynamisch vom Server der ZHdK in das Projekt geladen.</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2009/01/vorlesungsverzeichnis_preview1.png" alt="Vorlesungsverzeichnis XML Visualisierung Übersicht Departemente" /></p>
<p>Vorlesungsverzeichnis nachdem das Departement XML geladen ist.</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2009/01/vorlesungsverzeichnis_preview3.png" alt="Vorlesungsverzeichnis XML Visualisierung Modulanzeige" /></p>
<p>Übersicht der Module welche in einer Vertiefung angeboten werden. Durch dir Pfeile kann durch die Module durchgeblättert werden.</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2009/01/vorlesungsverzeichnis_preview4.png" alt="Vorlesungsverzeichnis XML Visualisierung Modul Details" /></p>
<p>Anzeige eines Moduls.</p>
<p>Zur Programmierung:</p>
<p>Die Dokumentklasse fungiert als Viewer und Controller. Alle Elemente werden hier plaziert. Je nach dem was geklickt wird, entscheidet die Dokumentklasse welches XML geladen werden soll.</p>
<p>Die XML Loaderklasse kann jedes beliebige XML laden. Sind die Daten geladen wird ein Dispatch Event ausgeschossen. Über get Methoden werden Name und Daten zurück geliefert.</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2009/01/xmlloader.jpg" alt="XML Loader" /></p>
<p>Auszug aus der XML Loaderklasse</p>
<p>Die XML Manager Klasse bekommt die Daten aus der XML Loaderklasse. Die erhaltenen Daten werden in einen Array gespeichert und anschliessend wird ein Dispatch Event ausgeschossen.</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2009/01/xmlmanager.jpg" alt="XML Manager" /></p>
<p>Auszug aus der XML Manager Klasse</p>
<p>URL zur Demo: <a href="http://vorlesungsverzeichnis.michaelfretz.com/">http://vorlesungsverzeichnis.michaelfretz.com </a></p>
<p>Download <a title="Flex Projekt des Vorlesungsverzeichnis" href="http://www.michaelfretz.com/wp-content/uploads/2009/01/vorlesungsverzeichnisvisualisierung.zip">Flex Projekt des Vorlesungsverzeichnis</a> (104 KB)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2009/01/13/vorlesungsverzeichnis-xml-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multilineare Stories 2.0 :-)</title>
		<link>http://www.michaelfretz.com/2009/01/06/multilineare-stories-20/</link>
		<comments>http://www.michaelfretz.com/2009/01/06/multilineare-stories-20/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 10:37:21 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Multilineare Stories]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2009/01/06/multilineare-stories-20/</guid>
		<description><![CDATA[zweimal.ch ist eine Onlineplattform, auf welcher Mutilineare Stories gelesen und geschrieben werden können
Auf dieser Webseite können einerseits verschiedene Multilineare Stories gelesen werden. Dies Funktioniert so: Man wählt zuerst eine Geschichte aus und liest deren ersten Textblock. Sodann kann man zwischen mehreren verschiedenen Antworten wählen, welche zu unterschiedlichen weiteren Textblöcken führen. So kann man die Handlung [...]]]></description>
			<content:encoded><![CDATA[<p>zweimal.ch ist eine Onlineplattform, auf welcher Mutilineare Stories gelesen und geschrieben werden können<br />
Auf dieser Webseite können einerseits verschiedene Multilineare Stories gelesen werden. Dies Funktioniert so: Man wählt zuerst eine Geschichte aus und liest deren ersten Textblock. Sodann kann man zwischen mehreren verschiedenen Antworten wählen, welche zu unterschiedlichen weiteren Textblöcken führen. So kann man die Handlung der Geschichte, welche man gerade am lesen ist, selbst beeinflussen. Und auch wenn man dieselbe Geschichte nochmals von Anfang zu lesen beginnt, kann durch nur eine einzige anderst gewählte Antwort die Handlung völlig von der vorhergehenden abweichen.</p>
<p>Des weitere kann man eine bereits bestehende Geschichte beliebig erweitern.</p>
<p class="Stil1">Dies geht so: kommt man an einen Punkt, an welchem die Geschichte nicht mehr weitergeht oder möchte man bei einem Textblock eine weitere Antwort einfügen, wechselt man durch klick auf &#8220;Editiermodus&#8221; in den Editiermodus. Sodann kann man eine weitere Auswahlmöglichkeit hinzufügen, das heisst, man schreibt als erstes eine neue Frage. Danach kann man per DropDown entweder einen neuen Textblock erstellen oder einen bereits bestehenden verwenden.<br />
Erstellt man einen neuen Textblock sollte man einen Titel und anschliessend den eigenen Text eingeben. Ist dies geschehen, können wiederum neue Auswahlmöglichkeiten hinzugefügt werden, und man beginnt von vorne.</p>
<p>Zudem kann zu jedem Textblock ein Bild raufgeladen werden.</p>
<p>Die Webseite ist im Rahmen des Moduls Storytelling an der ZHdK enstanden. Die Gruppenmitglieder waren: Mario von Rickenbach, Michael Fretz, Tobias Koller, Gabriel Süess, Dondup Shelkar und Phillipe Meier.<br />
URL: <a href="http://www.zweimal.ch">www.zweimal.ch </a></p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2009/01/zweimal_ch_multilinearestories02.jpg" alt="multilineare stories 2.0" />Ansichtmodus</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2009/01/zweimal_ch_multilinearestories021.jpg" alt="Multilineare Stories 2.0 :-)" /><br />
Ansicht Editiermodus</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2009/01/06/multilineare-stories-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sommerferien sind vorbei</title>
		<link>http://www.michaelfretz.com/2008/09/18/sommerferien-sind-vorbei/</link>
		<comments>http://www.michaelfretz.com/2008/09/18/sommerferien-sind-vorbei/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 14:48:13 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2008/09/18/sommerferien-sind-vorbei/</guid>
		<description><![CDATA[Lange ist es her seit meinem letzten Eintrag. Doch es ist viel passiert in der Zwischenzeit. Das zweite Semester gehört nun zur Vergangenheit und das dritte hat auch schon angefangen.
Während meiner mehr als drei Monaten Sommerferien habe ich mich intensiv mit dem programmieren auseinander gesetzt. Zum einen habe ich ein kleines Game programmiert welches ich [...]]]></description>
			<content:encoded><![CDATA[<p>Lange ist es her seit meinem letzten Eintrag. Doch es ist viel passiert in der Zwischenzeit. Das zweite Semester gehört nun zur Vergangenheit und das dritte hat auch schon angefangen.<br />
Während meiner mehr als drei Monaten Sommerferien habe ich mich intensiv mit dem programmieren auseinander gesetzt. Zum einen habe ich ein kleines Game programmiert welches ich hier bald veröffentlichen werde, zum anderen habe ich ein Praktikum bei „dctrl Interactive Media and Motion Graphics“ absolviert. Doch was macht man in so einen Praktikum? Ich habe gleich zu Beginn mit PHP programmieren angefangen. Als Aufgabe sollte ich ein Bug Tracking System programmieren wo man Fehler über ein einfaches Formular mit Fileupload eintragen kann. Das ganze musste selbstverständlich in Objekt Orientiertem Programmierten PHP5 und auch gegen Angriffe sicher programmiert sein. Formularvalidierung musste serverseitig und clientseitig geschehen. Im Backend des BugTracking Systems musste eine Liste mit allen Bugs generiert werden, die Bugs mussten gelöscht, modifiziert und Personen zugewiesen werden können. Um ein solches System zu erstellen habe ich verschiedene PHP Klasse erstellt welche ich im Anschluss des Projektes auch noch für andere Programme verwenden konnte. Ich habe alles von Grund auf programmiert und keine bestehenden Elemente verwendet da es mir sehr wichtig war, dass alles was ich mache und brauche auch wirklich verstehe. Da ich mein Praktikum ja in einer auf Flash spezialisierten Firma gemacht habe galt es natürlich das ganze Bug Tracking noch in Flash bzw. Action Script 3 in OOP umzusetzen. Auch das wollte mir gelingen. So konnte ich stolz am letzen Tag auf ein kleines Programm zurück schauen welches in Action Script und PHP zusammen mit MySQL programmiert ist und im Zusammenspiel reibungslos funktionierte. Im Grossen und Ganzen kann man sagen das ich die Zeit bei dctrl sehr genossen habe und es mir Spass gemacht hat, viele neue Dinge zu lernen und mit einem guten Team zusammen zu arbeiten.<br />
Wenn ich die Zeit finde bzw. ein Bedürfnis besteht ein Fileupload Script in Action Script3 hier als Tutorial zu erhalten werde ich ein solches schreiben. Im Internet findet man dazu leider nicht viel taugliches. Den SourceCode meiner Arbeit werde ich hier nicht veröffentlichen da dies mein Vertrag nicht erlaubt.<br />
Mitte August war mein Praktikum dann aber leider auch schon wieder zu Ende den ich wollte noch ein wenig Reisen gehen. Da ich noch nie in Asien war beschloss ich nach Indonesien zu fliegen und dort Lombok und Bali ein wenig genauer anzuschauen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2008/09/18/sommerferien-sind-vorbei/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interface Dynamics</title>
		<link>http://www.michaelfretz.com/2008/05/28/interface-dynamics/</link>
		<comments>http://www.michaelfretz.com/2008/05/28/interface-dynamics/#comments</comments>
		<pubDate>Wed, 28 May 2008 16:10:47 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Interface Design]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2008/05/28/interface-dynamics/</guid>
		<description><![CDATA[
GUI des Adressbuchs
Das Adressbuch basiert auf einer Art Laufrad und einer Schnellwahl über Buchstaben auf der oberen Seite des Mobiltelefons. Das Laufrad kann mittels eines verschiebens der Schaltflächen mit dem Finger bewegt werden. Je nachdem wie schnell die Bewegung ist läuft das Laufrad schneller oder weniger schnell und rastet jeweils ein wenn das Laufrad kurz [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.michaelfretz.com/wp-content/uploads/2008/05/new_htc_interface_01.jpg" alt="New HTC Interface von Michael Fretz" /></p>
<p><strong>GUI des Adressbuchs</strong><br />
Das Adressbuch basiert auf einer Art Laufrad und einer Schnellwahl über Buchstaben auf der oberen Seite des Mobiltelefons. Das Laufrad kann mittels eines verschiebens der Schaltflächen mit dem Finger bewegt werden. Je nachdem wie schnell die Bewegung ist läuft das Laufrad schneller oder weniger schnell und rastet jeweils ein wenn das Laufrad kurz vor dem Stillstand und eine Schaltfläche im Vordergrund liegt.<br />
Der Übergang zum SMS wird dann über ein Überblend Effekt gelöst.<br />
Von Laufrad aus kann jeweils der Kontakt im Vordergrund angerufen beziehungsweise eine SMS gesendet werden.<br />
Mit der „zurück“ Taste kommt man wieder eine Ebene zurück.</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2008/05/new_htc_interface_02.jpg" alt="New HTC Interface von Michael Fretz" /></p>
<p><strong>GUI der SMS Eingabe</strong><br />
Die SMS Eingabe erfolgt über eine QWERTZ Tastatur. Wird ein Buchstabe gedrückt wird der Button grösser und der Buchstabe wird auf dem Textbereich dargestellt.<br />
Neben den Buchstaben werden noch alle Zahlen angezeigt.<br />
Die Buttongrösse der einzelnen Tasten habe ich auf einem iPod Touch getestet. Die einzelnen Tasten sind zwar relativ klein, ich bin aber der Meinung das diese dennoch von der Grösse her funktionieren. Für das HTC Handy auf welchem der Prototyp läuft sind die Tasten relativ klein.</p>
<p>Die Space Taste ist die grösste Taste da diese relativ oft verwendet wird.<br />
Farblich habe ich das ganze GUI dunkel gehalten. Dies mit dem Gedanken das viele Portable Geräte über einen Akku mit Strom versorgt werden und dieser dadurch weniger belastet wird.</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2008/05/new_htc_interface_03.jpg" alt="New HTC Interface von Michael Fretz" /></p>
<p><strong>Film über die Funktionsweise </strong></p>
[See post to watch Flash video]
<p>PS: Falls noch jemand ein Smartphone gratis abzugeben hat auf dem ich zukünftige Systeme testen kann, würde ich mich sehr darüber freuen.. :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2008/05/28/interface-dynamics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anordnungsübung in ActionScript 3</title>
		<link>http://www.michaelfretz.com/2008/04/12/anordnungsubung-in-actionscript-3/</link>
		<comments>http://www.michaelfretz.com/2008/04/12/anordnungsubung-in-actionscript-3/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 14:39:14 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Interaktion]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2008/04/12/anordnungsubung-in-actionscript-3/</guid>
		<description><![CDATA[(Please open the article to see the flash file or player.)
Weil es seit meinem letzten Actionscript File schon eine Weile her ist habe ich hier mal wieder was erstellt und hochgeladen. Es handelt sich dabei um eine Übung zur Anordnung von Kreisen. Es gibt eine zufällige Anordnung, eine in einem Kreis, eine als quadratische Fläche [...]]]></description>
			<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" data="http://www.michaelfretz.com/wp-content/uploads/2008/04/PosAendern.swf" width="580" height="400" class="embedflash"><param name="movie" value="http://www.michaelfretz.com/wp-content/uploads/2008/04/PosAendern.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object></p>
<p>Weil es seit meinem letzten Actionscript File schon eine Weile her ist habe ich hier mal wieder was erstellt und hochgeladen. Es handelt sich dabei um eine Übung zur Anordnung von Kreisen. Es gibt eine zufällige Anordnung, eine in einem Kreis, eine als quadratische Fläche und eine als Rahmen eines Rechteckes. Die Anzahl der Kreise wie auch die Grösse des Radius sind zufällig gewählt.</p>
<p>Durch drücken der Leertaste oder überfahren der Kreise mit der Maus springt die Anordnung auf die nächste Form.</p>
<p><a href="http://www.michaelfretz.com/wp-content/uploads/2008/04/michaelfretz_com20080412PosAendern.zip">Source zum Downloaden </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2008/04/12/anordnungsubung-in-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamische Sterne</title>
		<link>http://www.michaelfretz.com/2008/01/08/dynamische-sterne/</link>
		<comments>http://www.michaelfretz.com/2008/01/08/dynamische-sterne/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 21:43:06 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2008/01/08/dynamische-sterne/</guid>
		<description><![CDATA[Mit Actionscript 3 einen Stern zu erzeugen machten wir ja schon das letzte Mal. Diesmal habe ich das Script so abgeändert das die Sterne beim Berühren des linken oder rechten Randes jeweils einen Zacken mehr erhalten. Um Zacken wieder los zu werden, muss man einfach irgendwo ins Bild klicken und der Stern fliegt hin und [...]]]></description>
			<content:encoded><![CDATA[<p>Mit Actionscript 3 einen Stern zu erzeugen machten wir ja schon das letzte Mal. Diesmal habe ich das Script so abgeändert das die Sterne beim Berühren des linken oder rechten Randes jeweils einen Zacken mehr erhalten. Um Zacken wieder los zu werden, muss man einfach irgendwo ins Bild klicken und der Stern fliegt hin und verliert einen Zacken. Eine Begrenzung habe ich jeweils bei mindestens 5 und maximal 20 Zacken gesetzt.</p>
<p>Klick ins Bild entfernt Zacken</p>
<p>Leertaste startet neu.<br />
<object type="application/x-shockwave-flash" data="http://www.michaelfretz.com/wp-content/uploads/2008/01/dynstern.swf" width="580" height="400" class="embedflash"><param name="movie" value="http://www.michaelfretz.com/wp-content/uploads/2008/01/dynstern.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object></p>
<p>Download Source Code <a title="2008-01-07-dynstern.zip" href="http://www.michaelfretz.com/wp-content/uploads/2008/01/2008-01-07-dynstern.zip">2008-01-07-dynstern.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2008/01/08/dynamische-sterne/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sternenscript AS3</title>
		<link>http://www.michaelfretz.com/2007/12/22/sternenscript-as3/</link>
		<comments>http://www.michaelfretz.com/2007/12/22/sternenscript-as3/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 18:29:30 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2007/12/22/sternenscript-as3/</guid>
		<description><![CDATA[Jetzt ist ja bald Weinachten
Deshalb hier ein kleines Action Script welches Sterne erstellt, selbstverständlich rein auf Code Basis :-)
Wer sich für die Technik interessiert soll sich doch mal den Quellcode anschauen.
Ich habe wieder mal versucht jede Zeile zu dokumentieren.
Dipl. Inf. Magnus Rembold hat hier eine kleine Skizze aufgezeichnet wie man einen Stern geometrisch berechnen kann.
Ich [...]]]></description>
			<content:encoded><![CDATA[<p>Jetzt ist ja bald Weinachten<br />
Deshalb hier ein kleines Action Script welches Sterne erstellt, selbstverständlich rein auf Code Basis :-)<br />
Wer sich für die Technik interessiert soll sich doch mal den Quellcode anschauen.<br />
Ich habe wieder mal versucht jede Zeile zu dokumentieren.</p>
<p>Dipl. Inf. Magnus Rembold hat hier eine kleine Skizze aufgezeichnet wie man einen Stern geometrisch berechnen kann.</p>
<p>Ich habe mir mal erlaubt diese hier zu zeigen</p>
<p><img src="http://www.michaelfretz.com/wp-content/uploads/2007/12/kreisideemagnus.gif" alt="kreisideemagnus.gif" /></p>
<p>L = Länge<br />
Alpha = Winkelgrösse</p>
<p>Spielregeln gibt’s diesmal ein paar weniger<br />
Leertaste bringt neue Sterne<br />
Mausklick lässt die Sterne zu diesem Punkt hin wandern.</p>
<p><object type="application/x-shockwave-flash" data="http://www.michaelfretz.com/wp-content/uploads/2007/12/sternenhimmel.swf" width="580" height="400" class="embedflash"><param name="movie" value="http://www.michaelfretz.com/wp-content/uploads/2007/12/sternenhimmel.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object></p>
<p><a title="sternhimmel_as3_michaelfretz.zip" href="http://www.michaelfretz.com/wp-content/uploads/2007/12/sternhimmel_as3_michaelfretz.zip">Download Source Code (12kb)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2007/12/22/sternenscript-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kreisspiel (Action Script 3)</title>
		<link>http://www.michaelfretz.com/2007/12/10/kreisspiel-action-script-3/</link>
		<comments>http://www.michaelfretz.com/2007/12/10/kreisspiel-action-script-3/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 18:31:48 +0000</pubDate>
		<dc:creator>Michael Fretz</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Studium]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.michaelfretz.com/2007/12/10/kreisspiel-action-script-3/</guid>
		<description><![CDATA[Seit einigen Wochen beschäftigen wir uns mit Action Script 3 Programmierung.
Ich möchte euch deshalb hier einen kleines Projekt zeigen. Die Bedienung ist recht einfach.  Einen Klick in den Flashbereich fügt jeweils 10 neue Kreise an der Stelle des klickens hinzu. Das Drücken der Leertaste löscht alle Kreise.
Klicken =  Kreise erstellen
Drag and Drop = [...]]]></description>
			<content:encoded><![CDATA[<p>Seit einigen Wochen beschäftigen wir uns mit Action Script 3 Programmierung.</p>
<p>Ich möchte euch deshalb hier einen kleines Projekt zeigen. Die Bedienung ist recht einfach.  Einen Klick in den Flashbereich fügt jeweils 10 neue Kreise an der Stelle des klickens hinzu. Das Drücken der Leertaste löscht alle Kreise.</p>
<p>Klicken =  Kreise erstellen</p>
<p>Drag and Drop = Kreise verschieben</p>
<p>Leertaste = Spielfeld leeren</p>
<p><object type="application/x-shockwave-flash" data="http://www.michaelfretz.com/wp-content/uploads/2007/12/kugelbewegungimfeld.swf" width="580" height="400" class="embedflash"><param name="movie" value="http://www.michaelfretz.com/wp-content/uploads/2007/12/kugelbewegungimfeld.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object></p>
<p>Alle Files sind kommentiert und können von mir aus weiter verwendet werden.</p>
<p><a title="Hier als Zip File downloaden" href="http://www.michaelfretz.com/wp-content/uploads/2007/12/2007-12-12-balldraganddrop.zip">Hier als Zip File downloaden</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelfretz.com/2007/12/10/kreisspiel-action-script-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
