<?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>Celar - Freelance flash/front-end ontwikkelaar &#187; ActionScript</title>
	<atom:link href="http://www.celar.nl/category/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.celar.nl</link>
	<description>Flash- frontend ontwikkelaar</description>
	<lastBuildDate>Sun, 15 Jan 2012 20:44:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>BabelFX localisatie framework</title>
		<link>http://www.celar.nl/2011/05/babelfx-localisatie-framewerk/</link>
		<comments>http://www.celar.nl/2011/05/babelfx-localisatie-framewerk/#comments</comments>
		<pubDate>Mon, 23 May 2011 08:05:10 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[vertalen]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=986</guid>
		<description><![CDATA[Zo nu en dan verzoeken om projecten meertalig te maken. Dit is altijd mogelijk maar kost ook meer werk aangezien je alle elementen in je project dynamisch moet maken en bij een switch van taal moet kunnen updaten met de nieuwe vertaling. BabelFx is een framework dat deze &#8216;hazzle&#8217; op zich neemt en je het [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.celar.nl/archives/upload/2011/05/babelfx.jpg" alt="" title="babelfx" width="150" height="150" class="alignleft size-full wp-image-988" />Zo nu en dan verzoeken om projecten meertalig te maken. Dit is altijd mogelijk maar kost ook meer werk aangezien je alle elementen in je project dynamisch moet maken en bij een switch van taal moet kunnen updaten met de nieuwe vertaling.</p>
<p><a href="http://babelfx.org/">BabelFx</a> is een framework dat deze &#8216;hazzle&#8217; op zich neemt en je het meeste werk uit handen neemt. Je kan er de volgende elementen mee vertalen.<br />
<br/></p>
<ul>
<li>Tekst</li>
<li>Afbeeldingen, CSS, url&#8217;s</li>
<li>Skins</li>
<li>Stylesheets</li>
<li>Layout veranderingen</li>
<li>Branding</li>
</ul>
<p>Het kan gebruikt worden met Swiz, Mate, Cairngorm, Parsley, RobotLegs &#038; PureMVC of gewoon zonder een framework. BabelFx draait onafhankelijk en transparant achter de schermen. Je schermen hoeven niet meer zelf gelokaliseerde content op te halen.<br />
BabelFx gebruikt het Inversion-of-Control (IoC) patroon om gelokaliseerde content te injecteren in je schermen. Omdat BabelFx content &#8216;pushed&#8217; hoeven je UI controls, componenten en views niet meer zelf de content op halen.<br />
Je kan vertalingen op de volgende manieren gebruiken:</p>
<ul>
<li>Embedden in je project</li>
<li>Laden uit gecompileerde, externe bundels</li>
<li>Laden vanuit een remote web service</li>
<li>Laden vanuit remote xml bestanden</li>
<li>Laden vanuit je remote cms</li>
</ul>
<p><strong>Flex only?</strong><br />
Ja op dit moment alleen nog voor Flex. Wil je het framework gebruiken in ActionScript projecten dan zul je een eigen LocatizationMap moeten schrijven. BabelFX is namelijk bedoeld om gebruikt te worden via een LocatizationMap mxml class en mxml kun je niet compileren in Actionscript projecten. Er word dan ook aanbevolen om een Flex project te gebruiken. (zie <a href="http://support.babelfx.org/discussions/questions/9-how-to-start-with-a-plain-simple-as3-project-and-babelfx">forum</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2011/05/babelfx-localisatie-framewerk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple staat alternatieve ontwikkel tools (Flash) weer toe.</title>
		<link>http://www.celar.nl/2010/09/apple-staat-alternatieve-ontwikkel-tools-flash-weer-toe/</link>
		<comments>http://www.celar.nl/2010/09/apple-staat-alternatieve-ontwikkel-tools-flash-weer-toe/#comments</comments>
		<pubDate>Fri, 10 Sep 2010 06:09:17 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=926</guid>
		<description><![CDATA[4 en een halve maand nadat Apple hun voorwaarden aanpaste zijn ze terug gekomen op het toestaan van niet native code op hun platform (sectie 3.3.1). Hiermee is het weer mogelijk om iPhone, iPad, iPod applicaties te gaan ontwikkelen in bijvoorbeeld ActionScript en deze de compileren voor het iOS van Apple. Zie (Developer aggreement) Apple [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.celar.nl/archives/upload/2010/09/iphone_flash.jpg" alt="" title="iphone_flash" width="150" height="150" class="alignleft size-full wp-image-927" />4 en een halve maand nadat Apple hun voorwaarden aanpaste zijn ze terug gekomen op het toestaan van niet native code op hun platform (sectie 3.3.1). Hiermee is het weer mogelijk om iPhone, iPad, iPod applicaties te gaan ontwikkelen in bijvoorbeeld ActionScript en deze de compileren voor het iOS van Apple. Zie (<a href="http://developer.apple.com/programs/terms/ios/standard/ios_standard_agreement_20100909.pdf">Developer aggreement</a>)</p>
<p>Apple besloot in april om geen apps meer toe te staan die niet direct in Objective-C, C, C++, of JavaScript geschreven waren. Hierop besloot Adobe om hun plannen om Flash applicaties voor de iPhone te bouwen, te staken.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2010/09/apple-staat-alternatieve-ontwikkel-tools-flash-weer-toe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nieuwe tween bibliotheek Actuate</title>
		<link>http://www.celar.nl/2010/09/nieuwe-tween-bibliotheek-actuate/</link>
		<comments>http://www.celar.nl/2010/09/nieuwe-tween-bibliotheek-actuate/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 07:28:05 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[animatie]]></category>
		<category><![CDATA[tween]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=921</guid>
		<description><![CDATA[Er is een nieuwe animatie bibliotheek opgedoken in het landschap van animatie bibliotheken zoals TweenLite, GTween, BetweenAS3, etc. Actuate werkt niet veel anders dan bijvoorbeeld TweenLite van greensock maar zou wel sneller zijn. U kunt hier een benchmark bekijken. Actuate is vrijgegeven onder een GNU licentie.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.celar.nl/archives/upload/2010/09/actuate.gif" alt="" title="actuate" width="150" height="150" class="alignleft size-full wp-image-922" />Er is een nieuwe animatie bibliotheek opgedoken in het landschap van animatie bibliotheken zoals <a href="http://www.greensock.com/tweenlite/">TweenLite</a>, <a href="http://www.gskinner.com/libraries/gtween/">GTween</a>, <a href="http://www.libspark.org/wiki/BetweenAS3/en">BetweenAS3</a>, etc. <a href="http://code.google.com/p/actuate/">Actuate</a> werkt niet veel anders dan bijvoorbeeld TweenLite van greensock maar zou wel sneller zijn. U kunt <a href="http://www.eclecticdesignstudio.com/code/actuate/particledemo2/">hier een benchmark</a> bekijken. </p>
<p>Actuate is vrijgegeven onder een <a href="http://www.gnu.org/licenses/gpl.html">GNU licentie</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2010/09/nieuwe-tween-bibliotheek-actuate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smokescreen converteerd Flash naar HTML5/JavaScript</title>
		<link>http://www.celar.nl/2010/06/smokescreen-converteerd-flash-naar-html5javascript/</link>
		<comments>http://www.celar.nl/2010/06/smokescreen-converteerd-flash-naar-html5javascript/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 09:29:47 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=843</guid>
		<description><![CDATA[Zoals je waarschijnlijk wel hebt gehoord/gelezen laat Apple geen Flash technologie toe op zijn apparaten zoals de Ipad en Iphone. Dit met als argument dat de technologie slecht presteert, onstabiel is en energie verslindend zou zijn (zie Thoughts on Flash). Als tegenhanger ziet Apple HTML5 en javascript als goede alternatieven voor Flash. Deze technologieën zijn [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.celar.nl/archives/upload/2010/06/smokescreen.jpg" alt="" title="smokescreen" width="150" height="150" class="alignleft size-full wp-image-844" />Zoals je waarschijnlijk wel hebt gehoord/gelezen laat Apple geen Flash technologie toe op zijn apparaten zoals de Ipad en Iphone. Dit met als argument dat de technologie slecht presteert, onstabiel is en energie verslindend zou zijn (zie <a href="http://www.apple.com/hotnews/thoughts-on-flash/">Thoughts on Flash</a>).</p>
<p>Als tegenhanger ziet Apple HTML5 en javascript als goede alternatieven voor Flash. Deze technologieën zijn zeker interessant maar nog niet zo ver als ActionScript 3.0 en Flash 10. Allereerst is HTML5 nog niet gestandariseerd en implementeren de verschillende browsers deze standaard niet allemaal hetzelfde. <a href="http://en.wikipedia.org/wiki/Canvas_element">Canvas</a> wordt bijvoorbeeld niet ondersteund door Microsoft Internet Explorer.<br />
Je kan dus wel zeggen dat volledig overstappen op HTML5/Javascript (nog) niet een oplossing is. In de toekomst misschien wel, zodra HTML5 gestandariseerd is en door alle browsers ondersteund wordt.</p>
<p><strong>Smokescreen</strong><br />
<a href="http://smokescreen.us/">Smokescreen</a> is een Flash-speler die geschreven is in Javascript. Dit opensource project zet swf bestanden om naar HTML5 en Javascript. Hierdoor is de swf ook af te spelen op Apple apparaten.<br />
De Javascript speler is langzamer dan de Flash plug-in. Hierdoor is Smokescreen met name geschikt voor advertentiebanners. Wat op dit moment ondersteund wordt is een deel van de animatiemogelijkheden uit flash 8, geluidsstreamen, geluidseffecten, wat input en basale ActionScript. Het is nog in ontwikkeling. In de toekomst moet Flash uitgebreider ondersteund worden en de prestaties omhoog zijn gegaan.<br />
Op de site laten ze een aantal <a href="http://smokescreen.us/demo/">demo&#8217;s</a> zien waarin je kan zien dat ze aardig op weg zijn.<br />
<center><br />
<object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=12014368&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=12014368&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="225"></embed></object>
<p><a href="http://vimeo.com/12014368">Smokescreen &#8211; iPad demo #1</a> from <a href="http://vimeo.com/user3894279">Chris @ RevShockAds</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p></center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2010/06/smokescreen-converteerd-flash-naar-html5javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xss kwetsbaarheid in miljoenen Flash banners.</title>
		<link>http://www.celar.nl/2009/12/xss-kwetsbaarheid-in-miljoenen-flash-banners/</link>
		<comments>http://www.celar.nl/2009/12/xss-kwetsbaarheid-in-miljoenen-flash-banners/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 10:53:32 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Algemeen]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[banner]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[lek]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=719</guid>
		<description><![CDATA[In ongeveer 8 miljoen Flash-reclames is een xss-lek gevonden. Daarbij wordt nu een veelgebruikte adserver misbruikt voor de verspreiding van deze malafide reclames. De oorzaak zit in de Actionscript code die wordt gebruikt voor het tellen van clicks op de advertentie. Volgens de ontdekker van het lek, een Oekraïense security onderzoeker, is de foute code [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.celar.nl/archives/upload/2009/12/xss-injection.jpg" alt="XSS injection" title="xss-injection" width="150" height="150" class="size-full wp-image-722" style="float:left;"/>In ongeveer 8 miljoen Flash-reclames is een <a href="http://nl.wikipedia.org/wiki/Cross-site_scripting">xss-lek</a> gevonden. Daarbij wordt nu een veelgebruikte adserver misbruikt voor de verspreiding van deze malafide reclames.<br />
<span id="more-719"></span><br />
De oorzaak zit in de Actionscript code die wordt gebruikt voor het tellen van clicks op de advertentie. Volgens de ontdekker van het lek, een <a href="http://websecurity.com.ua/3789/">Oekraïense security onderzoeker</a>, is de foute code makkelijk te vinden via Google. Op die manier is een telling gedaan van minstens 8 miljoen Flash banners die kwetbaar zijn voor het lek.</p>
<p><strong>Toename</strong><br />
Doordat de foute Actionscript code dusdanig standaard is geworden, en veel gebruikt wordt in voorbeelden, instructies en adviezen, is het gebruik ervan ook exponentieel toegenomen. </p>
<p><strong>Banner systemen</strong><br />
In veel banner systemen zit de code al ingebakken. Volgens de ontdekker zijn phpAdsNew, OpenAds en OpenX gecontrolleerd - en kwetsbaar bevonden.</p>
<p><strong>Patch</strong><br />
Adobe zal halverwege komende maand een <a href="http://www.adobe.com/support/security/advisories/apsa09-07.html">patch</a> uitbrengen tijdens hun geplande patchronde. Volgens Adobe zal het eerder uitbrengen van een patch andere patches in het gedrang brengen.</p>
<p><strong>De kwetsbaarheid</strong><br />
De kwetsbaarheid zit hem in de manier waarop een click geregistreerd wordt. Een veelgebruikte vorm is:</p>
<div class="igBar"><span id="lactionscript-6"><a href="#" onclick="javascript:showPlainTxt('actionscript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-6">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">_root</span>.<span style="color: #006600;">clickTAG</span>, <span style="color: #ff0000;">"_blank"</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
De aanval gebeurt door het doorgeven van XSS code aan Flash in de clickTAG, url of andere parameter.</p>
<div class="igBar"><span id="lactionscript-7"><a href="#" onclick="javascript:showPlainTxt('actionscript-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-7">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color: #808080; font-style: italic;">//site.nl/flash.swf?clickTAG=javascript:alert('XSS') </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lactionscript-8"><a href="#" onclick="javascript:showPlainTxt('actionscript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-8">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color: #808080; font-style: italic;">//site.nl/flash.swf?url=javascript:alert('XSS') </span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
Na het klikken in de banner wordt de string doorgegeven aan de getURL functie. Zo kan een JavaScript-code uitgevoerd worden.</p>
<p><strong>Voorkomen</strong><br />
Om XSS aanvallen te voorkomen kun je een van onderstaande methodes gebruiken.</p>
<div class="igBar"><span id="lactionscript-9"><a href="#" onclick="javascript:showPlainTxt('actionscript-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-9">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">on</span><span style="color: #66cc66;">&#40;</span>release<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>clickTAG.<span style="color: #0066CC;">substr</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">5</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #ff0000;">"http:"</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span>clickTAG<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<div class="igBar"><span id="lactionscript-10"><a href="#" onclick="javascript:showPlainTxt('actionscript-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-10">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">_root</span>.<span style="color: #0066CC;">button</span>.<span style="color: #0066CC;">onRelease</span> = <span style="color: #000000; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>clickTAG.<span style="color: #0066CC;">substr</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">0</span>,<span style="color: #cc66cc;color:#800000;">5</span><span style="color: #66cc66;">&#41;</span> == <span style="color: #ff0000;">"http:"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">getURL</span><span style="color: #66cc66;">&#40;</span>clickTAG<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Echter zullen deze methodes geen beveiliging bieden aan <a href="http://nl.wikipedia.org/wiki/URL-spoofing">URL-spoofing</a>, die het mogelijk maakt om een omleiding te maken naar een willekeurige (kwaadaardige) site. Het is dan beter om:</p>
<ol>
<li>Gebruik te maken van directe links, zonder de parameter clickTAG</li>
<li>Als het nodig is om click te meten, gebruik dan een url naar het banner systeem die de gebruiker vervolgens doorstuurt naar de juiste site. (http://bannersysteem/click?id=1)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2009/12/xss-kwetsbaarheid-in-miljoenen-flash-banners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Papervision 3.0 is coming</title>
		<link>http://www.celar.nl/2009/10/papervision-30-is-coming/</link>
		<comments>http://www.celar.nl/2009/10/papervision-30-is-coming/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 06:32:42 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash 10]]></category>
		<category><![CDATA[papervision]]></category>
		<category><![CDATA[ralph hauwert]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=701</guid>
		<description><![CDATA[Afgelopen dinsdag is er bekend gemaakt dat Papervision 3.0 onderweg is. Versie 3.0 zal opnieuw gebouwd worden voor Flash Player 10. Hierdoor zal hij dan ook niet backward compatible zijn aangezien Flash Player 10 betere prestaties en technieken gebruikt dan zijn voorgangers. Voor de "oude" players is versie 2.1 te gebruiken. Deze zal niet meer [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.celar.nl/archives/upload/2009/10/papervision.gif" alt="papervision 3d" title="papervision 3d" width="150" height="150" class="aligncenter size-full wp-image-704" style="float:left;"/> Afgelopen dinsdag is er <a href="http://blog.papervision3d.org/2009/10/13/papervision3d-is-shifting-gears/">bekend gemaakt</a> dat <a href="http://github.com/Papervision3D/Papervision3D">Papervision 3.0</a> onderweg is. Versie 3.0 zal opnieuw gebouwd worden voor Flash Player 10. Hierdoor zal hij dan ook niet backward compatible zijn aangezien Flash Player 10 betere prestaties en technieken gebruikt dan zijn voorgangers. Voor de "oude" players is versie 2.1 te gebruiken. Deze zal niet meer door het papervision team door ontwikkeld worden, zij gaan zich volledig inzetten voor versie 3.0.<br />
<span id="more-701"></span><br />
Op dit moment zijn de voorbereidingen nog in volle gang. Het plannen en de architectuur van het geheel, is waar nu aan gewerkt wordt. Ben je zelf een ontwikkelaar en wil je bijdragen aan de nieuwe engine dan horen ze graag van je.<br />
Het nieuwste teamlid is <a href="http://kode80.com/">Ben hopkins</a>. Zijn ervaring en expertise met 3d programmeren is een welkome boost aan het project.</p>
<p><strong>GitHub geen subversion</strong><br />
Met de nieuwe versie wordt er ook overgestapt op een ander beheer systeem. Ik hoorde van <a href="http://github.com/">github</a> enkele dagen geleden toen er een sollicitant langskwam. <a href="http://en.wikipedia.org/wiki/Git_(software)">Git</a> is oorspronkelijk ontwikkeld door Linus Torvalds voor de linux kernel development.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2009/10/papervision-30-is-coming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Propeller aandrijven</title>
		<link>http://www.celar.nl/2009/03/propeller-aandrijven/</link>
		<comments>http://www.celar.nl/2009/03/propeller-aandrijven/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 08:21:32 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[aandrijving]]></category>
		<category><![CDATA[propeller]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=483</guid>
		<description><![CDATA[Voor een spel ben ik gaan uitzoeken hoe ik een propeller kon laten aandrijven door middel van de pijltoetsen. Bedoeling was dat door de snelheid waarmee je de linker en rechter pijltoets indrukt de propeller sneller of langzamer zou gaan draaien. Ik heb voor het berekenen van de snelheid de tijd tussen de twee toetsaanslagen [...]]]></description>
			<content:encoded><![CDATA[<p>Voor een spel ben ik gaan uitzoeken hoe ik een propeller kon laten aandrijven door middel van de pijltoetsen. Bedoeling was dat door de snelheid waarmee je de linker en rechter pijltoets indrukt de propeller sneller of langzamer zou gaan draaien.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.celar.nl/archives/upload/2009/03/keyevent1.swf" /><embed type="application/x-shockwave-flash" width="550" height="400" src="http://www.celar.nl/archives/upload/2009/03/keyevent1.swf"></embed></object></p>
<p>Ik heb voor het berekenen van de snelheid de tijd tussen de twee toetsaanslagen gemeten. Deze tijd is in millisecondes. Dit sla ik op in een array waar maximaal 10 aanslagen in worden opgeslagen. Hiervan bereken ik vervolgens een gemiddelde. Om de overgang soepel te laten verlopen gebruik ik een vertraging.</p>
<div class="igBar"><span id="lactionscript-12"><a href="#" onclick="javascript:showPlainTxt('actionscript-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-12">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">KeyboardEvent</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> lastKeyPressTime:<span style="color: #0066CC;">Date</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Date</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> intervalTime:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> maxInterval:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">300</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> intervalTollerance:uint = <span style="color: #cc66cc;color:#800000;">80</span>; <span style="color: #808080; font-style: italic;">// 80 milliseconde haal je toch niet.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> isRunning:<span style="color: #0066CC;">Boolean</span> = <span style="color: #000000; font-weight: bold;">false</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> gemiddelde:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> intervalArray:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span>maxInterval<span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> powerBlocks:uint = <span style="color: #cc66cc;color:#800000;">20</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> maxPower:uint = <span style="color: #cc66cc;color:#800000;">1000</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> power:uint = <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> py:<span style="color: #0066CC;">Number</span> = maxInterval;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> ease:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">20</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>KeyboardEvent.<span style="color: #006600;">KEY_DOWN</span>, keyPressed<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">function</span> myEnterFrame<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>intervalArray.<span style="color: #006600;">length</span>&gt; <span style="color: #cc66cc;color:#800000;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; intervalArray = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; intervalArray.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>gemiddelde<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span>&nbsp; &nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; gemiddelde = <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:uint = <span style="color: #cc66cc;color:#800000;">0</span>; i &lt;intervalArray.<span style="color: #0066CC;">length</span>; i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; gemiddelde += intervalArray<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; gemiddelde = gemiddelde / intervalArray.<span style="color: #0066CC;">length</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; py += <span style="color: #66cc66;">&#40;</span>gemiddelde - py<span style="color: #66cc66;">&#41;</span> / ease;&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; power = maxPower - <span style="color: #66cc66;">&#40;</span>maxPower / powerBlocks<span style="color: #66cc66;">&#41;</span> * <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">floor</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>powerBlocks / <span style="color: #66cc66;">&#40;</span>maxInterval-intervalTollerance<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> * <span style="color: #66cc66;">&#40;</span>gemiddelde-intervalTollerance<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; proppelor.<span style="color: #006600;">rotation</span> += <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">30</span>/ <span style="color: #cc66cc;color:#800000;">300</span><span style="color: #66cc66;">&#41;</span> * <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;color:#800000;">300</span> - py<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">function</span> keyPressed<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:KeyboardEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">keyCode</span> == <span style="color: #cc66cc;color:#800000;">39</span> || <span style="color: #0066CC;">e</span>.<span style="color: #006600;">keyCode</span> == <span style="color: #cc66cc;color:#800000;">37</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!isRunning<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; isRunning = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, myEnterFrame<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> curTime:<span style="color: #0066CC;">Date</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Date</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; intervalTime = curTime.<span style="color: #0066CC;">getTime</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> - lastKeyPressTime.<span style="color: #0066CC;">getTime</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; lastKeyPressTime = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Date</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>intervalTime&gt; maxInterval<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intervalTime = maxInterval;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; intervalArray.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>intervalTime<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #006600;">keyCode</span> == <span style="color: #cc66cc;color:#800000;">38</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; isRunning = <span style="color: #000000; font-weight: bold;">false</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">this</span>.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, myEnterFrame<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2009/03/propeller-aandrijven/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Actionscript 3.0 API reference voor de iPhone</title>
		<link>http://www.celar.nl/2009/01/actionscript-30-api-reference-voor-de-iphone/</link>
		<comments>http://www.celar.nl/2009/01/actionscript-30-api-reference-voor-de-iphone/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 15:00:54 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Algemeen]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[reference]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=452</guid>
		<description><![CDATA[Mike Chambers heeft een Actionscript 3.0 API reference voor de iPhone uitgebracht. Dit is een tool voor de iPhone waarmee je op je iPhone een referentie bibliotheek van Actionscript 3.0 hebt.  In de bibliotheek zitten de API gegevens van Flash, Flex en Air. Deze tool is gratis te donwloaden in Apples App Store. Hier nog [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-453 alignleft" title="iphone_as3_reference" src="http://www.celar.nl/archives/upload/2009/01/iphone_as3_reference.jpg" alt="iphone_as3_reference" width="150" height="150" style="float: left;" /><a title="Mike Chambers" href="http://www.mikechambers.com" target="_blank">Mike Chambers</a> heeft een <a title="iPhone AS3 API reference" href="http://www.mikechambers.com/as3iphone/" target="_blank">Actionscript 3.0 API reference</a> voor de iPhone uitgebracht. Dit is een tool voor de iPhone waarmee je op je iPhone een referentie bibliotheek van Actionscript 3.0 hebt.  In de bibliotheek zitten de API gegevens van Flash, Flex en Air. Deze tool is gratis te donwloaden in <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=302952929&amp;mt=8" target="_blank">Apples App Store</a>.</p>
<p style="text-align: left;"><a title="iPhone AS3 API reference fotos" href="http://www.flickr.com/photos/mikechambers/sets/72157612712593653/" target="_blank">Hier</a> nog wat foto's.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2009/01/actionscript-30-api-reference-voor-de-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compileer Actionscript online</title>
		<link>http://www.celar.nl/2009/01/compileer-actionscript-online/</link>
		<comments>http://www.celar.nl/2009/01/compileer-actionscript-online/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 15:41:03 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[compilen]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=447</guid>
		<description><![CDATA[Er zijn al verschillende paketten waarmee je zonder tussenkomst van een Adobe pakket Actionscript code kan compileren. Dat is nu ook mogelijk zonder een van die andere paketten te gebruiken. Namelijk op de volgende website.  Je moet wel al je code in één class zetten en gebruik maken van bestaande frameworks zit er ook niet [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wonderfl.kayac.com/" target="_blank"><img class="alignnone size-full wp-image-448 alignleft" style="float: left;" title="wonderfl" src="http://www.celar.nl/archives/upload/2009/01/wonderfl.gif" alt="" width="150" height="150" /></a>Er zijn al verschillende paketten waarmee je zonder tussenkomst van een Adobe pakket Actionscript code kan compileren. Dat is nu ook mogelijk zonder een van die andere paketten te gebruiken. Namelijk op de <a title="Wonderfl" href="http://wonderfl.kayac.com/" target="_blank">volgende website</a>.  Je moet wel al je code in één class zetten en gebruik maken van bestaande frameworks zit er ook niet in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2009/01/compileer-actionscript-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MultiColumnText AS3 class</title>
		<link>http://www.celar.nl/2008/11/multicolumntext-class/</link>
		<comments>http://www.celar.nl/2008/11/multicolumntext-class/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 10:48:54 +0000</pubDate>
		<dc:creator>arjan</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[multicolumn]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.celar.nl/?p=439</guid>
		<description><![CDATA[Nadat ik de 'MultiColumnText' class had bekeken  die in de  ActionScript 3.0 voorbeelden zat, wilde ik eigenlijk dat het allemaal net iets anders zou werken. Zo wilde ik niet een hoogte opgeven die de kolommen moesten krijgen. In plaats daarvan juist alleen een kolom breedte en dat de hoogte zelf bepaald werd aan de hand [...]]]></description>
			<content:encoded><![CDATA[<p>Nadat ik de 'MultiColumnText' class had bekeken  die in de  <a title="Programming ActionScript 3.0 samples" href="http://livedocs.adobe.com/flash/9.0/main/samples/Programming_ActionScript3.0_samples.zip" target="_blank">ActionScript 3.0 voorbeelden</a> zat, wilde ik eigenlijk dat het allemaal net iets anders zou werken. Zo wilde ik niet een hoogte opgeven die de kolommen moesten krijgen. In plaats daarvan juist alleen een kolom breedte en dat de hoogte zelf bepaald werd aan de hand van de hoeveelheid tekst. Hier is de volgende class uit voortgekomen.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="240" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.celar.nl/archives/upload/2008/11/multicolumn.swf" /><embed type="application/x-shockwave-flash" width="550" height="240" src="http://www.celar.nl/archives/upload/2008/11/multicolumn.swf"></embed></object></p>
<div class="igBar"><span id="lactionscript-14"><a href="#" onclick="javascript:showPlainTxt('actionscript-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-14">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//ActionScript 3.0</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">package <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #006600;">TextFieldAutoSize</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextFormat</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> MultiColumnText <span style="color: #0066CC;">extends</span> Sprite<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> columnArray:<span style="color: #0066CC;">Array</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> cols:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">2</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> columnWidth:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">100</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> columnSpacing:<span style="color: #0066CC;">Number</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> maxLines:<span style="color: #0066CC;">Number</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> textStr:<span style="color: #0066CC;">String</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">textformat</span>:<span style="color: #0066CC;">TextFormat</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #808080; font-style: italic;">// constructor</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> MultiColumnText<span style="color: #66cc66;">&#40;</span>cols:<span style="color: #0066CC;">Number</span>, columnWidth:<span style="color: #0066CC;">Number</span>, colSpacing:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;color:#800000;">10</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #0066CC;">this</span>.<span style="color: #006600;">cols</span> = cols;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #0066CC;">this</span>.<span style="color: #006600;">columnWidth</span> = columnWidth;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #0066CC;">this</span>.<span style="color: #006600;">columnSpacing</span> = colSpacing;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #0066CC;">textformat</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   createColumns<span style="color: #66cc66;">&#40;</span>cols<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #808080; font-style: italic;">/**</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * createColumns</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * Creates the number of textfields needed.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * @param cols Number Number of columns.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> createColumns<span style="color: #66cc66;">&#40;</span>cols:<span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   columnArray = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> column:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;color:#800000;">0</span>; column &amp;lt;cols; column++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #000000; font-weight: bold;">var</span> columnField = createColumnTextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     columnField.<span style="color: #006600;">x</span> = column * columnWidth + <span style="color: #66cc66;">&#40;</span>column * columnSpacing<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    columnArray.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>columnField<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    addChild<span style="color: #66cc66;">&#40;</span>columnField<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #808080; font-style: italic;">/**</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * createColumnTextField</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * Creates the textfield for each column.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * @return TextField Textfield to be returned.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> createColumnTextField<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">TextField</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #000000; font-weight: bold;">var</span> columnTextField:<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>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    columnTextField.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #0066CC;">LEFT</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    columnTextField.<span style="color: #0066CC;">border</span> = <span style="color: #000000; font-weight: bold;">false</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    columnTextField.<span style="color: #0066CC;">width</span> = columnWidth;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    columnTextField.<span style="color: #0066CC;">wordWrap</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    columnTextField.<span style="color: #0066CC;">multiline</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #b1b100;">return</span> columnTextField;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #808080; font-style: italic;">/**</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * text</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * Set the multicolumn text.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * @param textString String String to be places on the textfield columns.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">set</span> <span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#40;</span>textString:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   textStr = textString;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   fillColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #808080; font-style: italic;">/**</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * setTextFormat</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * Set the column textfield textformat.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   *</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * @param tformat  TextFormat TextFormat to be attached to the column textfields.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">setTextFormat</span><span style="color: #66cc66;">&#40;</span>tformat:<span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #0066CC;">textformat</span> = tformat;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   fillColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;color:#800000;">0</span>; i &amp;lt;columnArray.<span style="color: #0066CC;">length</span>; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    columnArray<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #0066CC;">setTextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">textformat</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #808080; font-style: italic;">/**</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * fillColumns</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * Calculates the number of lines for each column according to the text to be placed.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   * Next is inserts the text pieces to each column.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">   */</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> fillColumns<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">   <span style="color: #000000; font-weight: bold;">var</span> invisibleTextField:<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>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    invisibleTextField.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #0066CC;">LEFT</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    invisibleTextField.<span style="color: #0066CC;">multiline</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    invisibleTextField.<span style="color: #0066CC;">wordWrap</span> = <span style="color: #000000; font-weight: bold;">true</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    invisibleTextField.<span style="color: #0066CC;">width</span> = columnWidth;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    invisibleTextField.<span style="color: #0066CC;">text</span> = textStr;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    invisibleTextField.<span style="color: #0066CC;">setTextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">textformat</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    maxLines = <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">ceil</span><span style="color: #66cc66;">&#40;</span>invisibleTextField.<span style="color: #006600;">numLines</span> / cols<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;color:#800000;">0</span>; i &amp;lt;cols; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #000000; font-weight: bold;">var</span> startIndex:<span style="color: #0066CC;">Number</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #000000; font-weight: bold;">var</span> endIndex:<span style="color: #0066CC;">Number</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #000000; font-weight: bold;">var</span> lineStart:<span style="color: #0066CC;">Number</span> = <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>maxLines * i<span style="color: #66cc66;">&#41;</span>&amp;gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> ? <span style="color: #66cc66;">&#40;</span>maxLines*i<span style="color: #66cc66;">&#41;</span> : <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #0066CC;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">      startIndex = invisibleTextField.<span style="color: #006600;">getLineOffset</span><span style="color: #66cc66;">&#40;</span>lineStart<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #0066CC;">catch</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:RangeError<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">      <span style="color: #808080; font-style: italic;">//trace(e);</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #000000; font-weight: bold;">var</span> lineEnd:<span style="color: #0066CC;">Number</span> = <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>maxLines * <span style="color: #66cc66;">&#40;</span>i+<span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>&amp;gt; <span style="color: #cc66cc;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> ? <span style="color: #66cc66;">&#40;</span>maxLines*<span style="color: #66cc66;">&#40;</span>i+<span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #cc66cc;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #0066CC;">try</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">      endIndex = invisibleTextField.<span style="color: #006600;">getLineOffset</span><span style="color: #66cc66;">&#40;</span>lineEnd<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #0066CC;">catch</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:RangeError<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">      <span style="color: #808080; font-style: italic;">//trace(e);</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">      endIndex = textStr.<span style="color: #0066CC;">length</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">     columnArray<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #0066CC;">text</span> = textStr.<span style="color: #0066CC;">substring</span><span style="color: #66cc66;">&#40;</span>startIndex, endIndex<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    invisibleTextField = <span style="color: #000000; font-weight: bold;">null</span>; <span style="color: #808080; font-style: italic;">// deletes the textfield.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">  <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"> <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><span id="more-439"></span></p>
<p>Een vervolg op deze class zou er een zijn die html text over kolommen verdeeld. Hier is een andere methode voor nodig aangezien je niet op character index kunt splitsen omdat er ook opmaak code in html staat.</p>
<p>Ik hoor graag jullie opmerkingen/verbeteringen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.celar.nl/2008/11/multicolumntext-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

