<?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; Actionscript</title>
	<atom:link href="http://blog.crusy.net/tag/actionscript/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>AS3: Eingebettete XML</title>
		<link>http://blog.crusy.net/2011/11/10/as3-eingebettete-xml/</link>
		<comments>http://blog.crusy.net/2011/11/10/as3-eingebettete-xml/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 11:25:14 +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[Einbinden]]></category>
		<category><![CDATA[eingebunden]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1700</guid>
		<description><![CDATA[Wer Fehler a la identifier vor xmltagstartend erforderlich. oder anderen kryptischen Kram bekommt, sollte die XML so einbinden: [Embed(source="assets/myXml.xml", mimeType="application/octet-stream")] private var EmbeddedXml : Class; private var _myXml : XML; // ... var ba : ByteArray = (new EmbeddedXml()) as ByteArray; var s : String = ba.readUTFBytes( ba.length ); _myXml = new XML( s ); [...]]]></description>
			<content:encoded><![CDATA[<p>Wer Fehler a la</p>
<blockquote><p>identifier vor xmltagstartend erforderlich.</p></blockquote>
<p>oder anderen kryptischen Kram bekommt, sollte die XML so einbinden:</p>
<pre>[Embed(source="assets/myXml.xml", mimeType="application/octet-stream")]
private var EmbeddedXml : Class;
private var _myXml : XML;
// ...
var ba : ByteArray = (new EmbeddedXml()) as ByteArray;
var s : String = ba.readUTFBytes( ba.length );
_myXml = new XML( s );
_myXml.ignoreWhitespace = true;</pre>
<p>Also: mimeType beachten, und dass die eingebettete Klasse nicht direkt auf XML gecastet wird. Außerdem ignoreWhiteSpace, das&#8217; ja klar <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/11/10/as3-eingebettete-xml/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>Library-SWCs mit FDT erstellen</title>
		<link>http://blog.crusy.net/2011/08/30/library-swcs-mit-fdt-erstellen/</link>
		<comments>http://blog.crusy.net/2011/08/30/library-swcs-mit-fdt-erstellen/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 09:55:25 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[1047]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Fehler]]></category>
		<category><![CDATA[Fehlermeldung]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1625</guid>
		<description><![CDATA[Es ist recht einfach, ein komplettes Projekt als SWC zu kompilieren: Rechtsklick auf&#8217;s Projekt -&#62; Run as -&#62; FDT SWC Library (Quelle). Ein Ant-Skript wäre schöner, aber grundsätzlich ist es so erst mal einfach. Was die Sache nämlich an anderer Stelle verkompliziert, ist der allseits beliebte Fehler 1047: Parameter initializer unknown or is not a [...]]]></description>
			<content:encoded><![CDATA[<p>Es ist recht einfach, ein komplettes Projekt als SWC zu kompilieren: Rechtsklick auf&#8217;s Projekt -&gt; Run as -&gt; FDT SWC Library (<a title="Create SWC library from FDT" href="http://www.matthijskamstra.nl/blog/index.php/2010/07/14/create-swc-library-from-fdt/" target="_blank">Quelle</a>). Ein Ant-Skript wäre schöner, aber grundsätzlich ist es so erst mal einfach. Was die Sache nämlich an anderer Stelle verkompliziert, ist der allseits beliebte Fehler 1047:</p>
<pre>Parameter initializer unknown or is not a compile-time constant.</pre>
<p>bzw.</p>
<pre>Parameterinitialisierer unbekannt oder keine Kompilierungszeit-Konstante.</pre>
<p>Dieser tritt dann auf, wenn man eine Konstante als default-Übergabe-Parameter nutzt, und die Klasse mit der Konstante erst nach dieser Klasse kompiliert wird. Oder so. Es gibt haufenweise Einträge dazu im Bug-Tracker, teilweise schon jahrealt, leider ohne Ergebnis. Die längste Antwort von Adobe (die nicht &#8220;OK, wird noch mal geprüft&#8221; lautet) ist &#8220;Wäre schwierig zu implementieren, machen wir nicht.&#8221;^^</p>
<p>Deshalb folgende Lösungsansätze:</p>
<ul>
<li>Ein Workaround im Netz ist es, einfach keine Konstanten zu nutzen – das ist natürlich Quatsch.</li>
<li>Ein anderer ist es, die entsprechende Funktion zu ändern – statt &#8220;foo:Number=MyConstants.FOO&#8221; &#8220;foo:Number=NaN&#8221;. Man prüft dann <strong>in</strong> der Funktion auf NaN, und setzt ggf. dort erst die Konstante. Das funktioniert, aber das will man eigentlich nicht für externe Libraries (ich meine damit projektexterne Libraries, nicht das Projekt an sich, was hier ja auch eine Library werden soll^^) .</li>
<li>Dann: Unter Project Properties -&gt; FDT Build Path -&gt; Build Order die Reihenfolge der SWCs und Sourcefolder so zu ändern, dass die Klasse eben zuerst kompiliert wird. Geht auch nur, wenn Konstanten-Klasse und aufrufende Klasse in verschiedenen Packages liegen</li>
<li>Deshalb habe ich gerade ein neues Package angelegt, dort unter den korrekten Pfad die aufrufende Klasse verschoben, und dieses neue Package (heißt bei mir &#8220;compilerbug&#8221;) mit der oben beschriebenen Methode als erstes kompiliert <img src='http://blog.crusy.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  auch unschön, aber so muss ich wenigstens keine Klasse anderer Leute anfassen</li>
</ul>
<p>Das nervt mich gerade extrem, hat jemand eine bessere Lösung?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/08/30/library-swcs-mit-fdt-erstellen/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: Automatisch erzeugte Versionsnummer im Kontextmenü</title>
		<link>http://blog.crusy.net/2011/06/01/actionscript-automatisch-erzeugte-versionsnummer-im-kontextmenu/</link>
		<comments>http://blog.crusy.net/2011/06/01/actionscript-automatisch-erzeugte-versionsnummer-im-kontextmenu/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 14:43:25 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Ant]]></category>
		<category><![CDATA[AS]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Buildnumber]]></category>
		<category><![CDATA[Buildnummer]]></category>
		<category><![CDATA[Version]]></category>
		<category><![CDATA[Versionsnummer]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1424</guid>
		<description><![CDATA[Für ein Projekt wollte ich irgendeine Möglichkeit haben, einer SWF ihre genaue Versionsnummer &#8220;anzusehen&#8221;. Dies sollte unbedingt automatisiert geschehen. Ich glaube mich dunkel zu erinnern, dass man mit Ant auch direkt in die AS-Klassen schreiben kann, finde das aber gerade nicht wieder&#8230; was ich aber gefunden habe basiert ebenfalls auf Ant, genauer gesagt: Auf dem [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.crusy.net/wp-content/uploads/2011/06/buildNumber.png"><img class="alignnone size-full wp-image-1428" title="buildNumber" src="http://blog.crusy.net/wp-content/uploads/2011/06/buildNumber.png" alt="" width="341" height="311" /></a></p>
<p>Für ein Projekt wollte ich irgendeine Möglichkeit haben, einer SWF ihre genaue Versionsnummer &#8220;anzusehen&#8221;. Dies sollte unbedingt automatisiert geschehen. Ich glaube mich dunkel zu erinnern, dass man mit <a title="http://en.wikipedia.org/wiki/Apache_Ant" href="http://en.wikipedia.org/wiki/Apache_Ant" target="_blank">Ant</a> auch direkt in die AS-Klassen schreiben kann, finde das aber gerade nicht wieder&#8230; <a title="Embedding text files in a Flex Application" href="http://techrays.wordpress.com/2007/09/19/embedding-text-files-in-a-flex-application/" target="_blank">was ich aber gefunden habe</a> basiert ebenfalls auf Ant, genauer gesagt: Auf dem <a title="http://ant.apache.org/manual/Tasks/buildnumber.html" href="http://ant.apache.org/manual/Tasks/buildnumber.html" target="_blank">&#8220;BuildNumber&#8221;-Task</a>.</p>
<p>Damit liest man eine Nummer aus einer Datei (default: build.number), erhöht sie um 1, und schreibt das Ergebnis zurück. Soweit, so gut. Aber wie bekommt man das in die SWF? Mit einer Klasse, die in etwa so aussieht (ich habe es auch mit einer internal class probiert, aber nicht hinbekommen &#8211; Tipps sind willkommen!):</p>
<pre>package test
{
    import flash.utils.ByteArray;
    [Embed(source="../script/build.number", mimeType="application/octet-stream")]
    public class BuildNumber extends ByteArray{}
}</pre>
<p>Diese Klasse kann man nun instantiieren und auslesen:</p>
<pre>var obj:BuildNumber = new BuildNumber();
trace( obj.toString() );</pre>
<p>Eleganter: Man schreibt den Inhalt in&#8217;s <a title="flash.ui.ContextMenu" href="http://help.adobe.com/de_DE/FlashPlatform/reference/actionscript/3/flash/ui/ContextMenu.html?filter_flex=4.1&amp;filter_flashplayer=10.2&amp;filter_air=2.6" target="_blank">Kontextmenü</a>:</p>
<pre>var buildNr : ContextMenuItem = new ContextMenuItem( 'Build: ' + obj.toString() );
buildNr.enabled = false;
var myMenu : ContextMenu = new ContextMenu();
myMenu.customItems.push( buildNr );
contextMenu = myMenu;</pre>
<p>HTH</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/06/01/actionscript-automatisch-erzeugte-versionsnummer-im-kontextmenu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Alternativen für Facebook-Posts aus Actionscript</title>
		<link>http://blog.crusy.net/2011/05/13/alternativen-fur-facebook-posts-aus-actionscript/</link>
		<comments>http://blog.crusy.net/2011/05/13/alternativen-fur-facebook-posts-aus-actionscript/#comments</comments>
		<pubDate>Fri, 13 May 2011 14:46:59 +0000</pubDate>
		<dc:creator>crusy</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Graph]]></category>
		<category><![CDATA[Open Graph]]></category>

		<guid isPermaLink="false">http://blog.crusy.net/?p=1419</guid>
		<description><![CDATA[Wer mit der Facebook-API für Actionscript Posts absetzen will, kann das direkt machen: Facebook.api( &#8216;/me/feed&#8217;, _publishPostHandler, params, URLRequestMethod.POST ); oder als Javascript-Overlay: Facebook.ui( &#8216;feed&#8217;, data, null, null ); oder als Pop-Up Facebook.ui( &#8216;feed&#8217;, data, null, &#8216;popup&#8217; ); Das data-Object beinhaltet die in den Docs unter &#8220;Publishing&#8221; beschriebenen Parameter.]]></description>
			<content:encoded><![CDATA[<p>Wer mit der <a title="http://code.google.com/p/facebook-actionscript-api/" href="http://code.google.com/p/facebook-actionscript-api/" target="_blank">Facebook-API für Actionscript</a> Posts absetzen will, kann das direkt machen:</p>
<blockquote><p>Facebook.api( &#8216;/me/feed&#8217;, _publishPostHandler, params, URLRequestMethod.POST );</p></blockquote>
<p>oder als Javascript-Overlay:</p>
<blockquote><p>Facebook.ui( &#8216;feed&#8217;, data, null, null );</p></blockquote>
<p>oder als Pop-Up</p>
<blockquote><p>Facebook.ui( &#8216;feed&#8217;, data, null, &#8216;popup&#8217; );</p></blockquote>
<p>Das data-Object beinhaltet die <a title="https://developers.facebook.com/docs/reference/api/" href="https://developers.facebook.com/docs/reference/api/" target="_blank">in den Docs unter &#8220;Publishing&#8221;</a> beschriebenen Parameter.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.crusy.net/2011/05/13/alternativen-fur-facebook-posts-aus-actionscript/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>
	</channel>
</rss>

