<?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>formatlos &#187; ActionScript</title>
	<atom:link href="http://blog.formatlos.de/category/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.formatlos.de</link>
	<description>Martin Rädlinger</description>
	<lastBuildDate>Tue, 30 Mar 2010 18:35:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AS3 Circle Gradient</title>
		<link>http://blog.formatlos.de/2010/03/30/as3-circle-gradient/</link>
		<comments>http://blog.formatlos.de/2010/03/30/as3-circle-gradient/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 18:35:03 +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[Flash Player 10]]></category>
		<category><![CDATA[Pixelbender]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=414</guid>
		<description><![CDATA[According to my previous post about the AS3 Circle Colo [...]]]></description>
			<content:encoded><![CDATA[<p>According to my previous post about the <a href="http://blog.formatlos.de/2010/03/30/as3-circle-color-spectrum">AS3 Circle Color Spectrum</a> I wanted to implement the circle gradient in pixel bender as well, so there you go. You can specify up to 4 colors and control the appearance with the corresponding ratio. </p>
<p>the parameters for the shader</p>
<ul>
<li><strong>center</strong> for passing in the x and y</li>
<li><strong>innerRadius</strong> and <strong>outerRadius</strong> for controling the size of the circle</li>
<li><strong>rotation (0-360)</strong> to change the starting angle </li>
<li><strong>color1</strong>, <strong>color2</strong>, <strong>color3</strong>, <strong>color4</strong> in the format RGBA (1.0, 1.0, 1.0, 1.0 = 0xffffffff)</li>
<li><strong>ratios</strong> an array of color distribution ratio </li>
</ul>
<p>
<a href="http://play.formatlos.de/circle-gradient-filter/"><img src="http://blog.formatlos.de/wp-content/uploads/2010/03/circleGradientSamples.jpg" alt="" title="circleGradientSamples" width="550" height="187" class="alignnone size-full wp-image-426" /></a></p>
<p>
<a href="http://play.formatlos.de/circle-gradient-filter/">Play with the filter&#8230;</a><br />
<a href="http://blog.formatlos.de/wp-content/uploads/2010/03/CircleGradient_1.0.zip">Download Circle Gradient filter &#038; pixel bender source</a>
</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2010%2F03%2F30%2Fas3-circle-gradient%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2010%2F03%2F30%2Fas3-circle-gradient%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,AS3,Flash,Flash+Player+10,Pixelbender" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2010/03/30/as3-circle-gradient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 Circle Color Spectrum</title>
		<link>http://blog.formatlos.de/2010/03/30/as3-circle-color-spectrum/</link>
		<comments>http://blog.formatlos.de/2010/03/30/as3-circle-color-spectrum/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 18:33:08 +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[Flash Player 10]]></category>
		<category><![CDATA[Pixelbender]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=412</guid>
		<description><![CDATA[Just a few days ago I released my HSB Color Wheel inter [...]]]></description>
			<content:encoded><![CDATA[<p>Just a few days ago I released my <a href="http://blog.formatlos.de/2010/03/27/hsb-color-wheel/">HSB Color Wheel</a> interface. All the graphics used in there are drawn with the AS3 drawing API including the circle color spectrum and the circle gradient. This performs very well but just out of curiosity I wondered how hard it would be to generate the color spectrum in pixel bender &#8230; and well it&#8217;s not that complicated, actually it&#8217;s easier than doing it in AS3 because pixel bender is made for dealing with colors and pixels. </p>
<p>I implemented a few parameter to control the shader</p>
<ul>
<li><strong>center</strong> for passing in the x and y</li>
<li><strong>innerRadius</strong> and <strong>outerRadius</strong> for controling the size of the circle</li>
<li><strong>rotation (0-360)</strong> to change the angle where the red color starts </li>
<li><strong>ratio (0.0-1.0)</strong> for controling the space used for 1 color spectrum, e.g. a value of 0.5 would use 180 degrees for displaying 1 spectrum and you would end up with 2 spectrums in your circle </li>
</ul>
<p>
<a href="http://play.formatlos.de/circle-color-spectrum-filter/"><img src="http://blog.formatlos.de/wp-content/uploads/2010/03/circleSpectrumSamples.jpg" alt="" title="circleSpectrumSamples" width="550" height="188" class="alignnone size-full wp-image-419" /></a>is it just me or does the circle in the middle seem to rotate slightly &#8230; scary &#8230; anyway</p>
<p>
<a href="http://play.formatlos.de/circle-color-spectrum-filter/">Play with the filter&#8230;</a><br />
<a href="http://blog.formatlos.de/wp-content/uploads/2010/03/CircleColorSpectrum_1.0.zip">Download Circle Color Spectrum filter &#038; pixel bender source</a>
</p>
<p><strong>next up: </strong><br />
<a href="http://blog.formatlos.de/2010/03/30/as3-circle-gradient/">AS3 Circle Gradient</a></p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2010%2F03%2F30%2Fas3-circle-color-spectrum%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2010%2F03%2F30%2Fas3-circle-color-spectrum%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,AS3,Flash,Flash+Player+10,Pixelbender" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2010/03/30/as3-circle-color-spectrum/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HSB Color Wheel</title>
		<link>http://blog.formatlos.de/2010/03/27/hsb-color-wheel/</link>
		<comments>http://blog.formatlos.de/2010/03/27/hsb-color-wheel/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 10:00:41 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://blog.formatlos.de/?p=401</guid>
		<description><![CDATA[I just did some interface experiments because I always  [...]]]></description>
			<content:encoded><![CDATA[<p>I just did some interface experiments because I always wanted to have some kind of circle color picker &#8230; the <a href="http://play.formatlos.de/hsb-color-wheel/">HSB Color Wheel</a> is what I came up with. I implemented some settings to change the 	appearance slightly. I plan to release the AS3 code here if anyone is interested and as soon as I have the time to clean it up a little bit.</p>
<h3>Some Examples</h3>
<p>
<a href="http://play.formatlos.de/hsb-color-wheel/"><img src="http://blog.formatlos.de/wp-content/uploads/2010/03/colorwheel_1.png" alt="" title="colorwheel_1" width="550" height="350" class="alignnone size-full wp-image-402" /></a>&nbsp;</p>
<p><span id="more-401"></span></p>
<p>
<a href="http://play.formatlos.de/hsb-color-wheel/"><img src="http://blog.formatlos.de/wp-content/uploads/2010/03/colorwheel_2.png" alt="" title="colorwheel_2" width="550" height="350" class="alignnone size-full wp-image-402" /></a>&nbsp;</p>
<p>
<a href="http://play.formatlos.de/hsb-color-wheel/"><img src="http://blog.formatlos.de/wp-content/uploads/2010/03/colorwheel_3.png" alt="" title="colorwheel_3" width="550" height="350" class="alignnone size-full wp-image-402" /></a><br />
&nbsp;</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2010%2F03%2F27%2Fhsb-color-wheel%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2010%2F03%2F27%2Fhsb-color-wheel%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,AS3,Flash" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2010/03/27/hsb-color-wheel/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<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 Oro [...]]]></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> Pixelbender Source</h3>
<p>For those who want to play with the filter a little bit, there you go <a href="http://play.formatlos.de/wp-content/uploads/CirclorateFilter.zip">CirclorateFilter.zip</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" />
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2010%2F03%2F09%2Fcirclorate-your-images%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2010%2F03%2F09%2Fcirclorate-your-images%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,AS3,Flash,Pixelbender" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2010/03/09/circlorate-your-images/feed/</wfw:commentRss>
		<slash:comments>5</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  [...]]]></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>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F08%2F19%2Fcreate-font-swfs-easily-in-fdt%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F08%2F19%2Fcreate-font-swfs-easily-in-fdt%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,ANT,AS3,Flash" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/08/19/create-font-swfs-easily-in-fdt/feed/</wfw:commentRss>
		<slash:comments>24</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 f [...]]]></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_929754263"
			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_929754263"
			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>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F06%2F22%2Fas3-texthighlighter%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F06%2F22%2Fas3-texthighlighter%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,AS3,Flash,TextField" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/06/22/as3-texthighlighter/feed/</wfw:commentRss>
		<slash:comments>14</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 [...]]]></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_1672173326"
			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_1672173326"
			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_1280794667"
			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_1280794667"
			width="558"
			height="100">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_StyleBulletPoint2_468211397"
			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_468211397"
			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>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F06%2F18%2Fstyling-html-textfield-bullet-points%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F06%2F18%2Fstyling-html-textfield-bullet-points%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,AS3,Flash,TextField" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/06/18/styling-html-textfield-bullet-points/feed/</wfw:commentRss>
		<slash:comments>12</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 inter [...]]]></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>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F04%2F09%2Fas3-textfield-metrics-bug%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F04%2F09%2Fas3-textfield-metrics-bug%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,AS3,Flash,TextField" height="61" width="50" /><br />
			</a>
		</div>
]]></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 [...]]]></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.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F04%2F09%2Fimage-sequence-memory-issues%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F04%2F09%2Fimage-sequence-memory-issues%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,AS3,BitmapData,Flash" height="61" width="50" /><br />
			</a>
		</div>
]]></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 cacheAsBitma [...]]]></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>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F03%2F15%2Ftimeline-alpha-mas%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.formatlos.de%2F2009%2F03%2F15%2Ftimeline-alpha-mas%2F&amp;source=formatlos&amp;style=normal&amp;hashtags=ActionScript,Add+new+tag,AS3,Flash" height="61" width="50" /><br />
			</a>
		</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.formatlos.de/2009/03/15/timeline-alpha-mas/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
