<?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>[mck] &#187; XML</title>
	<atom:link href="http://www.matthijskamstra.nl/blog/index.php/tag/xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matthijskamstra.nl/blog</link>
	<description>a polymath zapper</description>
	<lastBuildDate>Fri, 27 Jan 2012 22:32:36 +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>FDT and ANT &#8211; part 1</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2010/07/07/fdt-and-ant-part-1/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2010/07/07/fdt-and-ant-part-1/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 09:57:30 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[FDT]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ANT-Build-template]]></category>
		<category><![CDATA[ANT-file]]></category>
		<category><![CDATA[ANT-snippets]]></category>
		<category><![CDATA[ANT-View]]></category>
		<category><![CDATA[flashdevelop]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=1441</guid>
		<description><![CDATA[Just started to work with FDT and wrote about my &#8220;troubles&#8221; (post#1 and post#2) with my transition from FlashDevelop. (have to be very carefull what I say: &#8220;they&#8221; are watching me: here and here ) And it seems to be a very natural (geeky) thing to learn about ANT. And where do you go to [...]]]></description>
			<content:encoded><![CDATA[<p>Just started to work with <a href="http://www.fdt.powerflasher.com/">FDT</a> and wrote about my &#8220;troubles&#8221; (<a href="http://www.matthijskamstra.nl/blog/index.php/2010/06/16/moving-from-flashdevelop-to-fdt/">post#1</a> and <a href="http://www.matthijskamstra.nl/blog/index.php/2010/06/29/missing-in-fdt-after-working-with-flashdevelop/">post#2</a>) with my transition from <a href="http://www.flashdevelop.org/wikidocs/index.php?title=Main_Page">FlashDevelop</a>.<br />
<em>(have to be very carefull what I say: &#8220;they&#8221; are watching me: <a href="http://www.matthijskamstra.nl/blog/index.php/2010/06/29/missing-in-fdt-after-working-with-flashdevelop/#comment-11773">here</a> and <a href="http://twitter.com/BrunoFonzi/statuses/17355312899" class="broken_link">here</a> <img src='http://www.matthijskamstra.nl/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )<br />
</em><br />
And it seems to be a very natural (geeky) thing to learn about <a href="http://ant.apache.org/" target="_blank">ANT</a>.</p>
<p>And where do you go to learn about ANT and SWF/Flash/FDT? (<a href="http://www.google.com/search?q=fdt+ant" target="_blank">Google</a>?)<br />
After some tinkering all I got was: <code><strong>failed to create task or type fdt.launch.application</strong></code></p>
<p>This post was very useful: <a href="http://blog.alanklement.com/2009/08/10/fdt-and-ant-a-users-guide-part-i/">FDT and ANT | A User’s Guide – Part I</a> by Alan Klement.<br />
Watch the videos (I&#8217;m not very fond of tutorial videos but in this case; they get the job done).<br />
What I love about the &#8220;<a href="http://blog.alanklement.com/files/videos/ant_part_one.mov">Video I: Getting Started</a>&#8221; is the fact that it builds up from scratch. So watch this video when you want to know about ant-files/xml, how to open the ANT-View, how to open/execute an ANT-file.</p>
<p>The second video (<a href="http://blog.alanklement.com/files/videos/ant_part_two.mov">Video II: Compiling a SWF</a>) was what I really was looking for: how to export a SWF. Very nice because it starts from scratch.<br />
And it gave me the answer I was looking for: why didn&#8217;t my ANT-file didn&#8217;t work (it about 3/4 of the video):<br />
<code><br />
BUILD FAILED<br />
[blabla]\source\a\example\build\build.xml:17: Problem: <strong>failed to create task or type fdt.launch.application</strong><br />
Cause: The name is undefined.<br />
Action: Check the spelling.<br />
Action: Check that any custom tasks/types have been declared.<br />
Action: Check that any
<presetdef>/<macrodef> declarations have taken place.<br />
</code></p>
<p><strong>Solution is very simple</strong>, but if you don&#8217;t know, you will hate FDT and really it&#8217;s not it fault:<br />
Goto the green &#8220;play&#8221; button with the brown bag, in the toolbar (one picture says more than a thousand words:)<br />
<img src="http://www.matthijskamstra.nl/blog/wp-content/uploads/external_tools_configurations_hoover.png" alt="" title="external_tools_configurations_hoover" width="229" height="142" class="alignnone size-full wp-image-1444" /></p>
<p>Select the ANT-file you want to change (I have only one <img src='http://www.matthijskamstra.nl/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ), goto to tab &#8220;<strong>JRE</strong>&#8221; and change the <strong>Runtime JRE</strong> to <strong>Run in the same JRE as the workspace</strong> and your done:<br />
<a href="http://www.matthijskamstra.nl/blog/wp-content/uploads/external_tools_configurations.png" target="_blank"><img src="http://www.matthijskamstra.nl/blog/wp-content/uploads/external_tools_configurations.png" alt="" title="external_tools_configurations" width="500" class="alignnone size-full wp-image-1445" /></a></p>
<p>Very useful are the ANT-snippets and ANT-Build-template!<br />
<a href="http://blog.alanklement.com/files/zip/ant_templates.zip">Download</a> (created by Alan Klement) and &#8220;install&#8221; the ANT-template (how-to on <a href="http://blog.alanklement.com/2009/08/10/fdt-and-ant-a-users-guide-part-i/">this page</a> but here the short version)</p>
<blockquote><p>
To add XML files templates go: <strong>Preferences > XML > XML Files > Editor > Templates</strong> and click import.</p>
<p>To add Ant snippets go: <strong>Preferences > Ant > Editor > Templates</strong> and click import.</p></blockquote>
<p>I haven&#8217;t seen the second part of this tutorial: <a href="http://blog.alanklement.com/2009/08/19/fdt-ant-part-two/">FDT and ANT | A User’s Guide – Part II</a> but I will.<br />
It seems to be focused on the use of the templates and snippets.</p>
<p>source:<br />
<a href="http://blog.alanklement.com/2009/08/10/fdt-and-ant-a-users-guide-part-i/">FDT and ANT | A User’s Guide – Part I</a><br />
<a href="http://blog.alanklement.com/2009/08/19/fdt-ant-part-two/">FDT and ANT | A User’s Guide – Part II</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2010/07/07/fdt-and-ant-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://blog.alanklement.com/files/videos/ant_part_one.mov" length="15458577" type="video/quicktime" />
<enclosure url="http://blog.alanklement.com/files/videos/ant_part_two.mov" length="17294254" type="video/quicktime" />
		</item>
		<item>
		<title>What about SVG files?</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2010/03/31/what-about-svg-files/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2010/03/31/what-about-svg-files/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 09:00:39 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Urban papercraft]]></category>
		<category><![CDATA[Freeware]]></category>
		<category><![CDATA[illustrator]]></category>
		<category><![CDATA[PaperToy]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=1324</guid>
		<description><![CDATA[Previous post I wrote some vector files but not the kind you are used from me. Usually I use .PDF but in the case I use .SVG files, and you want to know what that is about&#8230; What is a .SVG file? Wikipedia on this subject: http://en.wikipedia.org/wiki/Svg Scalable Vector Graphics (SVG) is a family of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.matthijskamstra.nl/blog/index.php/2010/03/17/papertoy-bizz-part-1/">Previous</a> <a href="http://www.matthijskamstra.nl/blog/index.php/2010/03/24/papertoy-bizz-part-2/">post</a> I wrote some vector files but not the kind you are used from me.<br />
Usually I use .PDF but in the case I use .SVG files, and you want to know what that is about&#8230;</p>
<h3>What is a .SVG file? </h3>
<p>Wikipedia on this subject: <a href="http://en.wikipedia.org/wiki/Svg">http://en.wikipedia.org/wiki/Svg</a></p>
<blockquote><p><strong>Scalable Vector Graphics (SVG)</strong> is a family of specifications of an XML-based file format for describing two-dimensional vector graphics, both static and dynamic (i.e. interactive or animated).</p></blockquote>
<p>The official info can be found here: <a href="http://www.w3.org/Graphics/SVG/">http://www.w3.org/Graphics/SVG/</a></p>
<blockquote><p><strong>Scalable Vector Graphics (SVG)</strong><br />
XML Graphics for the Web</p></blockquote>
<h3>What is useful about this file?</h3>
<p>It&#8217;s very small, most modern browsers can show it and vector edit programs like (online) <a href="http://aviary.com/launch/raven?lang=en#">Aviary Raven (press create and file > import files)</a> or offline <a href="http://www.inkscape.org/">Inkscape</a> or Illustrator.</p>
<h3>Why doesn&#8217;t use everybody this in the papertoy scene?</h3>
<p>There is no uniform way to show it in a blog post; every browser works different. I haven&#8217;t worked with it a lot and there seem to be some problem with fonts embedding (can also be my inexperience). And people are used to .PDF and viewing files in Adobe Reader (or another .PDF viewer). Another &#8220;problem&#8221; is that WordPress (this blog runs on it) doesn&#8217;t recognize a .SVG file as an image (it labels it as a dangerous file!!)</p>
<h3>Example</h3>
<p><strong>Business holder template</strong><br />
<object data="http://www.matthijskamstra.nl/blog/wp-content/uploads/business_holder.svg" width="481" height="493" type="image/svg+xml"><img src="http://www.matthijskamstra.nl/blog/wp-content/uploads/business_holder.png" /></object><br />
<em><a href="http://www.matthijskamstra.nl/blog/wp-content/uploads/business_holder.svg">Download the template as .SVG</a> (use &#8220;Save Link As&#8230;&#8221;)</em></p>
<p><strong>Business stand (simple) template</strong><br />
<object data="http://www.matthijskamstra.nl/blog/wp-content/uploads/business_stand.svg" width="325" height="210" type="image/svg+xml"><img src="http://www.matthijskamstra.nl/blog/wp-content/uploads/business_stand.png" /></object><br />
<em><a href="http://www.matthijskamstra.nl/blog/wp-content/uploads/business_stand.svg">Download the template as .SVG</a> (use &#8220;Save Link As&#8230;&#8221;)</em></p>
<p>If you don&#8217;t see any images, you probably using old browser.<br />
I have tested this in Firefox 3.6 (OSX and XP), Google Chrome (XP) and Internet Explorer (XP)</p>
<h3>How to create or change a .SVG file?</h3>
<p>There is a Firefox addon: <a href="https://addons.mozilla.org/en-US/firefox/tag/svgedit">svg-edit</a>. This can be used for creating files but you can&#8217;t open them yet (net version will) so you have to open a .SVG file in a text editor (like notepad++) and copy paste it.<br />
There is an awesome project online called <a href="http://aviary.com">Aviary</a> that also has a vector edit web application: <a href="http://aviary.com/launch/raven?lang=en#">Aviary Raven</a>. You first need op press &#8220;create&#8221; and then it&#8217;s possible to import a file (file > import files). You can also use <a href="http://www.inkscape.org/">Inkscape</a> (freeware) or Adobe Illustrator ($$$).</p>
<h3>How to download?</h3>
<p>Use &#8220;save as&#8221; on a <a href="http://www.matthijskamstra.nl/blog/wp-content/uploads/business_holder.svg">link</a> or &#8220;save this page&#8221; if you have clicked on the link.<br />
Make sure that the file you want to save, end with the extension .SVG (Firefox save this file as a .XML file for example)</p>
<h3>How to open?</h3>
<p>Use <a href="http://aviary.com/launch/raven?lang=en#">Aviary Raven (press create and file>import files)</a>, <a href="http://www.inkscape.org/">Inkscape</a> or Illustrator.</p>
<h3>How to print?</h3>
<p>You can print from Firefox: open the <a href="http://www.matthijskamstra.nl/blog/wp-content/uploads/business_holder.svg">link</a> and print.<br />
Are you used to .PDF files? Save the .SVG files (<a href="http://www.matthijskamstra.nl/blog/wp-content/uploads/business_holder.svg">link</a>) to your hard drive and visite <a href="http://www.fileformat.info/convert/image/svg2pdf.htm">www.fileformat.info</a> and convert .SVG to a .PDF (remember to save the file as .PDF : in my case it change the extension to .HTM)</p>
<h3>Should everybody start using SVG files?</h3>
<p>Yes and no: yes because they are very small and most of the modern browsers can show the image&#8230;. but sadly not in a page/post which makes as difficult to use as .PDF.<br />
And .PDF is what people know&#8230; It will probably get bigger if Firefox will treat .SVG files as an image file like Google Chrome and Safari does.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2010/03/31/what-about-svg-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter rss reader in Flash as3</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2009/12/30/twitter-rss-reader-in-flash-as3/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2009/12/30/twitter-rss-reader-in-flash-as3/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 08:00:16 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Urban papercraft]]></category>
		<category><![CDATA[Papercraft]]></category>
		<category><![CDATA[PaperToy]]></category>
		<category><![CDATA[PaperToys]]></category>
		<category><![CDATA[Urban]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=1196</guid>
		<description><![CDATA[Update #1: must read this post, otherwise this code will fail when you place it on your server! I recently started my own company (eMCeeKay.nl) and I need to make a website for it&#8230;. Not really a problem besides that I don&#8217;t have any time to create a design. So I was thinking about a [...]]]></description>
			<content:encoded><![CDATA[<div class="update"><strong>Update #1:</strong> <a href="http://www.matthijskamstra.nl/blog/index.php/2010/01/06/twitter-rss-reader-part-2/">must read this post</a>, otherwise this code will fail when you place it on your server!</div>
<p>I recently started my own company (<a href="http://www.eMCeeKay.nl">eMCeeKay.nl</a>) and I need to make a website for it&#8230;. Not really a problem besides that I don&#8217;t have any time to create a design.</p>
<p>So I was thinking about a easy way to update this website without spending extra time on that.</p>
<p>Because the main focus of the company is papertoys (urban papertoys), I need design or papertoy related info in my my new website ().</p>
<p>And I came with two ways to update it without extra effort: <a href="http://www.twitter.com/matthijskamstra">twitter</a> (I tweet about a lot of stuff but primarily about papertoys) and this the content on this blog (category: <a href="http://www.matthijskamstra.nl/blog/index.php/category/design/urban-papercraft/">urban-papercraft</a>).</p>
<p>I started with the Twitter part.<br />
There are two Twitter AS3 libraries that &#8220;speak&#8221; to the Twitter API: <a href="http://code.google.com/p/twitterscript/">twitterscript/</a> and <a href="http://code.google.com/p/tweetr/">tweetr/</a>.<br />
But after reading the source I concluded that it was a little bit to much: I don&#8217;t want to tweet from emceekay.nl or do searches, so that was not the way to go.</p>
<p>A little google search gave me the solution: <a href="http://www.theflashlogs.org/flash/displaying-twitter-feeds-in-flash-with-rss/" class="broken_link">http://www.theflashlogs.org/flash/displaying-twitter-feeds-in-flash-with-rss/</a>, simple using the standard rss from Twitter (in my case: <a href="http://twitter.com/statuses/user_timeline/27657030.rss" title="Matthijs Kamstra - Twitter - rss" rel="alternate" type="application/rss+xml">Matthijs Kamstra &#8211; Twitter &#8211; rss</a>).</p>
<p>The code on theflashlogs.org is pritty simple, and very easy to use.<br />
So my code is a little addition to that, I need some stuff done to the rss feed:</p>
<ul>
<li>remove &#8220;MatthijsKamstra:&#8221; form the title</li>
<li>convert <strong>@paperkraft</strong> to a link</li>
<li>convert <strong>#Mecha6</strong> to a link</li>
<li>convert <strong>http://</strong> to a link</li>
</ul>
<p>Here is my code:<br />
[as light="false" wraplines="false"]<br />
package nl.emceekay.twttr<br />
{<br />
	import flash.display.MovieClip;<br />
	import flash.events.Event;<br />
	import flash.net.URLLoader;<br />
	import flash.net.URLRequest;<br />
	import flash.text.TextField;<br />
	/**<br />
	 * // nl.emceekay.twttr.TwttrExample<br />
	 * &#8230;<br />
	 * @author Matthijs Kamstra aka [mck]<br />
	 */<br />
	public class TwttrExample extends MovieClip<br />
	{<br />
		//default: http://twitter.com/matthijskamstra<br />
		private var url:String = &quot;http://twitter.com/statuses/user_timeline/27657030.rss&quot;; </p>
<p>		private var _txt:TextField;</p>
<p>		public function TwttrExample()<br />
		{<br />
			stage.scaleMode = &quot;noScale&quot;;<br />
			stage.align = &quot;TL&quot;;</p>
<p>			// generate textfield<br />
			_txt = new TextField()<br />
			_txt.x = 10;<br />
			_txt.y = 10;<br />
           		 _txt.width = stage.stageWidth &#8211; 20;<br />
           		_txt.height =  stage.stageHeight &#8211; 20;<br />
			_txt.wordWrap = true;<br />
			_txt.multiline = true;<br />
			_txt.autoSize = &quot;left&quot;;<br />
			addChild(_txt);</p>
<p>			// start<br />
			getFeed(url);<br />
		}</p>
<p>		//////////////////////////////////////// loading rss / show rss ////////////////////////////////////////</p>
<p>		private function getFeed (inURL:String) : void<br />
		{<br />
			_txt.htmlText = &quot;getting tweets&quot;;</p>
<p>			var loader:URLLoader = new URLLoader();<br />
			loader.addEventListener(Event.COMPLETE, onFeedHandler);<br />
			loader.load(new URLRequest(inURL));<br />
		}</p>
<p>		private function onFeedHandler (e:Event):void<br />
		{<br />
			_txt.htmlText = &quot;&quot;;<br />
			var _feed:XML = new XML(e.target.data);<br />
			var _item:XMLList = _feed.channel.item;<br />
			for each (var feedItem:XML in _item){<br />
				var _title		:String = feedItem.title;<br />
				var _pubDate	:String = feedItem.pubDate;<br />
				var _link		:String = feedItem.link;</p>
<p>				_title = convertTweet(_title);</p>
<p>				_txt.htmlText += _title + &quot;&lt;br&gt;&lt;i&gt;&quot; + _pubDate + &quot;&lt;/i&gt;&lt;br&gt;&lt;br&gt;&quot;;<br />
			}<br />
		}</p>
<p>		//////////////////////////////////////// twitter specific ////////////////////////////////////////</p>
<p>		// one place to convert the tweet<br />
		private function convertTweet (inString:String):String<br />
		{<br />
			var _str:String = inString;<br />
			_str = twttrStripName(_str);<br />
			_str = twttrConvertHTTP(_str);<br />
			_str = twttrConvertMention(_str);<br />
			_str = twttrConvertHashtag(_str);<br />
			_str = twttrConvertSmileys(_str);<br />
			return _str;<br />
		}</p>
<p>		// remove the writers name from the tweet<br />
		private function twttrStripName (inString:String):String<br />
		{<br />
			var _str:String = inString;<br />
			var _charNumber:Number = _str.indexOf(&quot;:&quot;);<br />
			return _str.substr(_charNumber + 2);<br />
		}</p>
<p>		// convert http-strings to links<br />
		private function twttrConvertHTTP(inString:String):String<br />
		{<br />
			var _str:String = inString;<br />
			var _array:Array = _str.split(&quot; &quot;);<br />
			for (var i:int = 0; i &lt; _array.length; i++)<br />
			{<br />
				var _str2:String = twttrStripChar(_array[i]);<br />
				if (_array[i].indexOf(&quot;http&quot;) != -1)<br />
				{<br />
					_array[i] = &quot;&lt;u&gt;&lt;a href=&#8217;&quot; + _str2 + &quot;&#8217; target=&#8217;_blank&#8217;&gt;&quot; +_array[i] + &quot;&lt;/a&gt;&lt;/u&gt;&quot;;<br />
				}<br />
			}<br />
			return _array.join(&quot; &quot;);<br />
		}</p>
<p>		// convert mentions (@) to links<br />
		private function twttrConvertMention(inString:String):String<br />
		{<br />
			var _str:String = inString;<br />
			var _array:Array = _str.split(&quot; &quot;);<br />
			for (var i:int = 0; i &lt; _array.length; i++)<br />
			{<br />
				var _str2:String = twttrStripChar(_array[i]);<br />
				if (_array[i].substr(0, 1) == &quot;@&quot;)<br />
				{<br />
					_array[i] = &quot;&lt;u&gt;&lt;a href=&#8217;http://www.twitter.com/&quot; + _str2.split(&quot;@&quot;)[1] + &quot;&#8217; target=&#8217;_blank&#8217;&gt;&quot; +_array[i] + &quot;&lt;/a&gt;&lt;/u&gt;&quot;;<br />
				}<br />
			}<br />
			return _array.join(&quot; &quot;);<br />
		}</p>
<p>		// convert hashtags (#) to links<br />
		private function twttrConvertHashtag(inString:String):String<br />
		{<br />
			var _str:String = inString;<br />
			var _array:Array = _str.split(&quot; &quot;);<br />
			for (var i:int = 0; i &lt; _array.length; i++)<br />
			{<br />
				var _str2:String = twttrStripChar(_array[i]);<br />
				if (_array[i].substr(0, 1) == &quot;#&quot;)<br />
				{<br />
					_array[i] = &quot;&lt;u&gt;&lt;a href=&#8217;http://twitter.com/search?q=%23&quot; + _str2.split(&quot;#&quot;)[1] + &quot;&#8217; target=&#8217;_blank&#8217;&gt;&quot; +_array[i] + &quot;&lt;/a&gt;&lt;/u&gt;&quot;;<br />
				}<br />
			}<br />
			return _array.join(&quot; &quot;);<br />
		}		</p>
<p>		// TODO: [mck] convert <img src='http://www.matthijskamstra.nl/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  to a smiley image<br />
		private function twttrConvertSmileys(inString:String):String<br />
		{<br />
			var _str:String = inString;<br />
			return _str;<br />
		}</p>
<p>		// remove &quot;strange&quot; characters from the end of the string<br />
		private function twttrStripChar(inString:String):String<br />
		{<br />
			var _str:String = inString;<br />
			var _charArray:Array = [',', ';', ':', ' ', '-', '_'];<br />
			for (var i:int = 0; i &lt; _charArray.length; i++)<br />
			{<br />
				if (_str.charAt(_str.length &#8211; 1) == _charArray[i]) {<br />
					_str = _str.substr(0, _str.length &#8211; 1);<br />
				}<br />
			}<br />
			return _str;<br />
		}</p>
<p>	} // end class</p>
<p>} // end package<br />
[/as]</p>
<p>Currently I have only this proof of concept, but soon I will post the example on <a href="http://www.emceekay.nl">emceekay.nl</a>&#8230;</p>
<p>Because this is part one of what I want to do, and don&#8217;t want to search for every link again, I&#8217;m posting also the WordPress link here (it&#8217;s just because I&#8217;m lazy).</p>
<p>So here the feeds I will be using:</p>
<ul>
<li><a href="http://twitter.com/statuses/user_timeline/27657030.rss" title="Matthijs Kamstra - Twitter - rss" rel="alternate" type="application/rss+xml">Matthijs Kamstra &#8211; Twitter &#8211; rss</a></li>
<li><a href="http://www.matthijskamstra.nl/blog/wp-rss2.php?cat=11" title="[mck] Urban papercraft RSS feed" rel="alternate" type="application/rss+xml">All Urban papercraft posts</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2009/12/30/twitter-rss-reader-in-flash-as3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Notepad++ opens ActionScript file with Haskell syntax highlighting</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2009/05/27/notepad-opens-actionscript-file-with-haskell-syntax-highlighting/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2009/05/27/notepad-opens-actionscript-file-with-haskell-syntax-highlighting/#comments</comments>
		<pubDate>Wed, 27 May 2009 22:00:05 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[flashdevelop]]></category>
		<category><![CDATA[notepad]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=989</guid>
		<description><![CDATA[Sometimes I open ActionScript files in another editor then FlashDevelop. And in my case this is Notepad++. Notepad++ has ActionScript syntax highlighting but it seems that it doesn&#8217;t detect it. When I open an AS file it uses the Haskell syntax highlighting, and that is very annoying especially when you open a couple of files [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I open ActionScript files in another editor then FlashDevelop. And in my case this is <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad++</a>.<br />
Notepad++ has ActionScript syntax highlighting but it seems that it doesn&#8217;t detect it.<br />
When I open an AS file it uses the Haskell syntax highlighting, and that is very annoying especially when you open a couple of files and you need to set them one by one to ActionScript.</p>
<p>Google (who else) provided the answer: <a href="http://cboard.cprogramming.com/general-discussions/106510-notepadplusplus-opening-actionscript-files.html">here</a>.</p>
<p>This is what you do:<br />
find and open the <code>langs.xml</code> file<br />
you can find it in the install folder of Notepad++, in my case<br />
<code>C:\Program Files\Notepad++</code></p>
<p>find the haskell language<br />
<code>< Language name="haskell" ext="hs lhs as las" commentLine="--" ></code></p>
<p>and remove &#8220;<code>as</code>&#8221; from the ext and save the file.</p>
<p>Next time you open an AS file with notepad++ it will be highlighted in the correct syntax</p>
<p> <img src='http://www.matthijskamstra.nl/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2009/05/27/notepad-opens-actionscript-file-with-haskell-syntax-highlighting/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>XML Reader Flash panel &#8211; Todo and Requests</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2008/03/19/xml-reader-flash-panel-todo-and-requests/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2008/03/19/xml-reader-flash-panel-todo-and-requests/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 08:58:10 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Extending Flash]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[Flash panel]]></category>
		<category><![CDATA[JSFL]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[xml reader]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/index.php/2008/03/19/xml-reader-flash-panel-todo-and-requests/</guid>
		<description><![CDATA[A while ago, I created XML Reader Flash panel. I&#8217;ve been using it (and colleagues) for some time now, and I found some points of improvement: Doesn&#8217;t work correctly on a mac (scrollbar disappears) External XML (fill in url of XML) Remove \r and \n in node Errors about wrong formed XML Different methods of [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago, I created <a href="http://www.matthijskamstra.nl/blog/index.php/2007/05/21/xml-reader-flash-panel/">XML Reader Flash panel</a>.<br />
I&#8217;ve been using it (and colleagues) for some time now, and I found some points of improvement:</p>
<ul>
<li>Doesn&#8217;t work correctly on a mac (scrollbar disappears)</li>
<li>External XML (fill in url of XML)</li>
<li>Remove \r and \n in node</li>
<li>Errors about wrong formed XML </li>
<li>Different methods of reading XML (XML-DOM, X-path, XML2Array, &#8230;.)</li>
<li>More information</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2008/03/19/xml-reader-flash-panel-todo-and-requests/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XML Reader Flash panel</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2007/05/21/xml-reader-flash-panel/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2007/05/21/xml-reader-flash-panel/#comments</comments>
		<pubDate>Mon, 21 May 2007 21:44:47 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Extending Flash]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[Extending]]></category>
		<category><![CDATA[Flash panel]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/index.php/2007/05/21/xml-reader-flash-panel/</guid>
		<description><![CDATA[When you&#8217;re working with Flash and dynamic content your no stranger to XML. And how to access the data in the XML. There are a couple of ways you can access and manipulating XML documents in Flash: the nerdy way (XML DOM): my_xml.firstChild.childNodes[2].childNodes[1].attributes.x the xPath way using xfactorstudio XPath classes: xmlDoc.selectNodes("/bookstore/book[price&#62;35]/title") the Flash XPathAPI class: [...]]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re working with Flash and dynamic content your no stranger to XML.<br />
And how to access the data in the XML.</p>
<p>There are a couple of ways you can access and manipulating XML documents in Flash:</p>
<ol>
<li>the nerdy way (<a href="http://www.w3schools.com/dom/default.asp" title="Tutorial XML DOM">XML DOM</a>): <code>my_xml.firstChild.childNodes[2].childNodes[1].attributes.x</code></li>
<li>the <a href="http://en.wikipedia.org/wiki/XPath" title="Wikipedia knows best">xPath</a> way using <a href="http://www.xfactorstudio.com/" title="X factor Studio">xfactorstudio XPath classes</a>: <code>xmlDoc.selectNodes("/bookstore/book[price&gt;35]/title")</code></li>
<li>the <a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00003785.html" title="Adobe Livedocs">Flash</a> <a href="http://weblogs.macromedia.com/dehaan/archives/2005/01/using_xpath_wit.cfm" title="Tutorial from Jen deHaan">XPathAPI class</a>: <code>XPathAPI.selectNodeList(xml.firstChild, "/rdf:RDF/item/title")</code></li>
<li>the <a href="http://blog.greensock.com/?cat=3" title="Nice version from Jack Doyle (Greensock)" class="broken_link">XML2Array</a> methode: <code>Novel[0].Description[0].value</code></li>
</ol>
<p>Before I discovered option 2 /3 /4, I had to work with XML DOM. This was also in the periode I was still programming in the Flash <a href="http://en.wikipedia.org/wiki/Macromedia_Flash">IDE</a> and the XML DOM methode cost me a lot of time: I couldn&#8217;t find the correct node, or attribute, etc.</p>
<p>Until I started programming in  <a href="http://www.sepy.it/">SE|PY</a>, because it has a XML Reader. The XML Reader could check if my XML was correctly formatted, and I could just point to the node I wanted to use and it gave me the correct node path.<br />
I don&#8217;t know when it started (probably for a while, because I started to use different methodes to access XML) but sadly this reader has <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1615620&amp;group_id=90749&amp;atid=594689">some errors</a>, which makes it difficult to use.</p>
<p>But why do I care? I needed to use the XML DOM because I didn&#8217;t want to add to the kb of a dynamic banner I was building. It was programmed it in Flash IDE and the SE|PY XML Reader didn&#8217;t work&#8230;.</p>
<h3>Download:</h3>
<p>Without more blabla: here is the first version of XML Reader.</p>
<p class="downloadbtn"><a href="#" onclick="location.href='http://www.matthijskamstra.nl/blog/download-manager.php?id=7'" title="XML Reader Flash panel: XML_Reader_v0.1.zip (52kB)"><strong>XML Reader Flash panel</strong> XML_Reader_v0.1.zip (52kB)</a></p>
<p>In the zip is also a <a href="http://www.matthijskamstra.nl/laboratory/xml_reader/readme.txt" title="More about XML Reader in a readme.txt">readme.txt</a> with more info about XML Reader.<br />
Doubts? Test drive it <a href="#viewxmlreader">here!</a><br />
Let me know what you think of it, what&#8217;s wrong with it, what could improve, bugs, etc</p>
<h3>Description XML Reader</h3>
<p>XML Reader is a Flash window panel where you can load XML files into.<br />
This is useful in situations when you are writing an XML parser, and need to view the XML your parsing, but don&#8217;t feel like toggling back and forth between Flash and another program.<br />
As a Flash panel, you can simply dock it inside of Flash with your other panels, and have it always available while you code in the Flash IDE.</p>
<p>This XML Reader does more: it has color syntax highlighting, indentation and XML DOM(*) to access and manipulate XML Documents WYSIWYG style.</p>
<p>I hope this will help to increase my productivity, and perhaps yours?</p>
<p>(*) The XML Document Object Model (XML DOM) defines a standard way for accessing and manipulating XML documents.</p>
<h3 id="viewxmlreader">View XML Reader</h3>
<p>So I created <a href="http://www.matthijskamstra.nl/laboratory/xml_reader/" title="View XML Reader with an example">XML Reader</a>, based upon the one in SE|PY</p>
<p>Because the open XML button only works in Flash a <a href="http://www.matthijskamstra.nl/laboratory/xml_reader/xml/verhaal_jansteen_en.xml" title="XML file example">example XML</a> is loaded.<br />
<iframe src="http://www.matthijskamstra.nl/laboratory/xml_reader/" marginwidth="0" marginheight="0" frameborder="0" height="450" width="450">It seems that you are not able to read the content that suppose to be here: itâ€™s called iframes. I would suggest to get a browser that does:<a href="http://www.mozilla.com/en-US/firefox/">Firefox 2.0</a></iframe></p>
<h3>Thanx to:</h3>
<p>This project is based upon some work of other developers:</p>
<ul>
<li>The XMLHighlighter class developed by <a href="http://www.shockwave-india.com/blog/">R.Arul Kumaran</a> (at the moment of writing this post I couldn&#8217;t visit his site).<br />
This class is used for highlighting the XML file and my modification makes it possible to &#8216;trace&#8217; the XML-nodes.</li>
<li>The <a href="http://www.jessewarden.com/archives/2004/10/xml_and_text_vi.html">XML and Text Viewer Panel</a> developed by <a href="http://www.jessewarden.com/">Jesse Randall Warden</a>. This example showed me how to build a panel.</li>
<li>The <a href="http://www.muzakdeezign.com/mxi_creator/">MXI File Creator</a> by <a href="http://www.muzakdeezign.com/">Muzakdeezign</a>. This free program is used to create and edit the Macromedia Extension (.mxi file).</li>
<li>The <a href="http://www.sephiroth.it/python/sepy.php">XML reader</a> from <a href="http://www.sepy.it/">SE|PY</a> by <a href="http://www.sephiroth.it/index.php">Alessandro Crugnola</a>.<br />
This is my free code editor when I&#8217;m not using the Flash IDE editor. And the only (as far as I know) wysiwyg XML Reader. Sadly this reader has <a href="http://sourceforge.net/tracker/index.php?func=detail&amp;aid=1615620&amp;group_id=90749&amp;atid=594689">some errors</a>, which makes it difficult to use. So to fix this, I wrote this panel.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2007/05/21/xml-reader-flash-panel/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dir2xml v1.1 released</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2006/06/05/dir2xml-v11/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2006/06/05/dir2xml-v11/#comments</comments>
		<pubDate>Mon, 05 Jun 2006 21:50:01 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Screenweaver]]></category>
		<category><![CDATA[Dir2xml]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Flash experiments]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=35</guid>
		<description><![CDATA[This is a little tool I build with the help of Screenweaver. A dir(ectory) 2 XML tool. Wanna know more about the reason?? Version 1.0 had some bugs, and the output (XML) wasn&#8217;t the way it should be. Dir2xml v1.1 (yes indeed it&#8217;s the same picture as version 1.0, there are no big changes to [...]]]></description>
			<content:encoded><![CDATA[<p>This is a little tool I build with the help of <a href="http://screenweaver.org/" target="_blank">Screenweaver</a>.<br />
A dir(ectory) 2 XML tool.</p>
<p>Wanna know <a href="http://www.matthijskamstra.nl/blog/?p=28">more</a> about the reason??</p>
<p>Version 1.0 had some bugs, and the output (XML) wasn&#8217;t the way it should be.</p>
<h2 class='swf-title'>Dir2xml v1.1</h2>
<p><img id="image29" src="http://www.matthijskamstra.nl/blog/wp-content/uploads/ScreenShot003.jpg" alt="dir2xml" /><br />
(yes indeed it&#8217;s the same picture as version 1.0, there are no big changes to this program)</p>
<h2 class='swf-title'>Download</h2>
<p>You can download the EXE, SWF, <a href="../../laboratory/dir2xml/dir2xml.xml" class="broken_link">example dir2xml.xml</a> and FLA in a ZIP</p>
<div id="highlight">Get your stuff here: <a href="../../laboratory/dir2xml/dir2xml_060605.zip" class="broken_link">dir2xml_060605.zip</a></div>
<h2 class='swf-title'>Licensing</h2>
<div><!--Creative Commons License--> <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license"><img src="http://creativecommons.org/images/public/somerights20.png" alt="Creative Commons License" /></a> This work is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license">Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License</a>.</div>
<p><span id="more-35"></span></p>
<h2 class='swf-title'>PC and Apple</h2>
<p>Sadly enough Screenweaver can&#39;t export to Apple (<a href="http://screenweaver.org/index.php?option=com_content&amp;task=view&amp;id=14&amp;Itemid=55" target="_blank">yet</a>).<br />
So Dir2xml will (for now) only work on a pc.</p>
<h2 class='swf-title'>Code</h2>
<p>The code is embedded in the fla so if you&#39;re interested try the ZIP file</p>
<h2 class='swf-title'>Wish list and To-do</h2>
<p>Bugs version 1.1</p>
<ul>
<li>the path to the folder with &#8220;save&#8221; was incorrect</li>
<li>the xml was not build for the new features like filesize and creationdate</li>
</ul>
<p>Features:</p>
<ul>
<li>Recursive through all folders</li>
<li>Recursive through xx number of folders</li>
<li>Filters for JPG, GIF, Flash 7 images, Flash 8 images</li>
<li>Hidden data in XML (kB, createDate, width, height, URL)</li>
<li>&#8230;..</li>
</ul>
<p>Do you know some features that would make this program better, let me know and drop a line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2006/06/05/dir2xml-v11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dir2xml</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/dir2xml/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/dir2xml/#comments</comments>
		<pubDate>Sat, 20 May 2006 13:34:29 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Screenweaver]]></category>
		<category><![CDATA[Dir2xml]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Flash experiments]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=28</guid>
		<description><![CDATA[This is a little tool I build with the help of Screenweaver. A dir(ectory) 2 XML tool. I was looking for a program that could create an XML file from a directory. I found some programs that could help me with this (commandline, Printfolder, Dirhtml) but none of them creates an XML at once. So [...]]]></description>
			<content:encoded><![CDATA[<p>This is a little tool I build with the help of <a href="http://screenweaver.org/" target="_blank">Screenweaver</a>.<br />
A dir(ectory) 2 XML tool.</p>
<p>I was looking for a program that could create an XML file from a directory. I found some programs that could help me with this (<a href="http://support.microsoft.com/?scid=kb%3Ben-us%3B196158&amp;x=11&amp;y=15#" target="_blank">commandline</a>, <a href="http://no-nonsense-software.com/freeware/" target="_blank">Printfolder</a>, <a href="http://home.pacbell.net/nitzsche/dirhtml/dirhtml.html" target="_blank" class="broken_link">Dirhtml</a>) but none of them creates an XML at once. So one evening I sat down, and made this in a couple of hours.</p>
<p>Because this is a custom solution to a specific problem, not everybody will be able to use this. I&#39;m open to suggestions though, so drop me a line.</p>
<h2 class='swf-title'>Dir2xml v1.0</h2>
<p><img id="image29" src="http://www.matthijskamstra.nl/blog/wp-content/uploads/ScreenShot003.jpg" alt="dir2xml" /></p>
<h2 class='swf-title'>PC and Apple</h2>
<p>Sadly enough Screenweaver can&#39;t export to Apple (<a href="http://screenweaver.org/index.php?option=com_content&amp;task=view&amp;id=14&amp;Itemid=55" target="_blank">yet</a>).<br />
So Dir2xml will (for now) only work on a pc.</p>
<h2 class='swf-title'>Download</h2>
<p>You can download the EXE, SWF and FLA in a ZIP</p>
<div id="highlight"><strike>Get your stuff here: <a href="#">dir2xml_060520.zip</a></strike></div>
<p><b>update: <a href="http://www.matthijskamstra.nl/blog/?p=35">new version</a></b></p>
<h2 class='swf-title'>Licensing</h2>
<div><!--Creative Commons License--> <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license"><img src="http://creativecommons.org/images/public/somerights20.png" alt="Creative Commons License" /></a> This work is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license">Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License</a>.</div>
<p><span id="more-28"></span></p>
<h2 class='swf-title'>Code</h2>
<p>The code is embedded in the fla so I&#39;ll show the code here.</p>
<pre>////////////////////////////////////////////////////
// choose a folder to create xml from
/////////////////////////////////////////////////////
this.folder_txt.text = &quot;&quot;;
this.button_btn.btn_txt.text = &quot;Choose folder&quot;;
this.button_btn.onRelease = function() {
trace(&quot;- choose folder -&quot;);
swSystem.Dialogs.BrowseForFolder(&quot;Please choose a folder...&quot;, _root.onBrowseFolder, this);
};
// check if a folder is chosen
function onBrowseFolder(success, folder) {
if (success) {
_root.chosenFolder = folder;
_root.folder_txt.text = _root.chosenFolder;
_root.save_txt.text = _root.chosenFolder + &quot;dir2xml.xml&quot;;
_root.file = _root.chosenFolder + &quot;dir2xml.xml&quot;;
swDebug.trace(&quot;_root.chosenFolder: &quot; + _root.chosenFolder);
swFile.listFolder(_root.chosenFolder, &quot;file&quot;, &quot;&quot;, 0, listFolder_callback, this);
} else {
swDebug.trace(&quot;- cancel browsing for folder -&quot;);
}
}
// list folder for files
// escape 250 if necessary
function listFolder_callback(success, index, data) {
if (data.length &lt; 250) {
for (i in data) {
swDebug.trace(data[i]);
}
_root.createXml(data);
swDebug.trace(&quot; - finished loading data from folder - &quot;);
} else {
swFile.listFolder(_root.chosenFolder, &quot;file&quot;, &quot;&quot;, index, listFolder_callback, this);
}
}
/////////////////////////////////////////////////////
// create xml
/////////////////////////////////////////////////////
function createXml(data:Array):Void {
swDebug.trace(&quot;createXml - &quot; + data.length);
var writeXml:String = &quot;&quot;;
writeXml += &quot;n&quot;;
writeXml += &quot;n&quot;;
for (var i = 0; i &lt; data.length; i++) {
writeXml += &quot;t&quot; + data[i] + &quot;n&quot;;
}
writeXml += &quot;n&quot;;
_root.writeXml = writeXml;
}
//////////////////////////////////////////////
// save xml file in
//////////////////////////////////////////////
this.save_txt.text = &quot;&quot;;
this.save_btn.btn_txt.text = &quot;Save as&quot;;
this.save_btn.onRelease = function() {
trace(&quot;- Save as -&quot;);
_root.SaveFileIn();
};
// where
function SaveFileIn() {
swSystem.Dialogs.BrowseForFile_Save(&quot;dir2xml.xml&quot;, [&quot;XML Files&quot;, &quot;*.xml&quot;, &quot;All Files&quot;, &quot;*.*&quot;], _root.saveFileIn, &quot;Save File&quot;, &quot;.xml&quot;, _root.onSaveFileIn);
}

// real save
function onSaveFileIn(success, file) {
if (success) {
swDebug.trace(&quot;User selected: &quot; + file);
_root.file = file;
_root.save_txt.text = _root.file;
} else {
swDebug.trace(&quot;- User did not save to file! -&quot;);
}
}
// export
this.export_btn.btn_txt.text = &quot;Export XML&quot;;
this.export_btn.onRelease = function() {
trace(&quot;- Export XML -&quot;);
startSaving();
};
function startSaving() {
swFile.saveString(_root.file, _root.writeXml, false, _root.onSaveDocument);
}
// check
function onSaveDocument(succes) {
if (succes) {
swDebug.trace(&quot;- User saved -&quot;);
trace(_root.checkBox_mc.checked);
swDebug.trace(&quot;&gt;&gt; &quot; + _root.checkBox_mc.checked);
if (_root.checkBox_mc.checked) {
swSystem.shellOpenDocument(_root.file);
}
} else {
swDebug.trace(&quot;- something went wrong -&quot;);
}
}
//
this.checkBox_mc.checkbox_txt.text = &quot;Open file&quot;;</pre>
<h2 class='swf-title'>Wish list and To-do</h2>
<p>Features:</p>
<ul>
<li>Recursive through all folders</li>
<li>Recursive through xx number of folders</li>
<li>Filters for JPG, GIF, Flash 7 images, Flash 8 images</li>
<li>Hidden data in XML (kB, createDate, width, height, URL)</li>
<li>&#8230;..</li>
</ul>
<p>Do you know some features that would make this program better, let me know and drop a line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/dir2xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SlideShow v1.0</title>
		<link>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/slideshow-v10/</link>
		<comments>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/slideshow-v10/#comments</comments>
		<pubDate>Sat, 20 May 2006 13:30:33 +0000</pubDate>
		<dc:creator>Matthijs Kamstra</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Dir2xml]]></category>
		<category><![CDATA[Download]]></category>
		<category><![CDATA[Flash experiments]]></category>
		<category><![CDATA[Screenweaver]]></category>
		<category><![CDATA[SlideShow]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.matthijskamstra.nl/blog/?p=26</guid>
		<description><![CDATA[A little dynamic slideshow a made with Flash using XML. It&#8217;s not finished but it usable. And it&#8217;s not really the reason I wanted to show this. What I wanted to show is my dir2xml program that I wrote with Flash and Screenweaver SlideShow v1.0 Download I haven&#8217;t had the time to clean up the [...]]]></description>
			<content:encoded><![CDATA[<p>A little dynamic slideshow a made with Flash using XML.<br />
It&#8217;s not finished but it usable.</p>
<p>And it&#8217;s not really the reason I wanted to show this.<br />
What I wanted to show is my <a title="dir2xml" href="http://www.matthijskamstra.nl/blog/?p=28">dir2xml program</a> that I wrote with Flash and Screenweaver</p>
<h2 class='swf-title'>SlideShow v1.0</h2>
<div id="flash"><object width="300" height="225" type="application/x-shockwave-flash" data="http://www.matthijskamstra.nl/laboratory/slideShow/slideshow_v01.swf?loadxmlfile=http://www.matthijskamstra.nl/laboratory/slideShow/xml/dir2xml.xml"><param name="movie" value="http://www.matthijskamstra.nl/laboratory/slideShow/slideshow_v01.swf?loadxmlfile=http://www.matthijskamstra.nl/laboratory/slideShow/xml/dir2xml.xml" /></object></div>
<h2 class='swf-title'>Download</h2>
<p>I haven&#8217;t had the time to clean up the source code, so don&#8217;t complain about it.</p>
<div id="highlight">Get your stuff here: <a href="http://www.matthijskamstra.nl/laboratory/slideShow/slideShow_060520.zip">slideShow_060520.zip</a></div>
<h2 class='swf-title'>Licensing</h2>
<div id="license"><!--Creative Commons License--> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/"><img border="0" alt="Creative Commons License" src="http://creativecommons.org/images/public/somerights20.png" /></a> This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/">Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License</a>.</div>
<h2 class='swf-title'>XML</h2>
<p>Dir2xml creates a simple xml structure:</p>
<p><a href="http://www.matthijskamstra.nl/laboratory/slideShow/xml/dir2xml_example.xml">dir2xml_example.xml</a></p>
<h2 class='swf-title'>Future features and wishes</h2>
<p>I can think of some features that would make this slideshow better, but what do <strong>you</strong> think would improve it.<br />
<em> The real reason I wanted to show you this project is <a href="http://www.matthijskamstra.nl/blog/">this</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matthijskamstra.nl/blog/index.php/2006/05/20/slideshow-v10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

