<?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>crusy.net &#187; Flash</title>
	<atom:link href="http://blog.crusy.net/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.crusy.net</link>
	<description>- Established 1979 -</description>
	<lastBuildDate>Thu, 09 Feb 2012 20:46:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>AIR Native Extension für Arduino</title>
		<link>http://blog.crusy.net/2011/12/05/air-native-extension-fur-arduino/</link>
		<comments>http://blog.crusy.net/2011/12/05/air-native-extension-fur-arduino/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 15:28:38 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[ANE]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[Socket]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1735</guid>
		<description><![CDATA[Connecting Arduino Prototyping board to Adobe AIR through an ANE, via]]></description>
			<content:encoded><![CDATA[<p><a title="code.google.com" href="http://code.google.com/p/as3-arduino-connector/" target="_blank">Connecting Arduino Prototyping board to Adobe AIR through an ANE</a>, <a title="Arduino Blog" href="http://arduino.cc/blog/2011/12/05/connecting-your-arduino-to-air-using-an-air-native-extension/" target="_blank">via</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/12/05/air-native-extension-fur-arduino/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AIR Native Extensions mit FDT</title>
		<link>http://blog.crusy.net/2011/10/28/air-native-extensions-mit-fdt/</link>
		<comments>http://blog.crusy.net/2011/10/28/air-native-extensions-mit-fdt/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 10:20:14 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[ANE]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Extension]]></category>
		<category><![CDATA[FDT]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Native Extension]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1693</guid>
		<description><![CDATA[AIR Native Extensions (ANE) erlauben das Verwenden von System-spezifischen Funktionen – hier das Gyroscope. Mit FDT 4.5 verwendet man sie wie folgt: Die .ane-Datei kopieren, und die Kopie in .swc umbenennen. Die .swc wie gewohnt in den Classpath einbinden. In den Projekteigenschaften -&#62; &#8220;FDT Build Path&#8221; -&#62; &#8220;Build Order&#8221; die SWC auswählen, und einen Haken [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Native extensions for Adobe AIR" href="http://www.adobe.com/devnet/air/native-extensions-for-air.html" target="_blank">AIR Native Extensions</a> (ANE) erlauben das Verwenden von System-spezifischen Funktionen – hier <a title="Gyroscope native extension sample" href="http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/gyroscope.html" target="_blank">das Gyroscope</a>. Mit FDT 4.5 verwendet man sie wie folgt:</p>
<ol>
<li>Die .ane-Datei kopieren, und die Kopie in .swc umbenennen.</li>
<li>Die .swc wie gewohnt in den Classpath einbinden.</li>
<li>In den Projekteigenschaften -&gt; &#8220;FDT Build Path&#8221; -&gt; &#8220;Build Order&#8221; die SWC auswählen, und einen Haken bei &#8220;Use as Runtime Shared Code&#8221; setzen.</li>
<li>Die Extension im Description-XML deklarieren: Entgegen der Vorlage der Powerflasher heißt der Knoten nicht &lt;extension&gt;, sondern &lt;extensions&gt;, und sieht für dieses Beispiel wie folgt aus:<br />
&lt;extensions&gt;&lt;extensionID&gt;com.adobe.gyroscope&lt;/extensionID&gt;&lt;/extensions&gt;</li>
<li>Die .ane-Datei im Projekt ablegen, beispielsweise unter /bin/ane/</li>
<li>Im Build-XML (das mit dem ADT-Compiler) folgende Zeilen hinzufügen:<br />
&lt;arg value=&#8221;-extdir&#8221; /&gt;<br />
&lt;arg value=&#8221;../bin/ane&#8221; /&gt;</li>
<li>Kompilieren <img src='http://blog.crusy.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ol>
<p><a title="@flibbi" href="https://twitter.com/#!/flibbi/status/129489733347848193" target="_blank">Tipp</a>, <a title="Using Flash Builder 4.5.1 to compile an AIR App that uses a native extension" href="http://blogs.adobe.com/actionscriptdocs/2011/10/using-flash-builder-4-5-1-to-compile-an-air-app-that-uses-a-native-extension.html" target="_blank">Quelle 1</a>, <a title="Building ADOBE AIR Applications" href="http://help.adobe.com/en_US/air/build/air_buildingapps.pdf" target="_blank">Quelle 2 (PDF)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/10/28/air-native-extensions-mit-fdt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash auf dem iPhone: Eine AIR-Videoplayer-App in FDT 4.5</title>
		<link>http://blog.crusy.net/2011/10/26/flash-auf-dem-iphone-eine-air-videoplayer-app-in-fdt-4-5/</link>
		<comments>http://blog.crusy.net/2011/10/26/flash-auf-dem-iphone-eine-air-videoplayer-app-in-fdt-4-5/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 07:50:36 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[FDT]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Stage3D]]></category>
		<category><![CDATA[StageVideo]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1683</guid>
		<description><![CDATA[Neulich stand ein entsprechendes Projekt auf dem Plan. Meine erste iPhone-App, und meine erste umfangreichere AIR-Anwendung. Hier meine Anmerkungen zum Workflow: Zum Aufsetzen des Projektes in FDT 4.5: Achtung: Der Updater der FDT-Standalone aktualisiert nicht die darunterliegende Eclipse-Version! Ich musste Eclipse 3.6 von Hand installieren, und dann FDT als Plugin drüber Dummer Fehler, hat mich [...]]]></description>
			<content:encoded><![CDATA[<p>Neulich stand ein entsprechendes Projekt auf dem Plan. Meine erste iPhone-App, und meine erste umfangreichere AIR-Anwendung. Hier meine Anmerkungen zum Workflow:</p>
<p>Zum Aufsetzen des Projektes in <a title="www.fdt.powerflasher.com" href="http://www.fdt.powerflasher.com/" target="_blank">FDT</a> 4.5:</p>
<ul>
<li>Achtung: <a title="FDT Blog Archive" href="http://fdt.powerflasher.com/blog/2011/06/today-we-released-another-fdt-4-update-for-free/#comments" target="_blank">Der Updater der FDT-Standalone aktualisiert nicht die darunterliegende Eclipse-Version</a>! Ich musste Eclipse 3.6 von Hand installieren, und dann FDT als Plugin drüber</li>
<li>Dummer Fehler, hat mich aus Gewohnheit aber einige Zeit gekostet: Nicht die Ant-Skripte benutzen, sondern die Launcher unter .settings/launch</li>
</ul>
<p>Zu AIR auf dem iPhone:</p>
<ul>
<li>Evt. muss der Compiler-Parameter -swf-version=11 gesetzt sein. Ohne hatte ich einen 1014 Class not found (<a title="Adobe Forums" href="http://adobe.hosted.jivesoftware.com/message/3339844" target="_blank">Quelle</a>). Damit das übernommen wird, muss ggf. USE_PROJECT_COMPILER_ARGUMENTS auf false stehen</li>
<li>Für mehr Performance: <a title="Setting Up FDT For Air 3 and Flash Player 11" href="http://fdt.powerflasher.com/blog/2011/08/setting-up-fdt-for-air-3-and-flash-player-11/" target="_blank">AIR 3 verwenden</a> (Danke, <a title="Björn Scholl" href="http://www.bscholl.de/" target="_blank">Björn</a>!); wobei ich die playerglobal.swc direkt unter <a title="www.adobe.com/support/flashplayer/downloads.htm" href="http://www.adobe.com/support/flashplayer/downloads.html" target="_blank">www.adobe.com/support/flashplayer/downloads.html</a> gefunden habe</li>
<li>Einen Splashscreen (&#8220;Default.png&#8221;) fügt man im jeweiligen Ant-Script unter &#8220;Files to Package&#8221; unter der SWF ein: &lt;arg value=&#8221;Default.png&#8221; /&gt;<br />
(Damit erklärt sich von selbst, wo man weitere ADT-Parameter hinzufügt). Bei mir liegt das Default.png parallel zur SWF in /bin/</li>
<li>In dem Zusammenhang: Wenn ich die App-Icons in /bin/icons/* liegen habe, dann füge ich die <strong>relativ zu /bin/</strong> im Build-Skript (&lt;arg value=&#8221;icons/icon512.png&#8221; /&gt;) <strong>und</strong> im Descriptorfile (&lt;image512x512&gt;icons/icon512.png&lt;/image512x512&gt;) hinzu</li>
<li>Um die App bei Rückkehr zum Homescreen zu beenden, muss man in der ADL-Decriptor-XML unter iPhone.InfoAdditions &#8220;&lt;key&gt;UIApplicationExitsOnSuspend&lt;/key&gt;&lt;true/&gt;&#8221; hinzufügen (<a title="Adobe Forums: How to quit/exit an iOS app?" href="http://forums.adobe.com/message/3770694" target="_blank">Quelle</a>)</li>
<li>Wer das iPhone 3 und 4 verwenden will, muss unbedingt die unterschiedlichen Auflösungen im Auge behalten! Ich habe es nicht geschafft, einfach die höher aufgelöste SWF auf den kleineren Screen runterzuskalieren, sondern musste im Code darauf reagieren.</li>
</ul>
<p>Zu Video (hier: <a title="LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/StageVideo.html" target="_blank">StageVideo</a>) auf dem iPhone:</p>
<ul>
<li>Ein gutes Tutorial (inkl. Sourcen) von <a title="www.bytearray.org" href="http://www.bytearray.org/" target="_blank">Thibault Imbert</a> für StageVideo gibt es <a title="Getting started with stage video" href="http://www.adobe.com/devnet/flashplayer/articles/stage_video.html" target="_blank">hier</a>.</li>
<li>Für StageVideo-Wiedergabe muss der renderMode (siehe Descriptor-XML) auf &#8220;gpu&#8221; oder &#8220;direct&#8221; stehen – &#8220;auto&#8221; genügt nicht. &#8220;gpu&#8221; verringert aber die Performance der restlichen Anwendung; &#8220;direct&#8221; scheint OK zu sein. (PS: &#8220;direct&#8221; wird im XML-Kommentar nicht erwähnt; <a title="AIR 3 enables hardware decoding of H.264 video in iOS apps" href="http://www.randytroppmann.com/2011/10/07/air-3-enables-hardware-decoding-of-h-264-video-in-ios-apps/" target="_blank">Quelle</a>)</li>
</ul>
<p>Fazit und offene Fragen:</p>
<ul>
<li>Die Performance ist schlechter als nativ, aber absolut OK. Man muss ein wenig darauf achten, wie viel man parallel macht, aber wenn man das weiß, ist AIR eine echte Alternative.</li>
<li>Wenn ich sage &#8220;die Performance ist OK&#8221;, dann meine ich Code, der (abgesehen von StageVideo) nicht optimiert ist! Die Performance ist sicherlich noch besser, wenn man z.B. <a title="LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage3D.html" target="_blank">Stage3D</a> verwendet</li>
<li>Sweet: Bis zum Verpacken in einer IPA hat man ein SWF, was Abstimmungen extrem einfach macht.</li>
<li>Ich habe es nicht geschafft, das StageVideo um 90° zu drehen, was laut verschiedener Quellen möglich ist. Wer einen Tipp hat, immer her damit!</li>
<li>Die gleiche Anwendung müsste auch auf Android exportierbar sein, das habe ich aber noch nicht ausprobiert</li>
</ul>
<p>HTH,</p>
<p>Lennart</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/10/26/flash-auf-dem-iphone-eine-air-videoplayer-app-in-fdt-4-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animierte Tag-Cloud in Flash</title>
		<link>http://blog.crusy.net/2011/09/15/animierte-tag-cloud-in-flash/</link>
		<comments>http://blog.crusy.net/2011/09/15/animierte-tag-cloud-in-flash/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 13:16:26 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Tag Cloud]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WP]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1652</guid>
		<description><![CDATA[Gibt es hier (bzw. hier); die Sourcen liegen hier. Sind auch ganz gut anzupassen, auf dass sie nicht nur mit WP funktionieren]]></description>
			<content:encoded><![CDATA[<p>Gibt es <a title="WP-Cumulus Flash based tag cloud" href="http://www.roytanck.com/2008/03/06/wordpress-plugin-wp-cumulus-flash-based-tag-cloud/" target="_blank">hier</a> (bzw. <a title="How to repurpose my tag cloud Flash movie" href="http://www.roytanck.com/2008/05/19/how-to-repurpose-my-tag-cloud-flash-movie/" target="_blank">hier</a>); die Sourcen liegen <a title="plugins.svn.wordpress.org" href="http://plugins.svn.wordpress.org/wp-cumulus/" target="_blank">hier</a>. Sind auch ganz gut anzupassen, auf dass sie nicht nur mit WP funktionieren</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/09/15/animierte-tag-cloud-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3: Webcam-Zugriff verweigern</title>
		<link>http://blog.crusy.net/2011/08/11/as3-webcam-zugriff-verweigern/</link>
		<comments>http://blog.crusy.net/2011/08/11/as3-webcam-zugriff-verweigern/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 12:35:05 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[Microphone]]></category>
		<category><![CDATA[Mikrofon]]></category>
		<category><![CDATA[Popup]]></category>
		<category><![CDATA[Webcam]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1555</guid>
		<description><![CDATA[Wer im Auswahl-Dialog den Zugriff auf die Webcam verweigert, bekommt ein StatusEvent mit dem Code &#8220;Camera.muted&#8221;: private var _camera : Camera; // ... _camera.addEventListener( StatusEvent.STATUS, _onCameraStatus ); // ... private function _onCameraStatus( event : StatusEvent ) : void { if( event.code == 'Camera.Muted' ) { // do stuff } } Konstanten dafür habe ich übrigens [...]]]></description>
			<content:encoded><![CDATA[<p>Wer <a title="Webcam- und Mikrofon-Zugriff mit Flash" href="http://blog.crusy.net/2010/04/07/webcam-und-mikrofon-zugriff-mit-flash/">im Auswahl-Dialog</a> den Zugriff auf die Webcam verweigert, bekommt ein <a title="LiveDocs" href="http://livedocs.adobe.com/flash/9.0_de/ActionScriptLangRefV3/flash/events/StatusEvent.html" target="_blank">StatusEvent</a> mit dem <a title="LiveDocs" href="http://livedocs.adobe.com/flash/9.0_de/ActionScriptLangRefV3/flash/events/StatusEvent.html#code" target="_blank">Code</a> &#8220;Camera.muted&#8221;:</p>
<pre>private var _camera : Camera;

// ...

_camera.addEventListener( StatusEvent.STATUS, _onCameraStatus );

// ...

private function _onCameraStatus( event : StatusEvent ) : void
{
	if( event.code == 'Camera.Muted' )
	{
		// do stuff
	}
}</pre>
<p>Konstanten dafür habe ich übrigens nicht gefunden, da bin ich für jeden Hinweis dankbar.</p>
<p>Achtung: Ist der Zugriff einmal abgewiesen worden, wird der <a title="Popupfenster zum Zugriffsschutz" href="http://www.macromedia.com/support/documentation/de/flashplayer/help/help05.html#117135" target="_blank">Dialog nicht erneut angezeigt</a>! Das muss man sich also selber merken, damit man im zweiten Versuch kein Camera-Objekt ohne Bild hat <img src='http://blog.crusy.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/08/11/as3-webcam-zugriff-verweigern/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>AS3: CamelCase an beliebigen Trennzeichen</title>
		<link>http://blog.crusy.net/2011/06/23/as3-camelcase-an-beliebigen-trennzeichen/</link>
		<comments>http://blog.crusy.net/2011/06/23/as3-camelcase-an-beliebigen-trennzeichen/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 14:53:27 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[capitalize]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[toUpperCase]]></category>
		<category><![CDATA[uppercase]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1439</guid>
		<description><![CDATA[Tag, wer ein einzelnes Wort camelCasen möchte, kann dies zum Beispiel so tun: public static function capitalize( input : String, ignoreAllButFirstLetter : Boolean = false ) : String { if( input ) { if( ignoreAllButFirstLetter ) { return input.substr( 0, 1 ).toUpperCase() + input.substr( 1, input.length ); } else { return input.substr( 0, 1 ).toUpperCase() [...]]]></description>
			<content:encoded><![CDATA[<p>Tag,</p>
<p>wer ein einzelnes Wort <a title="http://de.wikipedia.org/wiki/Camelcase" href="http://de.wikipedia.org/wiki/Camelcase#Verwendung_in_Programmiersprachen" target="_blank">camelCasen</a> möchte, kann dies zum Beispiel so tun:</p>
<pre>public static function capitalize( input : String, ignoreAllButFirstLetter : Boolean = false ) : String
{
  if( input )
  {
    if( ignoreAllButFirstLetter )
    {
      return input.substr( 0, 1 ).toUpperCase() + input.substr( 1, input.length );
    }
    else
    {
      return input.substr( 0, 1 ).toUpperCase() + input.substr( 1, input.length ).toLowerCase();
    }
  }
  return '';
}</pre>
<p>Der zweite Parameter ist hilfreich, wenn man einen String an beliebigen Trennzeichen camelCasen möchte &#8211; etwa einen Namen an Leerzeichen <strong>und</strong> Bindestrichen:</p>
<pre>public static function capitalizeWords( str : String, delimiter : Array ) : String
{
  var capitalized : String = str;

  if( capitalized &amp;&amp; capitalized.length &gt; 0 )
  {
    capitalized = capitalized.toLowerCase();

    var d : *;
    var word : String;
    var words : Array;
    var tmp : String;

    for each( d in delimiter )
    {
      tmp = '';
      words = capitalized.split( d );
      for each( word in words )
      {
        tmp = tmp + capitalize( word, true ) + d;
      }

      // remove trailing delimiter:
      capitalized = tmp.substr( 0, tmp.length - 1 );
    }
  }

  return capitalized;
}</pre>
<p>Aufruf dann z.B. so:</p>
<pre>name = capitalizeWords( name, [ ' ', '-' ] );</pre>
<p>HTH</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/06/23/as3-camelcase-an-beliebigen-trennzeichen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS: Coden mit TextMate, kompilieren mit der IDE (Minimallösung)</title>
		<link>http://blog.crusy.net/2011/06/07/as-coden-mit-textmate-kompilieren-mit-der-ide-minimallosung/</link>
		<comments>http://blog.crusy.net/2011/06/07/as-coden-mit-textmate-kompilieren-mit-der-ide-minimallosung/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 09:46:16 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS]]></category>
		<category><![CDATA[Flash IDE]]></category>
		<category><![CDATA[TextMate]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1435</guid>
		<description><![CDATA[Ohne (zusätzliche) Bundles: Man lege eine Datei test.as an. Man öffne die Flash-IDE, lege eine FLA an. Man inkludiere test.as in der FLA: include &#8216;test.as&#8217;; Man öffne test.as in TextMate. Man editiere test.as, und kompiliere mit CMD+R]]></description>
			<content:encoded><![CDATA[<p>Ohne (zusätzliche) <a title="http://manual.macromates.com/en/bundles" href="http://manual.macromates.com/en/bundles" target="_blank">Bundles</a>:</p>
<ol>
<li>Man lege eine Datei test.as an.</li>
<li>Man öffne die Flash-IDE, lege eine FLA an.</li>
<li>Man inkludiere test.as in der FLA: include &#8216;test.as&#8217;;</li>
<li>Man öffne test.as in <a title="http://macromates.com/" href="http://macromates.com/" target="_blank">TextMate</a>.</li>
<li>Man editiere test.as, und kompiliere mit CMD+R</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/06/07/as-coden-mit-textmate-kompilieren-mit-der-ide-minimallosung/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Actionscript: Einen Dialog zur Webcam-Auswahl anzeigen</title>
		<link>http://blog.crusy.net/2011/05/12/actionscript-einen-dialog-zur-webcam-auswahl-anzeigen/</link>
		<comments>http://blog.crusy.net/2011/05/12/actionscript-einen-dialog-zur-webcam-auswahl-anzeigen/#comments</comments>
		<pubDate>Thu, 12 May 2011 13:30:37 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Dialog]]></category>
		<category><![CDATA[Webcam]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1416</guid>
		<description><![CDATA[Die &#8220;Auswahl&#8221; der angeschlossenen Webcam, bzw. die Erkennung, ob eine Webcam angeschlossen ist, is&#8217; immer so &#8216;ne Sache. Es gibt wilde Skripte mit Schleifen über Camera.names, mit Unterscheidung des Betriebssystems, mit Prüfung auf &#8220;USB Video Class Video&#8221;. Sieht alles irgendwie nicht generisch aus. Was ich gerade gefunden habe, klingt dagegen ganz gut: To display the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.crusy.net/wp-content/uploads/2011/05/webcam.png"><img class="alignnone size-full wp-image-1417" title="webcam" src="http://blog.crusy.net/wp-content/uploads/2011/05/webcam.png" alt="" width="240" height="171" /></a></p>
<p>Die &#8220;Auswahl&#8221; der angeschlossenen Webcam, bzw. die Erkennung, ob eine Webcam angeschlossen ist, is&#8217; immer so &#8216;ne Sache. Es gibt wilde Skripte mit Schleifen über <a title="LiveDocs" href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Camera.html#names" target="_blank">Camera.names</a>, mit Unterscheidung des Betriebssystems, mit Prüfung auf &#8220;USB Video Class Video&#8221;. Sieht alles irgendwie nicht generisch aus.<br />
<a title="Camera.getCamera()" href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Camera.html#getCamera%28%29" target="_blank">Was ich gerade gefunden habe</a>, klingt dagegen ganz gut:</p>
<blockquote><p>To display the Flash Player Camera Settings panel,    which lets the user choose the camera to be referenced by <code>getCamera()</code>, use     <code>Security.showSettings(SecurityPanel.CAMERA)</code></p></blockquote>
<p><a title="LiveDocs" href="http://help.adobe.com/de_DE/AS3LCR/Flash_10.0/flash/system/SecurityPanel.html" target="_blank">Das Ganze</a> sieht dann aus wie oben.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/05/12/actionscript-einen-dialog-zur-webcam-auswahl-anzeigen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Effizienter Zugriff auf Singletons</title>
		<link>http://blog.crusy.net/2011/04/15/effizienter-zugriff-auf-singletons/</link>
		<comments>http://blog.crusy.net/2011/04/15/effizienter-zugriff-auf-singletons/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 07:23:00 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Entwurfsmuster]]></category>
		<category><![CDATA[internal]]></category>
		<category><![CDATA[Pattern]]></category>
		<category><![CDATA[Singleton]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1388</guid>
		<description><![CDATA[Häufig sieht der Zugriff auf Singletons so aus: MySingleton.getInstance().doStuff(); Effizienter finde ich aber MySingleton.doStuff(); Siehe Bild. getInstance() ist dabei &#8220;internal static&#8221; PS: &#8220;internal&#8221; ist vielleicht nicht nötig, aber &#8220;protected&#8221; ging irgendwann mal nicht, deswegen&#8230; sicher ist sicher^^]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.crusy.net/wp-content/uploads/2011/04/singleton.png"><img class="alignnone size-full wp-image-1389" style="border: 1px solid black;" title="singleton" src="http://blog.crusy.net/wp-content/uploads/2011/04/singleton.png" alt="" width="450" height="475" /></a></p>
<p>Häufig sieht der Zugriff auf <a title="Wikipedia" href="http://de.wikipedia.org/wiki/Singleton_%28Entwurfsmuster%29" target="_blank">Singletons</a> so aus:</p>
<blockquote><p>MySingleton.getInstance().doStuff();</p></blockquote>
<p>Effizienter finde ich aber</p>
<blockquote><p>MySingleton.doStuff();</p></blockquote>
<p>Siehe Bild. getInstance() ist dabei &#8220;internal static&#8221;</p>
<p>PS: &#8220;<a title="greenethumb.com" href="http://greenethumb.com/article/27/public-private-protected-internal-access-modifiers-in-as3" target="_blank">internal</a>&#8221; ist vielleicht nicht nötig, aber &#8220;protected&#8221; ging irgendwann mal nicht, deswegen&#8230; sicher ist sicher^^</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/04/15/effizienter-zugriff-auf-singletons/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash (Debug) Player lässt Firefox abstürzen</title>
		<link>http://blog.crusy.net/2011/03/31/flash-debug-player-lasst-firefox-absturzen/</link>
		<comments>http://blog.crusy.net/2011/03/31/flash-debug-player-lasst-firefox-absturzen/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 11:33:45 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Absturz]]></category>
		<category><![CDATA[Crash]]></category>
		<category><![CDATA[Debugger]]></category>
		<category><![CDATA[Flash Debug Player]]></category>
		<category><![CDATA[Flash Player]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1348</guid>
		<description><![CDATA[&#8230;und zwar in Version 3.6.x und 4.0, mindestens. Extrem nervig, das. Nun hört man (Danke, Harald), dass man in der about:config folgende Zeilen dom.ipc.plugins.enabled.npswf32.dll = true dom.ipc.plugins.timeoutSecs = 45 ändern soll zu dom.ipc.plugins.enabled.npswf32.dll = false dom.ipc.plugins.timeoutSecs = 1 Ich ergänze: Wenn es die erste Zeile nicht gibt, dann kann man sie manuell hinzufügen, als Boolean [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;und zwar in Version 3.6.x und 4.0, mindestens. Extrem nervig, das.</p>
<p>Nun hört man (Danke, <a title="www.seriouscircus.com" href="http://seriouscircus.com/" target="_blank">Harald</a>), dass man in der about:config folgende Zeilen</p>
<blockquote><p>dom.ipc.plugins.enabled.npswf32.dll = true<br />
dom.ipc.plugins.timeoutSecs = 45</p></blockquote>
<p>ändern soll zu</p>
<blockquote><p>dom.ipc.plugins.enabled.npswf32.dll = false<br />
dom.ipc.plugins.timeoutSecs = 1</p></blockquote>
<p>Ich ergänze: Wenn es die erste Zeile nicht gibt, dann kann man sie manuell hinzufügen, als Boolean mit &#8220;false&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/03/31/flash-debug-player-lasst-firefox-absturzen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

