﻿<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
<title>ExpatTech TechBlog RSS</title>
<link>http://www.expattech.com/tech-blog/200</link>
<description>Technology Blog of the ExpatTech Development Team</description>
<language>en</language>
<copyright>Copyright © ExpatTech</copyright>
<generator>ExpatTech Kapa RSS Engine</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<image> 
	<title>ExpatTech TechBlog RSS</title> 
	<url>http://pix.expattech.com/smallet.png</url> 
	<link>http://www.expattech.com/tech-blog/200</link> 
	<width>59</width> 
	<height>88</height> 
</image> 
<item>
	<guid isPermaLink="true">http://www.expattech.com/custom-desktop-configurations/40081</guid>
	<pubDate>Thu, 18 Aug 11 11:20:57 -0400</pubDate> 
	<title>Dylan Cooper: Custom Desktop Configurations</title> 
	<description>&lt;p&gt;
	We have a new service here at ExpatTech. Having made good contacts with several wholesalers of computer parts here in Budapest, we are now designing and building custom desktop configurations for clients.&lt;/p&gt;
&lt;p&gt;
	We can get any type of component required, and can build anything from the simplest computer configuration for basic office use through to high end gaming machines with high capacity video cards and bullet-proof power supplies.&lt;/p&gt;
&lt;p&gt;
	Regarding costs, prices for the confiugartions we build range from 55,000 to 555,000 forints - you can also specify a budget, and we will put together a computer to suit!&lt;/p&gt;
&lt;p&gt;
	Call us on (+36-1) 215 1143 for further details or a quote for your dream computer!&lt;/p&gt;
</description> 
		<link>http://www.expattech.com/custom-desktop-configurations/40081</link>
	<category domain="http://www.expattech.com/tech-blog/motherboard/20004">motherboard</category>
	<category domain="http://www.expattech.com/tech-blog/hard-drive/20011">hard drive</category>
	<category domain="http://www.expattech.com/tech-blog/hardware/20012">hardware</category>
	<category domain="http://www.expattech.com/tech-blog/ram/20023">RAM</category>
	<category domain="http://www.expattech.com/tech-blog/memory/20024">memory</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/svg-graphics-and-generating-them/40080</guid>
	<pubDate>Wed, 27 Apr 11 04:53:17 -0400</pubDate> 
	<title>Peter Todd: SVG Graphics and generating them</title> 
	<description>&lt;p&gt;
	SVG (Scalable Vector Graphics) is an XML-based format. It is quite nice and useful, especially if we want to use them specifically. Therefore here we have a nice little example, how to create SVG graphics.&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/svg-graphics-and-generating-them/40080&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/svg-graphics-and-generating-them/40080</link>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/trick-for-creating-a-list-of-your-files/40078</guid>
	<pubDate>Thu, 14 Apr 11 07:26:29 -0400</pubDate> 
	<title>Peter Todd: Trick for creating a list of your files</title> 
	<description>&lt;p&gt;
	Have you ever wanted to have a list of your files? If you have to do a quick list of your files and / or folders, get the location of the files or folders. In Windows this can be done by right clicking on the parent folder, going to Properties, then checking Location. Copy and paste this text into your browser and see the list. Copy the list and paste it to your favourite text editor, word processor, or cellular data editing software (Excel, Google Spreadsheets etc).&lt;/p&gt;
</description> 
		<link>http://www.expattech.com/trick-for-creating-a-list-of-your-files/40078</link>
	<category domain="http://www.expattech.com/tech-blog/windows-xp/20008">Windows XP</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-tricks-conditional-chains/40077</guid>
	<pubDate>Mon, 17 Jan 11 07:06:53 -0500</pubDate> 
	<title>Peter Todd: Flash Cookbook - Tricks - Conditional chains</title> 
	<description>&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;br /&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/flash-cookbook-tricks-conditional-chains/40077&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/flash-cookbook-tricks-conditional-chains/40077</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/flash/20019">Flash</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-tricks-shortening-code/40076</guid>
	<pubDate>Mon, 17 Jan 11 06:52:06 -0500</pubDate> 
	<title>Peter Todd: Flash Cookbook - Tricks - Shortening code</title> 
	<description>&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;div firebugversion=&quot;1.5.4&quot; id=&quot;_firebugConsole&quot; style=&quot;display: none;&quot;&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;p&gt;
	This trick is about shortening actionscript code.&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/flash-cookbook-tricks-shortening-code/40076&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/flash-cookbook-tricks-shortening-code/40076</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/flash/20019">Flash</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-tricks-reach-property-of-subclass-from-baseclass-crosslinking/40075</guid>
	<pubDate>Wed, 03 Nov 10 08:09:23 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - Tricks - Reach property of subclass from baseclass, crosslinking</title> 
	<description>&lt;p&gt;
	If you extend a base class and still want to reach properties of the subclass, use the hasOwnProperty method.&lt;/p&gt;
&lt;p&gt;
	BASE CLASS:&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;if(this.hasOwnProperty(PROPERTY_NAME_STRING)) this[PROPERTY_NAME_STRING] do something;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	This wouldn&amp;#39;t work:&lt;/p&gt;
&lt;p&gt;
	BASE CLASS:&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;this.FUNCTION_OF_SUBCLASS();&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	This is useful, if you have different subclasses of the same baseclass, but want to assign unique variables or functions to each subclass.&lt;/p&gt;
&lt;p&gt;
	Note: it&amp;#39;s better to make the specific property public.&lt;/p&gt;
</description> 
		<link>http://www.expattech.com/flash-cookbook-tricks-reach-property-of-subclass-from-baseclass-crosslinking/40075</link>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-tricks-getdefinitionbyname/40074</guid>
	<pubDate>Tue, 02 Nov 10 07:37:06 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - Tricks - GetDefinitionByName</title> 
	<description>&lt;p&gt;
	Sometimes it&amp;#39;s really handy to use the flash.utils.getDefinitionByName function. This gives you a dynamic instance creation especially if you use an object model description for your application. Let&amp;#39;s say you created an xml with items, each describes an object with a classname. Then you can generate the objects with a loop, using the getDefinitionByName function.&lt;/p&gt;
&lt;p&gt;
	var classbyname:Class = getDefinitionByName(classname) as Class;&lt;br /&gt;
	var object:* = new classbyname();&lt;/p&gt;
&lt;p&gt;
	This can be done with the code below too:&lt;/p&gt;
&lt;p&gt;
	if(classname == SOME_CLASS_NAME) var object:* = new SOME_CLASS_NAME();&lt;/p&gt;
&lt;p&gt;
	This case you don&amp;#39;t need the getDefinitionByName() function, but you loose the chance to create your code fully dynamic. You always have to come back to this part of the code and add a new case if you create a new class. Using getDefinitionByName() doesn&amp;#39;t need this, but of course it&amp;#39;s not without any further todos.&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/flash-cookbook-tricks-getdefinitionbyname/40074&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/flash-cookbook-tricks-getdefinitionbyname/40074</link>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-css-css-parser-parsing-css-stylesheet-and-style/40073</guid>
	<pubDate>Thu, 28 Oct 10 10:25:11 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - CSS - CSS parser, parsing CSS StyleSheet and Style</title> 
	<description>&lt;p&gt;
	Even though Flash has a built-in css parser, still it&amp;#39;s not the best one. After running some tests it came out, it does not really support a lot of things. For example you can&amp;#39;t use hyphen in declarations, nor you can use spaces in selectors.&lt;/p&gt;
&lt;p&gt;
	These things are needed for our work, therefore the only way left is to write our own parser. In this post we write the basics - think it through, take it further and you will get a nice and handy class for your own.&lt;/p&gt;
&lt;p&gt;
	Plus, the StyleSheet.parseCSS() method does not support styles not surrounded by curly brackets. This is what you can use in the attributes of an xml-tag: style=&amp;quot;font-size: 15px&amp;quot;. This wouldn&amp;#39;t be understood by the built-in parser.&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/flash-cookbook-css-css-parser-parsing-css-stylesheet-and-style/40073&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/flash-cookbook-css-css-parser-parsing-css-stylesheet-and-style/40073</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/flash/20019">Flash</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/blog-weekend-mind-experiment-with-a-javascript-prime-checker-and-distributed-computing/40072</guid>
	<pubDate>Sun, 24 Oct 10 16:43:57 -0400</pubDate> 
	<title>Peter Todd: Blog Weekend - Mind experiment with a javascript prime checker and distributed computing</title> 
	<description>&lt;p&gt;
	The most basic way of checking if a number is a prime number is to divide the number with all the numbers starting from 2 to the square-root. If there is no remainder, the number is a prime.&lt;/p&gt;
&lt;div&gt;
	&lt;code&gt;function checkIfPrime(n)&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
	&lt;code&gt;{&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
	&lt;code&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; for(var i = 2; i &amp;lt;= Math.sqrt(n); i++) if(n % i == 0) return false;&lt;/code&gt;&lt;br /&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	&lt;code&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; return true;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
	&lt;code&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	where % is the modulo. a % b gives the remainder of &amp;#39;a div b&amp;#39;, where div is the integer division. 6 % 5 gives 1.&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	Javascript&amp;#39;s number is a double precision floating-point format, which has an approximately 16 decimal digit integer precision (1).&lt;/div&gt;
&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
	After some tests, we can state, that in javascript 15 digit integers can be used without a problem. Therefore we take this limit to play with, our first attempt will be to calculate all the prime numbers up to 15 digits.&lt;/div&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/blog-weekend-mind-experiment-with-a-javascript-prime-checker-and-distributed-computing/40072&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/blog-weekend-mind-experiment-with-a-javascript-prime-checker-and-distributed-computing/40072</link>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/browser-bookmark-containing-javascript/40071</guid>
	<pubDate>Fri, 22 Oct 10 08:43:28 -0400</pubDate> 
	<title>Peter Todd: Browser bookmark containing javascript</title> 
	<description>&lt;p&gt;
	We can do a nice little tweak with the bookmarks. Bookmarks are usually used as bookmarks: they point to a web address. Browsers nowadays support add-ons or extensions and there is a huge palette of these nice little utilities helping us browsing faster and spend our time on the territory of world wide web. But for some people these add-ons (or extensions) are suspicious or some people cannot find the one they need for a task. A webprogrammer writes his/her own in this case, but what if the task we want to do is far easier then sitting down and struggling with an add-on (or extension).&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/browser-bookmark-containing-javascript/40071&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/browser-bookmark-containing-javascript/40071</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/software/20027">software</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/google-chrome-extensions-the-first-steps/40070</guid>
	<pubDate>Wed, 13 Oct 10 09:45:14 -0400</pubDate> 
	<title>Peter Todd: Google Chrome Extensions - The first steps</title> 
	<description>&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	In this tutorial we will go through the first steps of creating a simple Google Chrome Extension.&lt;/p&gt;
&lt;p&gt;
	This extension will have a button in the browser and a popup with some content.&lt;/p&gt;
&lt;p&gt;
	We need to create 3 files:&lt;/p&gt;
&lt;p&gt;
	1. icon.png - I created a simple icon image, 32x32 in an image editor&lt;br /&gt;
	2. manifest.json - description of the extension&lt;br /&gt;
	3. index.html - content of the popup&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/google-chrome-extensions-the-first-steps/40070&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/google-chrome-extensions-the-first-steps/40070</link>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-tricks-super-size-bitmap-bitmapdata-infinite-size/40069</guid>
	<pubDate>Fri, 08 Oct 10 06:31:51 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - Tricks - Super size bitmap, bitmapdata, infinite size</title> 
	<description>&lt;p&gt;
	Today I ran into a problem. As we all know, Flash has a size limit on bitmapdata size.&lt;/p&gt;
&lt;p&gt;
	Basically there are two rules to follow (see the &lt;a target=&quot;_blank&quot;&gt;specs&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;
	Both the width and height has to be maximum 8,191 pixels&lt;/p&gt;
&lt;p&gt;
	and&lt;/p&gt;
&lt;p&gt;
	the amount pixels of the bitmapdata cannot exceed 16,777,215.&lt;/p&gt;
&lt;p&gt;
	Well, well, well...&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/flash-cookbook-tricks-super-size-bitmap-bitmapdata-infinite-size/40069&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/flash-cookbook-tricks-super-size-bitmap-bitmapdata-infinite-size/40069</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/flash/20019">Flash</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/creating-an-rss-20-feed-with-php/40068</guid>
	<pubDate>Tue, 05 Oct 10 10:31:37 -0400</pubDate> 
	<title>Nagy Richárd: Creating an RSS 2.0 Feed with PHP</title> 
	<description>&lt;p&gt;
	As RSS 2.0 is a well-established standard nowadays and a lot of people actually use it, it is quite useful sometimes to create an RSS feed for a blog or a news section. When creating the new ExpatTech TechBlog I really wanted to implement this feature, so I digged into the topic a bit.&lt;/p&gt;
&lt;p&gt;
	The first important thing to know that an RSS is actually an XML document, so you have to comply with the XML standards, and also RSS has a well-defined standard structure that you want to follow. One nice tool is &lt;a class=&quot;openinnew&quot; href=&quot;http://validator.w3.org/feed/&quot;&gt;W3C&amp;#39;s Feed Validation Service&lt;/a&gt; to check your feed.&lt;/p&gt;
&lt;p&gt;
	Of course I wanted to generate the RSS using PHP, because the whole site uses this technology. On websites the recommended charset is UTF-8, so for the examples I will use that.&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/creating-an-rss-20-feed-with-php/40068&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/creating-an-rss-20-feed-with-php/40068</link>
	<category domain="http://www.expattech.com/tech-blog/php/20002">PHP</category>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-tricks-store-data-in-bytearray-and-compress-it/40067</guid>
	<pubDate>Fri, 01 Oct 10 06:49:14 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - Tricks - Store data in bytearray and compress it</title> 
	<description>&lt;p&gt;
	You can create a nice little drawing application using the flash graphics tools. Let&amp;#39;s say you created an application, where you press the mousebutton, start to draw and draw lines by holding the button down. Every point your mouse reached is stored in an array at an ENTER_FRAME event.&lt;/p&gt;
&lt;p&gt;
	This way I did a hand-drawn rectangle, consisting 36 points. If you want to save this drawing point by point, you save this array in the SharedObjects or send it to a server-side script to save it somewhere on the server.&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/flash-cookbook-tricks-store-data-in-bytearray-and-compress-it/40067&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/flash-cookbook-tricks-store-data-in-bytearray-and-compress-it/40067</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/flash/20019">Flash</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-colors-part-2-invert-displayobjects-colors/40066</guid>
	<pubDate>Fri, 01 Oct 10 05:01:29 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - Colors - Part 2. Invert Displayobject's Colors</title> 
	<description>&lt;p&gt;
	To invert the colors of a displayobject you can use the transform.colorTransform property of the displayobject and apply a ColorTransform to it.&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/flash-cookbook-colors-part-2-invert-displayobjects-colors/40066&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/flash-cookbook-colors-part-2-invert-displayobjects-colors/40066</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/flash/20019">Flash</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-appendix-practical-xml-something-to-know/40065</guid>
	<pubDate>Thu, 30 Sep 10 10:15:00 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - Appendix - Practical XML - Something to know</title> 
	<description>&lt;p&gt;
	Today I used the flash in-built xml capability for designing an xml:&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;var xml:XML = &amp;lt;data&amp;gt;&amp;lt;obj&amp;gt;0&amp;lt;/obj&amp;gt;&amp;lt;obj&amp;gt;1&amp;lt;/obj&amp;gt;&amp;lt;/data&amp;gt;;&lt;br /&gt;
	trace(xml[&amp;quot;obj&amp;quot;][1]); //outputs 1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	when I arrived to a point, where I commented an item out:&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;var xml:XML = &amp;lt;data&amp;gt;&amp;lt;obj&amp;gt;0&amp;lt;/obj&amp;gt;/*&amp;lt;obj&amp;gt;1&amp;lt;/obj&amp;gt;*/&amp;lt;/data&amp;gt;;&lt;br /&gt;
	trace(xml[&amp;quot;obj&amp;quot;][1]); //outputs 1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	Hm, I thought, what happened here (okay, for five minutes I didn&amp;#39;t know what to do), I thought the flash miracoulusly cached my xml and loaded it from somewhere but not the IDE. Then came the hit: even though you think you&amp;#39;ve commented the part out, it didn&amp;#39;t delete it from the xml. Of course if you want to comment this out, you need the standard notation.&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;var xml:XML = &amp;lt;data&amp;gt;&amp;lt;obj&amp;gt;0&amp;lt;/obj&amp;gt;&amp;lt;!--&amp;lt;obj&amp;gt;1&amp;lt;/obj&amp;gt;--&amp;gt;&amp;lt;/data&amp;gt;;&lt;br /&gt;
	trace(xml[&amp;quot;obj&amp;quot;][1]); //outputs undefined&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	But then what happens if you use the IDE&amp;#39;s comment notations?&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;var xml:XML = &amp;lt;data&amp;gt;&amp;lt;obj&amp;gt;0&amp;lt;/obj&amp;gt;/*&amp;lt;obj&amp;gt;1&amp;lt;/obj&amp;gt;*/&amp;lt;/data&amp;gt;;&lt;br /&gt;
	trace(xml);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	Surprisingly outputs:&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;&amp;lt;data&amp;gt;&lt;br /&gt;
	&amp;nbsp; &amp;lt;obj&amp;gt;0&amp;lt;/obj&amp;gt;&lt;br /&gt;
	&amp;nbsp; /*&lt;br /&gt;
	&amp;nbsp; &amp;lt;obj&amp;gt;1&amp;lt;/obj&amp;gt;&lt;br /&gt;
	&amp;nbsp; */&lt;br /&gt;
	&amp;lt;/data&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	and&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;var xml:XML = &amp;lt;data&amp;gt;&amp;lt;obj&amp;gt;0&amp;lt;/obj&amp;gt;&amp;lt;!--&amp;lt;obj&amp;gt;1&amp;lt;/obj&amp;gt;--&amp;gt;&amp;lt;/data&amp;gt;;&lt;br /&gt;
	trace(xml);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	outputs:&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;&amp;lt;data&amp;gt;&lt;br /&gt;
	&amp;nbsp; &amp;lt;obj&amp;gt;0&amp;lt;/obj&amp;gt;&lt;br /&gt;
	&amp;lt;/data&amp;gt;&lt;br /&gt;
	&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	Yes, xml takes whatever /**/ as a piece of the content. It doesn&amp;#39;t matter, that you are working with flash in a flash IDE, it won&amp;#39;t be a comment in your code if you use the XML type and its advantages (though we don&amp;#39;t know the advantages of this initialization). Use the rules of XML in an XML type.&lt;/p&gt;
</description> 
		<link>http://www.expattech.com/flash-cookbook-appendix-practical-xml-something-to-know/40065</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/flash/20019">Flash</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-colors-part-1-grayscale-displayobjects/40063</guid>
	<pubDate>Tue, 28 Sep 10 08:15:54 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - Colors - Part 1. Grayscale Displayobjects</title> 
	<description>&lt;p&gt;
	To set a displayobject grayscale we use a ColorMatrixFilter. To initialize the ColorMatrixFilter we need an array with specific elements in it...&lt;/p&gt;
&lt;p&gt;
	Read more, amigo mio!&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/flash-cookbook-colors-part-1-grayscale-displayobjects/40063&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/flash-cookbook-colors-part-1-grayscale-displayobjects/40063</link>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-colors-colors-r-g-b-and-alpha-hex-and-dec-rgb-argb/40062</guid>
	<pubDate>Mon, 27 Sep 10 12:57:02 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - Colors - Colors, R, G, B, and alpha, hex and dec, RGB, ARGB</title> 
	<description>&lt;p&gt;
	In flash the color value is normally a uint.&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/flash-cookbook-colors-colors-r-g-b-and-alpha-hex-and-dec-rgb-argb/40062&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/flash-cookbook-colors-colors-r-g-b-and-alpha-hex-and-dec-rgb-argb/40062</link>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/flash-cookbook-appendix-sort-array-indices/40061</guid>
	<pubDate>Mon, 27 Sep 10 10:22:23 -0400</pubDate> 
	<title>Peter Todd: Flash Cookbook - Appendix - Sort array indices</title> 
	<description>&lt;p&gt;
	Yes. This is about array sorting. So there is the problem, that we want to sort an array, but want to know more about the indices. For this reason there is an option for Array.sort() function, which specifies the return value of sort():&lt;/p&gt;
&lt;p&gt;
	Array.RETURNINDEXEDARRAY.&lt;/p&gt;
&lt;p&gt;
	See the code below:&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;var array:Array = [&amp;quot;a&amp;quot;, &amp;quot;c&amp;quot;, &amp;quot;b&amp;quot;];&lt;br /&gt;
	var sort:Array = array.sort(Array.RETURNINDEXEDARRAY);&lt;br /&gt;
	trace(array, sort);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	&lt;code&gt;//a,c,b 0,2,1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;
	It didn&amp;#39;t sort the array, but returned an array with the sorted indices.&lt;/p&gt;
</description> 
		<link>http://www.expattech.com/flash-cookbook-appendix-sort-array-indices/40061</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/flash/20019">Flash</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
<item>
	<guid isPermaLink="true">http://www.expattech.com/fun-with-random-part-2/40060</guid>
	<pubDate>Fri, 24 Sep 10 06:10:53 -0400</pubDate> 
	<title>Peter Todd: Fun with Random - Part 2.</title> 
	<description>&lt;p&gt;
	In the second part we create a static class for our random function, add a practical function and check whether it is really random.&lt;/p&gt;
&lt;a class=&quot;readmore&quot; href=&quot;/fun-with-random-part-2/40060&quot;&gt;Read More&lt;/a&gt;</description> 
		<link>http://www.expattech.com/fun-with-random-part-2/40060</link>
	<category domain="http://www.expattech.com/tech-blog/webprogramming/20009">webprogramming</category>
	<category domain="http://www.expattech.com/tech-blog/flash/20019">Flash</category>
	<category domain="http://www.expattech.com/tech-blog/software/20027">software</category>
	<category domain="http://www.expattech.com/tech-blog/optimization/20030">optimization</category>
</item>
</channel>
</rss>
