<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>formatlos</title>
	
	<link>http://blog.formatlos.de</link>
	<description>Martin Rädlinger</description>
	<lastBuildDate>Tue, 09 Mar 2010 20:39:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/formatlos" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="formatlos" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Circlorate your Images</title>
		<link>http://blog.formatlos.de/2010/03/09/circlorate-your-images/</link>
		<comments>http://blog.formatlos.de/2010/03/09/circlorate-your-images/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 20:39:53 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Pixelbender]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=393</guid>
		<description><![CDATA[Inspired by some artworks by Mexican artist Gabriel Orozco I saw just recently I decided to develop a tool for doing some kind of circle slice rotation with your images. The result is &#187;Circlorator&#171; and it&#8217;s basically just a Pixelbender filter and some UI elements and that&#8217;s it. Give it a try and generate your [...]]]></description>
			<content:encoded><![CDATA[<p>Inspired by some artworks by Mexican artist Gabriel Orozco I saw just recently I decided to develop a tool for doing some kind of circle slice rotation with your images. The result is <a href="http://play.formatlos.de/circlorator/">&raquo;Circlorator&laquo;</a> and it&#8217;s basically just a Pixelbender filter and some UI elements and that&#8217;s it. Give it a try and generate your own artworks. </p>
<p><a href="http://play.formatlos.de/circlorator/">http://play.formatlos.de/circlorator/</a></p>
<h3>Examples</h3>
<p><img src="http://blog.formatlos.de/wp-content/uploads/2010/03/circlorator-550x343.jpg" alt="" title="circlorator" width="550" height="343" class="alignnone size-large wp-image-395" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2010/03/09/circlorate-your-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Font SWFs easily in FDT</title>
		<link>http://blog.formatlos.de/2009/08/19/create-font-swfs-easily-in-fdt/</link>
		<comments>http://blog.formatlos.de/2009/08/19/create-font-swfs-easily-in-fdt/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 08:58:25 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=359</guid>
		<description><![CDATA[I created an ANT build file which lets you create font SWFs easily, it takes a class template as input, generates the actual class for the chosen font and compiles the corresponding swf. but enough talking &#8230; give it a try.

Download:
fontcreator.zip
Setup:

import the zip file via &#8220;Import > Existing Projects.. > Select archive file&#8221;
add flash nature: [...]]]></description>
			<content:encoded><![CDATA[<p>I created an ANT build file which lets you create font SWFs easily, it takes a class template as input, generates the actual class for the chosen font and compiles the corresponding swf. but enough talking &#8230; give it a try.</p>
<p><span id="more-359"></span></p>
<h3>Download:</h3>
<p><a href="http://blog.formatlos.de/wp-content/uploads/2009/08/fontcreator.zip">fontcreator.zip</a></p>
<h3>Setup:</h3>
<ul>
<li>import the zip file via &#8220;Import > Existing Projects.. > Select archive file&#8221;</li>
<li>add flash nature: AS3, Flex 3/4 SDK</li>
<li>run the ant build (don&#8217;t forget to select &#8220;Run in the same JRE as the workspace&#8221; in External Tools > JRE)</li>
</ul>
<h3>Steps:</h3>
<p><div class="image img-a" style="width:472px;"><img src="http://blog.formatlos.de/wp-content/uploads/2009/08/fontcreator_1.png"/>
<p>select class template (you can create an own class template, save it in the template directory und select it here)</p>
</div>
<div class="image img-a" style="width:472px;"><img src="http://blog.formatlos.de/wp-content/uploads/2009/08/fontcreator_2.png"/>
<p>select font file (has to be in the assets/fonts directory)</p>
</div>
<div class="image img-a" style="width:472px;"><img src="http://blog.formatlos.de/wp-content/uploads/2009/08/fontcreator_3.png"/>
<p>specify a class name for your font class</p>
</div>
<div class="image img-a" style="width:472px;"><img src="http://blog.formatlos.de/wp-content/uploads/2009/08/fontcreator_4.png"/>
<p>the name for the font (thats the name you&#8217;ll use with TextFormat.font later on)</p>
</div>
<div class="image img-a" style="width:472px;"><img src="http://blog.formatlos.de/wp-content/uploads/2009/08/fontcreator_5.png"/>
<p>font weight</p>
</div>
<div class="image img-a" style="width:472px;"><img src="http://blog.formatlos.de/wp-content/uploads/2009/08/fontcreator_6.png"/>
<p>font style</p>
</div>
<div class="image img-a" style="width:472px;"><img src="http://blog.formatlos.de/wp-content/uploads/2009/08/fontcreator_7.png"/>
<p>mime type, normally &#8216;application/x-font&#8217; should do the job</p>
</div>
<div class="image img-a" style="width:472px;"><img src="http://blog.formatlos.de/wp-content/uploads/2009/08/fontcreator_8.png"/>
<p>specifiy the chars to want to embed</p>
</div>
<div style="clear:both">&nbsp;</div>
</p>
<p>That&#8217;s it. Now your font should get generated and afterwards be available in the deploy/fonts directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/08/19/create-font-swfs-easily-in-fdt/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Red Bull Soapbox Racer by Less Rain</title>
		<link>http://blog.formatlos.de/2009/08/05/red-bull-soapbox-racer-by-less-rain/</link>
		<comments>http://blog.formatlos.de/2009/08/05/red-bull-soapbox-racer-by-less-rain/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 08:41:11 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Coolsites]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=354</guid>
		<description><![CDATA[My friends at lessrain just launched their latest creative online community: the Red Bull Soapbox Racer. Go and check it out, it&#8217;s such a fantastic piece of work, really stunning. Have fun!
Red Bull Soapbox Racer
Less Rain Blog 
]]></description>
			<content:encoded><![CDATA[<p>My friends at <a href="http://www.lessrain.com">lessrain</a> just launched their latest creative online community: the <a href="http://www.redbullsoapboxracer.com/">Red Bull Soapbox Racer</a>. Go and check it out, it&#8217;s such a fantastic piece of work, really stunning. Have fun!</p>
<p><a href="http://www.redbullsoapboxracer.com/">Red Bull Soapbox Racer</a><br />
<a href="http://www.blog.lessrain.com/red-bull-soapbox-racer/">Less Rain Blog</a> </p>
<p><a href="http://blog.formatlos.de/2009/08/05/red-bull-soapbox-racer-by-less-rain/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/08/05/red-bull-soapbox-racer-by-less-rain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AS3 TextHighlighter</title>
		<link>http://blog.formatlos.de/2009/06/22/as3-texthighlighter/</link>
		<comments>http://blog.formatlos.de/2009/06/22/as3-texthighlighter/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 12:00:45 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[TextField]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=335</guid>
		<description><![CDATA[Because of the lack of text highlighting capabilities for Flash TextFields I coded a small class with a simple API to highlight text with your custom style. For your own styles you just have to implement an interface. The highlight method takes either a String or Regular Expression as argument.


The class doesn&#8217;t work for scrolling [...]]]></description>
			<content:encoded><![CDATA[<p>Because of the lack of text highlighting capabilities for Flash TextFields I coded a small class with a simple API to highlight text with your custom style. For your own styles you just have to implement an interface. The highlight method takes either a String or Regular Expression as argument.
</p>
<p>
The class doesn&#8217;t work for scrolling text at the moment, but feel free to extend the class.
</p>
<p>
<strong>example:</strong><br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_texthighlighterexample_1657339659"
			class="flashmovie"
			width="558"
			height="100">
	<param name="movie" value="http://blog.formatlos.de/wp-content/uploads/2009/06/texthighlighterexample.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://blog.formatlos.de/wp-content/uploads/2009/06/texthighlighterexample.swf"
			name="fm_texthighlighterexample_1657339659"
			width="558"
			height="100">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
<span id="more-335"></span><br />
<strong>code:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// highlight container</span>
<span style="color: #000000; font-weight: bold;">var</span> highlight : Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
addChild<span style="color: #66cc66;">&#40;</span>highlight<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// create textfield</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">textField</span> : <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>;
addChild<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">textField</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// apply text style and add text</span>
...
&nbsp;
<span style="color: #808080; font-style: italic;">// highlight style</span>
<span style="color: #000000; font-weight: bold;">var</span> style : IHighlightStyle = <span style="color: #000000; font-weight: bold;">new</span> SimpleHighlightStyle<span style="color: #66cc66;">&#40;</span>0x00ff00, <span style="color: #cc66cc;">0.5</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// highlighter</span>
<span style="color: #000000; font-weight: bold;">var</span> textHighlighter : TextHighlighter = <span style="color: #000000; font-weight: bold;">new</span> TextHighlighter<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">textField</span>, highlight, style<span style="color: #66cc66;">&#41;</span>;
textHighlighter.<span style="color: #006600;">highlight</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">/</span>far<span style="color: #66cc66;">/</span>gi<span style="color: #66cc66;">&#41;</span>;
textHighlighter.<span style="color: #006600;">highlight</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Duden&quot;</span>, <span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

</p>
<p><h3>files:</h3>
<p><strong>version 0.1</strong><br />
<a href='http://blog.formatlos.de/wp-content/uploads/2009/06/texthighlighter_01.zip'>TextHighlighter_01.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/06/22/as3-texthighlighter/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Styling Html TextField Bullet Points</title>
		<link>http://blog.formatlos.de/2009/06/18/styling-html-textfield-bullet-points/</link>
		<comments>http://blog.formatlos.de/2009/06/18/styling-html-textfield-bullet-points/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 13:44:38 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[TextField]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=315</guid>
		<description><![CDATA[If you ever needed to style the bullet points in a Html TextField in Flash you have noticed that this isn&#8217;t supported. It gets even worse if the bullet point in the font you&#8217;re using isn&#8217;t nice at all and you want to take another fonts bullet point.

But with a simple workaround you can change [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever needed to style the bullet points in a Html TextField in Flash you have noticed that this isn&#8217;t supported. It gets even worse if the bullet point in the font you&#8217;re using isn&#8217;t nice at all and you want to take another fonts bullet point.
</p>
<p>But with a simple workaround you can change the font face, size and color of the bullet points:<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_stylebulletpoint_302341987"
			class="flashmovie"
			width="558"
			height="100">
	<param name="movie" value="http://blog.formatlos.de/wp-content/uploads/2009/06/stylebulletpoint.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://blog.formatlos.de/wp-content/uploads/2009/06/stylebulletpoint.swf"
			name="fm_stylebulletpoint_302341987"
			width="558"
			height="100">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>
And don&#8217;t forget to embed the bullet point, it&#8217;s character U+2022
</p>
<h3>Update 25.01.2010</h3>
<p>Added an indent property to easily set the left margin of the list. For using other symbols than the bullet, you have to manipulate your font and embed the manipulated character.
</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_StyleBulletPoint3_831702839"
			class="flashmovie"
			width="558"
			height="100">
	<param name="movie" value="http://blog.formatlos.de/wp-content/uploads/2010/01/StyleBulletPoint3.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://blog.formatlos.de/wp-content/uploads/2010/01/StyleBulletPoint3.swf"
			name="fm_StyleBulletPoint3_831702839"
			width="558"
			height="100">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_StyleBulletPoint2_1164298948"
			class="flashmovie"
			width="558"
			height="100">
	<param name="movie" value="http://blog.formatlos.de/wp-content/uploads/2010/01/StyleBulletPoint2.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://blog.formatlos.de/wp-content/uploads/2010/01/StyleBulletPoint2.swf"
			name="fm_StyleBulletPoint2_1164298948"
			width="558"
			height="100">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p><a href='http://blog.formatlos.de/wp-content/uploads/2010/01/stylebulletpoint.zip'>Download Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/06/18/styling-html-textfield-bullet-points/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>AS3 TextField metrics bug</title>
		<link>http://blog.formatlos.de/2009/04/09/as3-textfield-metrics-bug/</link>
		<comments>http://blog.formatlos.de/2009/04/09/as3-textfield-metrics-bug/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 09:13:17 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[TextField]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=310</guid>
		<description><![CDATA[Just a quick reminder for myself. There are a few interesting metrics functions in the AS3 TextField API like getCharBoundaries(), but if you have an autoSize field the methods won&#8217;t work properly. Just set the height of the field before calling the method to fix that.

...
textfield.height = textfield.height;
textfield.getCharBoundaries&#40;charIndex&#41;;
...

]]></description>
			<content:encoded><![CDATA[<p>Just a quick reminder for myself. There are a few interesting metrics functions in the AS3 TextField API like getCharBoundaries(), but if you have an autoSize field the methods won&#8217;t work properly. Just set the height of the field before calling the method to fix that.</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">...
<span style="color: #0066CC;">textfield</span>.<span style="color: #0066CC;">height</span> = <span style="color: #0066CC;">textfield</span>.<span style="color: #0066CC;">height</span>;
<span style="color: #0066CC;">textfield</span>.<span style="color: #006600;">getCharBoundaries</span><span style="color: #66cc66;">&#40;</span>charIndex<span style="color: #66cc66;">&#41;</span>;
...</pre></div></div>
</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/04/09/as3-textfield-metrics-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Image Sequence Memory Issues</title>
		<link>http://blog.formatlos.de/2009/04/09/image-sequence-memory-issues/</link>
		<comments>http://blog.formatlos.de/2009/04/09/image-sequence-memory-issues/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 09:00:04 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[BitmapData]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=307</guid>
		<description><![CDATA[I guess most of you are aware of the Bitmap memory leak in Flash Player and that you have to call the BitmapData.dispose() method to actually free the memory. But what to do if you don&#8217;t have a reference to the BitmapData? 
That&#8217;s essentially a problem when dealing with MovieClips with an image sequence on [...]]]></description>
			<content:encoded><![CDATA[<p>I guess most of you are aware of the Bitmap memory leak in Flash Player and that you have to call the BitmapData.dispose() method to actually free the memory. But what to do if you don&#8217;t have a reference to the BitmapData? </p>
<p>That&#8217;s essentially a problem when dealing with MovieClips with an image sequence on its timeline. After adding the MovieClip to the stage and accessing each frame the complete sequence is in memory and removing it from the stage again doesn&#8217;t free any of this memory. Obviously the single frames are getting converted to Shapes with bitmap fill internally, so you don&#8217;t have a Bitmap instance for each frame and therefore you can&#8217;t dispose the frames after showing the sequence.</p>
<p><a href="http://projects.formatlos.de/spiking/imagesequence/" target="_blank">Sequence Example</a> (the swf has no preloader, so you&#8217;ll probably have to wait a little bit)<br />
<a href="http://projects.formatlos.de/spiking/imagesequence/SequenceTest.zip" target="_blank">Sequence Example Source</a> (9MB, Flash CS3)</p>
<p>The only solution for this problem is to load the sequence as an external swf and call the unload method of your Loader instance when you don&#8217;t need the sequence anymore and want to free the memory. Alternatively you could load the single jpg frames individually, create your sequence programmatically and use BitmapData.dispose() afterwards. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/04/09/image-sequence-memory-issues/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Using a timeline animation as alpha mask</title>
		<link>http://blog.formatlos.de/2009/03/15/timeline-alpha-mas/</link>
		<comments>http://blog.formatlos.de/2009/03/15/timeline-alpha-mas/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 21:38:03 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=302</guid>
		<description><![CDATA[I guess you know, that you have to set the cacheAsBitmap property of both, the mask and the masked Sprite, to apply an alpha mask.


...
mask.cacheAsBitmap = true;
container.mask = mask;
container.cacheAsBitmap = true;
...


This works perfectly with a static bitmap mask but if you try to do the same with an animated MovieClip mask, the mask will not [...]]]></description>
			<content:encoded><![CDATA[<p>I guess you know, that you have to set the cacheAsBitmap property of both, the mask and the masked Sprite, to apply an alpha mask.</p>
</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">...
<span style="color: #006600;">mask</span>.<span style="color: #006600;">cacheAsBitmap</span> = <span style="color: #000000; font-weight: bold;">true</span>;
container.<span style="color: #006600;">mask</span> = mask;
container.<span style="color: #006600;">cacheAsBitmap</span> = <span style="color: #000000; font-weight: bold;">true</span>;
...</pre></div></div>

</p>
<p>This works perfectly with a static bitmap mask but if you try to do the same with an animated MovieClip mask, the mask will not work anymore. Apparently the cacheAsBitmap property of the MovieClip is reset on entering a new frame and therefore to get it working you have to set cacheAsBitmap = true in every frame.</p>
<p>
<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">...
<span style="color: #006600;">mask</span>.<span style="color: #006600;">cacheAsBitmap</span> = <span style="color: #000000; font-weight: bold;">true</span>;
container.<span style="color: #006600;">mask</span> = mask;
container.<span style="color: #006600;">cacheAsBitmap</span> = <span style="color: #000000; font-weight: bold;">true</span>;
&nbsp;
addEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, frameHandler<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> frameHandler<span style="color: #66cc66;">&#40;</span>event : Event<span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
	mask.<span style="color: #006600;">cacheAsBitmap</span> = <span style="color: #000000; font-weight: bold;">true</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
...</pre></div></div>
</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/03/15/timeline-alpha-mas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Masking a 3D Container in AS3 (FP10)</title>
		<link>http://blog.formatlos.de/2009/02/16/masking-a-3d-container-in-as3-fp1/</link>
		<comments>http://blog.formatlos.de/2009/02/16/masking-a-3d-container-in-as3-fp1/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 13:00:32 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=298</guid>
		<description><![CDATA[&#187;Easily transform and animate any display object through 3D space while retaining full interactivity.&#171; That&#8217;s one of the key features in FlashPlayer 10 according to Adobe. You might think: &#34;Woohoo, that&#8217;s fantastic&#34; &#8230; so did I. But actually this is not completely true. 
I was trying to set a mask or the scrollRect-property of a [...]]]></description>
			<content:encoded><![CDATA[<p>&raquo;Easily transform and animate any display object through 3D space while retaining full interactivity.&laquo; That&#8217;s one of the key features in FlashPlayer 10 according to Adobe. You might think: &quot;Woohoo, that&#8217;s fantastic&quot; &#8230; so did I. But actually this is not completely true. </p>
<p>I was trying to set a mask or the scrollRect-property of a Sprite and as long as you don&#8217;t use one of the new 3D properties (rotationX, rotationY, rotationZ, &#8230;)  this works as supposed. After changing one of the 3D properties and therefore using the new 3D API the mask will not work anymore. Of course this is not mentioned in the <a href="http://help.adobe.com/en_US/AS3LCR/Flash_10.0/" target="_blank">FP10 AS3 reference</a>.  </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/02/16/masking-a-3d-container-in-as3-fp1/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Digital Graffiti – Spray Demo</title>
		<link>http://blog.formatlos.de/2008/12/19/digital-graffiti-spray-demo/</link>
		<comments>http://blog.formatlos.de/2008/12/19/digital-graffiti-spray-demo/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 15:20:49 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Physical Computing]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[RFID]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=285</guid>
		<description><![CDATA[The canvas with the van is not very nice, but just to show you a demo of the spray can. sorry for my bad spraying skills. see a description of the project here.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.formatlos.de/2008/12/19/digital-graffiti-spray-demo/"><em>Click here to view the embedded video.</em></a></p>
<p>The canvas with the van is not very nice, but just to show you a demo of the spray can. sorry for my bad spraying skills. see a description of the project <a href="http://blog.formatlos.de/2008/12/01/digital-graffiti/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2008/12/19/digital-graffiti-spray-demo/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
