<?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>CODEISPOETRY &#187; general</title>
	<atom:link href="http://www.alexmil.de/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexmil.de</link>
	<description></description>
	<lastBuildDate>Fri, 10 Jun 2011 13:10:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Facebook App sourcecode</title>
		<link>http://www.alexmil.de/facebook-app-sourcecode/</link>
		<comments>http://www.alexmil.de/facebook-app-sourcecode/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 08:11:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[app]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.alexmil.de/?p=838</guid>
		<description><![CDATA[After beeing asked to publish my sourcecode for the ImageViewer app – here it is:
ImageViewer.zip
Notes:

free to use
no warranty
no documentation
osx zip (might cause package problems on win)

]]></description>
			<content:encoded><![CDATA[<p>After beeing asked to publish my sourcecode for the <a href="http://apps.facebook.com/showmypics/" target="_blank">ImageViewer app</a> – here it is:</p>
<p><a href="http://www.alexmil.de/wp-content/ImageViewer.zip">ImageViewer.zip</a></p>
<p>Notes:</p>
<ol>
<li>free to use</li>
<li>no warranty</li>
<li>no documentation</li>
<li>osx zip (might cause package problems on win)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmil.de/facebook-app-sourcecode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embed Font workflow for flash as3</title>
		<link>http://www.alexmil.de/embed-font-workflow-for-flash-as3/</link>
		<comments>http://www.alexmil.de/embed-font-workflow-for-flash-as3/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 22:44:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.alexmil.de/?p=752</guid>
		<description><![CDATA[Martin, a good friend of mine, wrote a great blog post about font handling. He created an ant task which creates a font class / swf. What&#8217;s so cool about it? You can load fonts, and dont have to compile them every time, like [Embed ...] does.
I just had some trouble because I misspelled the [...]]]></description>
			<content:encoded><![CDATA[<p>Martin, a good friend of mine, wrote <a href="http://blog.formatlos.de/2009/08/19/create-font-swfs-easily-in-fdt/" target="_blank">a great blog post about font handling</a>. He created an ant task which creates a font class / swf. What&#8217;s so cool about it? You can load fonts, and dont have to compile them every time, like [Embed ...] does.</p>
<p>I just had some trouble because I misspelled the font :O. Here is a <a href="http://www.communitymx.com/content/article.cfm?page=2&amp;cid=67A61" target="_blank">loop</a> which traces all the registered font names and solved my really stupid fault. And here is a example how you embed a registered font.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> fontLoader : Loader = <span style="color: #000000; font-weight: bold;">new</span> Loader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> lInf : LoaderInfo = fontLoader.<span style="color: #006600;">contentLoaderInfo</span>;
lInf.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, onFontLoaded<span style="color: #66cc66;">&#41;</span>;
&nbsp;
fontLoader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Verdana.swf&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onFontLoaded<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span> : Event<span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span> 
<span style="color: #66cc66;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">var</span> tf : <span style="color: #0066CC;">TextFormat</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
 tf.<span style="color: #0066CC;">font</span> = <span style="color: #ff0000;">&quot;FONTNAME&quot;</span>;
&nbsp;
 <span style="color: #000000; font-weight: bold;">var</span> tfield : <span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
 tfield.<span style="color: #006600;">defaultTextFormat</span> = tf;
 tfield.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;Martin rocks!&quot;</span>;
&nbsp;
 <span style="color: #000000; font-weight: bold;">var</span> embeddedFonts : <span style="color: #0066CC;">Array</span> = <span style="color: #0066CC;">Font</span>.<span style="color: #006600;">enumerateFonts</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;
 <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i : <span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">0</span>;i <span style="color: #66cc66;">&amp;</span>lt; embeddedFonts.<span style="color: #0066CC;">length</span>; i++<span style="color: #66cc66;">&#41;</span>
 <span style="color: #66cc66;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">var</span> item : <span style="color: #0066CC;">Font</span> = embeddedFonts<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;
 <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>
 <span style="color: #ff0000;">&quot;[&quot;</span> + i + <span style="color: #ff0000;">&quot;] name:&quot;</span> + item.<span style="color: #006600;">fontName</span> + 
 <span style="color: #ff0000;">&quot;, style: &quot;</span> + item.<span style="color: #006600;">fontStyle</span> + 
 <span style="color: #ff0000;">&quot;, type: &quot;</span> + item.<span style="color: #006600;">fontType</span>
 <span style="color: #66cc66;">&#41;</span>;
 <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.alexmil.de/embed-font-workflow-for-flash-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handling Javascript in AS3</title>
		<link>http://www.alexmil.de/handling-javascript-in-as3/</link>
		<comments>http://www.alexmil.de/handling-javascript-in-as3/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 12:37:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.alexmil.de/?p=733</guid>
		<description><![CDATA[Handling Javascript calls via Actionscript 3 and ExternalInterface is cool. But in larger projects I&#8217;d like to have more controll over it. I spotted some things I didn&#8217;t like:

Via addCallback(&#8221;func&#8221;, asFunc)  &#8211; You can register a function twice
You can&#8217;t see how much js calls / callbacks you&#8217;ve registerd and how often the were called.

So I [...]]]></description>
			<content:encoded><![CDATA[<p>Handling Javascript calls via Actionscript 3 and ExternalInterface is cool. But in larger projects I&#8217;d like to have more controll over it. I spotted some things I didn&#8217;t like:</p>
<ol>
<li>Via addCallback(&#8221;func&#8221;, asFunc)  &#8211; You can register a function twice</li>
<li>You can&#8217;t see how much js calls / callbacks you&#8217;ve registerd and how often the were called.</li>
</ol>
<p>So I wrote a small Singleton class called <a href="../wp-content/JsHandler.as">JsHandler</a> which can deal with that issues. You can register callBacks and do Javascript calls. Furthermore the class provides two methods which report about the calls. A basic Error Handling is implemnted too.</p>
<p><span style="text-decoration: line-through;">I know I did a nasty hack for the &#8230;rest params. But I think it&#8217;s a good Solution for the problem. Noone needs more than 6 params in a Javascript function ;)</span></p>
<p><strong>Update</strong><span style="text-decoration: line-through;">:<br />
</span></p>
<p>Thanks to <a href="http://lab9.fr/" target="_blank">lab9</a> for the apply and unshift hint. Now you can push as much params as you want to. I updated the class. The trick is:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// function name (string)</span>
args.<span style="color: #0066CC;">unshift</span><span style="color: #66cc66;">&#40;</span>jsFunctionName<span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// ...args</span>
ExternalInterface.<span style="color: #0066CC;">call</span>.<span style="color: #0066CC;">apply</span><span style="color: #66cc66;">&#40;</span>instance, args<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Here is the Democode:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">JsHandler.<span style="color: #006600;">addCallBack</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;sendToAs&quot;</span>, fromJs<span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// Second one causes error (same name)</span>
JsHandler.<span style="color: #006600;">addCallBack</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;sendToAs&quot;</span>, fromJs<span style="color: #66cc66;">&#41;</span>;    
&nbsp;
<span style="color: #808080; font-style: italic;">// returns the js return value as string</span>
JsHandler.<span style="color: #006600;">doCall</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;sendToJs2&quot;</span>, <span style="color: #ff0000;">&quot;p1&quot;</span>, <span style="color: #ff0000;">&quot;p2&quot;</span><span style="color: #66cc66;">&#41;</span>;
JsHandler.<span style="color: #006600;">doCall</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;sendToJs2&quot;</span>, <span style="color: #ff0000;">&quot;p1&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// returns array of all callbacks</span>
JsHandler.<span style="color: #006600;">allCallBacks</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// returns array with all methodnames</span>
<span style="color: #808080; font-style: italic;">// and call amount</span>
JsHandler.<span style="color: #006600;">allCalls</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>The class is just roughly tested and <strong>might contain errors</strong>. If you&#8217;ve any feedback or questions don&#8217;t hesitate to ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmil.de/handling-javascript-in-as3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>from now on: pagepointer</title>
		<link>http://www.alexmil.de/from-now-on-pagepointer/</link>
		<comments>http://www.alexmil.de/from-now-on-pagepointer/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 09:40:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.alexmil.de/?p=584</guid>
		<description><![CDATA[I decided to create a new category: impressive well executed sites I really really like. In short a category called &#8220;pagepointer&#8221;
]]></description>
			<content:encoded><![CDATA[<p>I decided to create a new category: impressive well executed sites I really really like. In short a category called &#8220;pagepointer&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmil.de/from-now-on-pagepointer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I wordled myself.</title>
		<link>http://www.alexmil.de/i-wordled-myself/</link>
		<comments>http://www.alexmil.de/i-wordled-myself/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 09:21:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[art]]></category>
		<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.alexmil.de/?p=563</guid>
		<description><![CDATA[In case you don&#8217;t know, checkout http://www.wordle.net/. I found it yesterday night reasearching something I can&#8217;t remember ;) So my lastfm account and blog looks like this. For lastfm wordle go here


]]></description>
			<content:encoded><![CDATA[<p>In case you don&#8217;t know, checkout <a href="http://www.wordle.net/" target="_blank">http://www.wordle.net/</a>. I found it yesterday night reasearching something I can&#8217;t remember ;) So my lastfm account and blog looks like this. For lastfm wordle go <a href="http://www.mastergiraffe.com/index.php/music/turn-your-lastfm-profile-into-a-wordle-image/" target="_blank">here</a></p>
<p><a href="http://www.alexmil.de/wp-content/wordle_music.jpg"><img class="alignnone size-full wp-image-573" title="wordle_music" src="http://www.alexmil.de/wp-content/wordle_music.jpg" alt="wordle_music" width="400" height="227" /></a></p>
<p><a href="http://www.alexmil.de/wp-content/wordle_blog.jpg"><img class="alignnone size-full wp-image-572" title="wordle_blog" src="http://www.alexmil.de/wp-content/wordle_blog.jpg" alt="wordle_blog" width="400" height="227" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmil.de/i-wordled-myself/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Huge Support for no-kids.org</title>
		<link>http://www.alexmil.de/huge-support-for-no-kidsorg/</link>
		<comments>http://www.alexmil.de/huge-support-for-no-kidsorg/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 19:14:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.alexmil.de/?p=446</guid>
		<description><![CDATA[Here&#8217;s a list of recent no-kids.org articles:

http://blog.jvm-neckar.de/&#8230;
http://zulu.heuserkampf.com/&#8230;
http://www.damnyeah.de/&#8230;
http://spyd.de/blog/&#8230;
http://www.joomlaportal.de/&#8230;
http://0211.tumblr.com/&#8230;

Thank you so much for twittering, blogging and supporting a good thing
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a list of recent no-kids.org articles:</p>
<ul>
<li><a href="http://blog.jvm-neckar.de/2009/07/03/no-kidsorg/" target="_blank">http://blog.jvm-neckar.de/&#8230;</a></li>
<li><a href="http://zulu.heuserkampf.com/2009/07/02/no-kids-org-gegen-kinderpornos/" target="_blank">http://zulu.heuserkampf.com/&#8230;</a></li>
<li><a href="http://www.damnyeah.de/board/extern/no-kids-1084/1/" target="_blank">http://www.damnyeah.de/&#8230;</a></li>
<li><a href="http://spyd.de/blog/2009/07/no-kidsorg/" target="_blank">http://spyd.de/blog/&#8230;</a></li>
<li><a href="http://www.joomlaportal.de/off-topic/190038-aktiv-gegen-kinder-ographie-2.html" target="_blank">http://www.joomlaportal.de/&#8230;</a></li>
<li><a href="http://0211.tumblr.com/post/134657242/no-kids-org" target="_blank">http://0211.tumblr.com/&#8230;</a></li>
</ul>
<p>Thank you so much for twittering, blogging and supporting a good thing</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmil.de/huge-support-for-no-kidsorg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Help fighting childporn. no-kids.org</title>
		<link>http://www.alexmil.de/help-fighting-childporn-now/</link>
		<comments>http://www.alexmil.de/help-fighting-childporn-now/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 09:12:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[creative]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[hot]]></category>
		<category><![CDATA[idea]]></category>

		<guid isPermaLink="false">http://www.alexmil.de/?p=430</guid>
		<description><![CDATA[Today we launched a project I&#8217;m really proud of. A website that works against childporn.How does it work? You can find detailed info on no-kids.org.

Here is a summary:
You&#8217;re trusting an applet. This applet works like a limewire / frostwire client. It fakes files &#8211; pretending you&#8217;ve childporn on your pc, which you DON&#8217;T have! When [...]]]></description>
			<content:encoded><![CDATA[<p>Today we launched a project I&#8217;m really proud of. A website that works against childporn.How does it work? You can find detailed info on no-kids.org.</p>
<p><img class="alignnone size-full wp-image-433" title="blogpost-nokids" src="http://www.alexmil.de/wp-content/blogpost-nokids.jpg" alt="" width="400" height="345" /></p>
<p><strong>Here is a summary:</strong></p>
<p>You&#8217;re trusting an <a href="http://de.wikipedia.org/wiki/Java-Applet" target="_blank">applet</a>. This applet works like a <a href="http://de.wikipedia.org/wiki/Limewire" target="_blank">limewire</a> / frostwire client. It fakes files &#8211; pretending you&#8217;ve childporn on your pc, which you DON&#8217;T have! When a <a href="http://de.wikipedia.org/wiki/P%C3%A4dophil" target="_blank">pedophile</a> searches or tries to download such a file our website gets informed and visualises the query / download.</p>
<p>We just want to visualise the density of childporn usage, NOT where &#8220;these people&#8221; are located (tracking the exact position is not possible &#8211; and hopefully never will). The downloader/pedophile &#8211; downloads a fake file which PROVIDES HELP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmil.de/help-fighting-childporn-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bloc Party</title>
		<link>http://www.alexmil.de/bloc-party/</link>
		<comments>http://www.alexmil.de/bloc-party/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 20:15:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.alexmil.de/?p=408</guid>
		<description><![CDATA[i&#8217;ve seen them live in hamburg. And you should see them aswell ;)

]]></description>
			<content:encoded><![CDATA[<p>i&#8217;ve seen them live in hamburg. And you should see them aswell ;)</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/m5lfl36Vqh0&#038;hl=de&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/m5lfl36Vqh0&#038;hl=de&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmil.de/bloc-party/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

