<?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>michel van de wiel</title>
	<atom:link href="http://www.michelvandewiel.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michelvandewiel.nl</link>
	<description>de online versie</description>
	<lastBuildDate>Tue, 10 Jan 2012 09:10:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Dutch or English? [NL]</title>
		<link>http://www.michelvandewiel.nl/2012/01/dutch-or-english-nl/</link>
		<comments>http://www.michelvandewiel.nl/2012/01/dutch-or-english-nl/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 20:50:30 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[praten]]></category>
		<category><![CDATA[dutch]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[translate]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=313</guid>
		<description><![CDATA[Het lijkt erop dat google mijn site nogal leuk vind, wat betekend dat als je zoekt op flash, as3 drag and drop. Mijn site op de beginpagina verschijnt! Dus kies ik ervoor om de flash posts te gaan vertalen naar engels, inclusief engelse comments in de actionscript code. In mijn post titels zal ik achter [...]]]></description>
			<content:encoded><![CDATA[<p>Het lijkt erop dat google mijn site nogal leuk vind, wat betekend dat als je zoekt op flash, as3 drag and drop. Mijn site op de beginpagina verschijnt! Dus kies ik ervoor om de flash posts te gaan vertalen naar engels, inclusief engelse comments in de actionscript code. </p>
<p>In mijn post titels zal ik achter de post gaan zetten of deze in het engels is door [EN] toe te voegen.</p>
<p>For my english speaking visitors; i&#8217;m dutch and this is a dutch blog. But for your entertaining i have choosen to translate all flash explanations in english. One done, more to go <img src='http://www.michelvandewiel.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  All english posts will have [EN] behind the post title.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2012/01/dutch-or-english-nl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3DS max les 2, de waterton</title>
		<link>http://www.michelvandewiel.nl/2011/11/3ds-max-les-2-de-waterton/</link>
		<comments>http://www.michelvandewiel.nl/2011/11/3ds-max-les-2-de-waterton/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 13:41:36 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[3Ds max]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[3ds max]]></category>
		<category><![CDATA[low poly]]></category>
		<category><![CDATA[waterton]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=289</guid>
		<description><![CDATA[Les 2 van het semester GameArt 3D, maak een waterton in 3D en texture deze via een uvw unwrap. In deze tutorial behandel ik lowpoly modeleren op vertex niveau. Verder komt aan bod; inset, extrude en bevel. Zie bovenstaande video tutorial voor uitleg over het 3D gedeelte, zorg zelf voor een texture.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/31786614?portrait=0&amp;color=ffffff" width="650" height="382" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe></p>
<p>Les 2 van het semester GameArt 3D, maak een waterton in 3D en texture deze via een uvw unwrap. In deze tutorial behandel ik lowpoly modeleren op vertex niveau. Verder komt aan bod; inset, extrude en bevel. Zie bovenstaande video tutorial voor uitleg over het 3D gedeelte, zorg zelf voor een texture.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2011/11/3ds-max-les-2-de-waterton/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash AS3 over variabelen</title>
		<link>http://www.michelvandewiel.nl/2011/10/flash-as3-over-variabelen/</link>
		<comments>http://www.michelvandewiel.nl/2011/10/flash-as3-over-variabelen/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 14:41:30 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[flash as3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[var]]></category>
		<category><![CDATA[variabelen. variable]]></category>
		<category><![CDATA[vars]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=281</guid>
		<description><![CDATA[Variabelen binnen flash zijn handig, maar lastig om goed te implementeren. Daarom hier kort en bondig uitleg over hoe aan te maken en te gebruiken binnen je flash applicatie. Als je een variabele aanmaakt en wil gebruiken in hetzelfde frame is er niets aan de hand, flash kan hem dan gewoon vinden. Het probleem is, [...]]]></description>
			<content:encoded><![CDATA[<p>Variabelen binnen flash zijn handig, maar lastig om goed te implementeren. Daarom hier kort en bondig uitleg over hoe aan te maken en te gebruiken binnen je flash applicatie.</p>
<p>Als je een variabele aanmaakt en wil gebruiken in hetzelfde frame is er niets aan de hand, flash kan hem dan gewoon vinden. Het probleem is, als je op frame 1 een variabele aanmaakt en deze op bijvoorbeeld frame 12 pas wil hergebruiken.</p>
<p>Of als je ergens binnen een movieclip een variabele weer wil inlezen. Hieronder staan enkele mogelijkheden om deze variabelen overal uit te kunnen lezen.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> deVariabeleNaam<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = de waarde<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">// je kunt de variabele overal benaderen als je het </span>
<span style="color: #009900; font-style: italic;">// volgende doet:</span>
<span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">root</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">.</span>deVariabeleNaam<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">// stel je hebt de variabele aangemaakt in een movieclip</span>
<span style="color: #009900; font-style: italic;">// dan gebruik je de volgende code:</span>
<span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">root</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">.</span>MovieClipInstanceNaam<span style="color: #000066; font-weight: bold;">.</span>deVariabeleNaam</pre></td></tr></table></div>

<p>Onderstaande methode werkt alleen als je een var in een hoofdtijdlijn wil aanspreken.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">// variabele aanmaken met this ervoor zorgt dat deze op </span>
<span style="color: #009900; font-style: italic;">// de hoofdtijdlijn overal te vinden is. Uitlezen doe je </span>
<span style="color: #009900; font-style: italic;">// op dezelfde manier</span>
<span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>varName<span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2011/10/flash-as3-over-variabelen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash AS3 variables and counting [EN]</title>
		<link>http://www.michelvandewiel.nl/2011/10/flash-as3-werken-met-variabelen-en-tellen/</link>
		<comments>http://www.michelvandewiel.nl/2011/10/flash-as3-werken-met-variabelen-en-tellen/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 14:38:01 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[flash as3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[tellen]]></category>
		<category><![CDATA[variabelen]]></category>
		<category><![CDATA[vars]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=276</guid>
		<description><![CDATA[To grow the flower, you have to turn on the light and give it water two times. You can do that in any order. You can only turn the light on one time. Since you can water it only two times, i used a little counter to check for the amount of clicks. In the [...]]]></description>
			<content:encoded><![CDATA[<p><object width="650" height="300" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/vars.swf" /><embed width="650" height="300" type="application/x-shockwave-flash" src="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/vars.swf" /></object></p>
<p>To grow the flower, you have to turn on the light and give it water two times. You can do that in any order. You can only turn the light on one time. Since you can water it only two times, i used a little counter to check for the amount of clicks.</p>
<p>In the movieclips &#8220;flower&#8221; and &#8220;water&#8221; i placed stop(); codes to stop animations, until clicked again.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> LightOn=<span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//variable for the light, light is off</span>
<span style="color: #6699cc; font-weight: bold;">var</span> WaterCounter=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//variable to count how many times water is being given, start value = 0</span>
&nbsp;
light<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> CheckLight<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//turning the light on</span>
water<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> GivingWater<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//giving water</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> CheckLight<span style="color: #000000;">&#40;</span>evt<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>LightOn==<span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><span style="color: #009900; font-style: italic;">//if the light hasn't been turn on, else; do nothing</span>
		light<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">nextFrame</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//go to the next frame in the movieclip light (turns the light on)</span>
		flower<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//play the animation within the flower movieclip, until it encounters a stop();</span>
		LightOn=<span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//the light has been turn on</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> GivingWater<span style="color: #000000;">&#40;</span>evt<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>WaterCounter<span style="color: #000066; font-weight: bold;">&lt;</span>=<span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><span style="color: #009900; font-style: italic;">//if you click water 2 times it will do this function (on 0 and 1)</span>
		water<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//play the animation within the movieclip water</span>
		flower<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//play the animation within the flower movieclip, until it encounters a stop();</span>
		WaterCounter<span style="color: #000066; font-weight: bold;">++;</span><span style="color: #009900; font-style: italic;">//adds 1 to the variable WaterCounter</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2011/10/flash-as3-werken-met-variabelen-en-tellen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash AS3 schalen met toetsenbord update</title>
		<link>http://www.michelvandewiel.nl/2011/10/as3-schalen-update-nu-eerst-klikken-voor-vergroten/</link>
		<comments>http://www.michelvandewiel.nl/2011/10/as3-schalen-update-nu-eerst-klikken-voor-vergroten/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 20:24:21 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[flash as3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[keyboardevent]]></category>
		<category><![CDATA[keycode]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=267</guid>
		<description><![CDATA[Op verzoek een update op het schalen met + en &#8211; toetsen. Nu moet je eerst het schilderij (de meest linkse) klikken, voordat je hem kunt gaan schalen. Door gebruik te maken van verschillende instance names en variabele namen, kun je dit toepassen op zo veel verschillende objecten in je scene als je wenst. 1 [...]]]></description>
			<content:encoded><![CDATA[<p><object width="650" height="300" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/scalev2.swf" /><embed width="650" height="300" type="application/x-shockwave-flash" src="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/scalev2.swf" /></object></p>
<p>Op verzoek een update op het schalen met + en &#8211; toetsen. Nu moet je eerst het schilderij (de meest linkse) klikken, voordat je hem kunt gaan schalen. Door gebruik te maken van verschillende instance names en variabele namen, kun je dit toepassen op zo veel verschillende objecten in je scene als je wenst.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> SchilderijClickStatus=<span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//de click status van het schilderij op false zetten (er is niet op geklikt)</span>
Schilderij<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> SchilderijGeklikt<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//luisteren of er op het schilderij geklikt wordt</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> SchilderijGeklikt<span style="color: #000000;">&#40;</span>evt<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
   SchilderijClickStatus=<span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//zet de status van het schilderij op true, nu mag je hem schalen</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">KeyboardEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">KEY_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> onKeyPress<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #009900; font-style: italic;">//een listener op de stage, die luisterd of er een toets ingedrukt wordt</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> onKeyPress<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">KeyboardEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
   <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>SchilderijClickStatus==<span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><span style="color: #009900; font-style: italic;">//checked hier of de status van het schilderij true is, zo niet.. niets doen, anders schalen.</span>
      <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">187</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><span style="color: #009900; font-style: italic;">//als de keycode 187 is (+)</span>
         Schilderij<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleX</span> <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">//schaal 0.5 omhoog in de X-as</span>
         Schilderij<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleY</span> <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">//schaal 0.5 omhoog in de Y-as</span>
      <span style="color: #000000;">&#125;</span>
      <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #000000; font-weight:bold;">189</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><span style="color: #009900; font-style: italic;">//als de keycode 189 is (-)</span>
         Schilderij<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleX</span> <span style="color: #000066; font-weight: bold;">-</span>= <span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">//schaal 0.5 omlaag in de X-as</span>
         Schilderij<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleY</span> <span style="color: #000066; font-weight: bold;">-</span>= <span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">//schaal 0.5 omlaag in de Y-as</span>
      <span style="color: #000000;">&#125;</span>
   <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2011/10/as3-schalen-update-nu-eerst-klikken-voor-vergroten/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Flash AS3 drag and drop</title>
		<link>http://www.michelvandewiel.nl/2011/10/flash-as3-drag-and-drop/</link>
		<comments>http://www.michelvandewiel.nl/2011/10/flash-as3-drag-and-drop/#comments</comments>
		<pubDate>Mon, 10 Oct 2011 12:30:46 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[flash as3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[drag and drop]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[visible]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=257</guid>
		<description><![CDATA[Klik op de munt om hem te draggen, zodra je bij het varkentje komt verdwijnt de munt in het varken. munt.addEventListener(MouseEvent.MOUSE_DOWN, drag);//bij een klik op het muntje naar de functie drag stage.addEventListener(MouseEvent.MOUSE_UP, drop);//bij loslaten van het muntje naar de functie drop function drag(e:MouseEvent):void { e.target.startDrag(false, new Rectangle(33,31,559,230));//starten van het draggen, de rectangle is het gebied [...]]]></description>
			<content:encoded><![CDATA[<p><object width="650" height="300" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/dragndrop.swf" /><embed width="650" height="300" type="application/x-shockwave-flash" src="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/dragndrop.swf" /></object><br />
Klik op de munt om hem te draggen, zodra je bij het varkentje komt verdwijnt de munt in het varken.</p>
<div class="kek">
munt.addEventListener(MouseEvent.MOUSE_DOWN, drag);//bij een klik op het muntje naar de functie drag</p>
<p>stage.addEventListener(MouseEvent.MOUSE_UP, drop);//bij loslaten van het muntje naar de functie drop</p>
<p>function drag(e:MouseEvent):void<br />
{<br />
     e.target.startDrag(false, new Rectangle(33,31,559,230));//starten van het draggen, de rectangle is het gebied waar buiten het muntje niet kan gedragt worden (x,y,w,h)<br />
}</p>
<p>function drop(e:MouseEvent):void<br />
{<br />
     stopDrag();//stoppen van het draggen<br />
}</p>
<p>munt.addEventListener(Event.ENTER_FRAME, Hitding); //luisteren of de munt het varkentje raakt</p>
<p>function Hitding(event:Event):void<br />
{<br />
	if (spaarvarken.hitTestObject(munt)) // als het muntje het varkentje raakt<br />
	{<br />
		munt.visible=false;//wordt de munt onzichtbaar</p>
<p>	}<br />
}
</p></div>
<p>In bovenstaand voorbeeld komt het muntje ook weer terug, om dat voor elkaar te krijgen heb je de volgende extra code nodig (onderstaande code komt bovenin):</p>
<div class="kek">
var Teller=10; //hierin het aantal seconden dat de timer moet gebruiken<br />
var myTimer:Timer=new Timer(1000,30); //1000,30 betekend dat er 30 keer een seconde getimed wordt, aanpassen naar 60 voor een minuut.<br />
myTimer.addEventListener(TimerEvent.TIMER, timerListener);//luisterd naar de timer
</div>
<p>Vervang het laatste stuk code door de volgende codes:</p>
<div class="kek">
function Hitding(event:Event):void<br />
{<br />
	if (spaarvarken.hitTestObject(munt)) // als het muntje het varkentje raakt<br />
	{<br />
		munt.visible=false;//wordt de munt onzichtbaar<br />
		myTimer.start();//start de timer<br />
	}<br />
}</p>
<p>function timerListener(e:TimerEvent):void {<br />
	if (Teller==0) {//als de teller op 0 staat het volgende uitvoeren<br />
		munt.visible=true;//munt zichtbaar maken<br />
		munt.x=466.95;//verplaats naar deze x coordinaat<br />
		munt.y=200;//verplaats naar deze y coordinaat<br />
		Teller=10;//zet de teller weer op 10<br />
		myTimer.stop();//zet de teller stop<br />
	} else {<br />
	Teller&#8211;; //iedere seconde een afhalen van het getal in de variabele Teller<br />
	}<br />
}
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2011/10/flash-as3-drag-and-drop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash AS3 Custom muis cursor &amp; vergrootglas</title>
		<link>http://www.michelvandewiel.nl/2011/10/flash-as3-custom-muis-cursor-vergrootglas/</link>
		<comments>http://www.michelvandewiel.nl/2011/10/flash-as3-custom-muis-cursor-vergrootglas/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 13:39:15 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[flash as3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[magnify]]></category>
		<category><![CDATA[mask]]></category>
		<category><![CDATA[mousecursor]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=244</guid>
		<description><![CDATA[Beweeg de muis om het vergrootglas te bewegen, zodra je over de munten gaat komt er een glow om het vergrootglas (frame 2 binnen de movieclip die als muis gebruikt wordt). stage.addEventListener(MouseEvent.MOUSE_MOVE,moveGlass);//luisterd of de muis beweegt en zorgt voor de vergroting function moveGlass(myEvent:MouseEvent) { groot.x = (mouseX * -1); // groot is een tweede versie [...]]]></description>
			<content:encoded><![CDATA[<p><object width="650" height="300" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/mousecursor.swf" /><embed width="650" height="300" type="application/x-shockwave-flash" src="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/mousecursor.swf" /></object><br />
Beweeg de muis om het vergrootglas te bewegen, zodra je over de munten gaat komt er een glow om het vergrootglas (frame 2 binnen de movieclip die als muis gebruikt wordt).</p>
<div class="kek">
stage.addEventListener(MouseEvent.MOUSE_MOVE,moveGlass);//luisterd of de muis beweegt en zorgt voor de vergroting</p>
<p>function moveGlass(myEvent:MouseEvent) {<br />
    groot.x = (mouseX * -1); // groot is een tweede versie van je achtergrond, die groter op het scherm staat<br />
    groot.y = (mouseY * -1);<br />
    Glass_mc.x = (mouseX); //Glass_mc is een solid rondje (movieclip) die als masker dient voor de grotere versie van de achtergrond<br />
    Glass_mc.y = (mouseY);<br />
    Mouse.hide(); // verberg de normale muis<br />
} </p>
<p>// checken of de muis beweegt<br />
stage.addEventListener(MouseEvent.MOUSE_MOVE,follow);</p>
<p>// de functie om de movieclip de muis te laten volgen, de instancename van de movieclip is cursor<br />
function follow(evt:MouseEvent) {<br />
	muis.x=mouseX;//muis is de instancename van de movieclip die als muis gebruikt wordt<br />
	muis.y=mouseY;<br />
}</p>
<p>// custom muiscursor veranderen in hand zodra je over het knopje gaat<br />
Knopje.addEventListener(MouseEvent.MOUSE_OVER,MuisHand);<br />
// op frame 2 zit het vergrootglas met een extra glow<br />
function MuisHand(evt:MouseEvent) {<br />
	Object(root).muis.gotoAndStop(2);<br />
}<br />
// custom muiscursor veranderen in pijl zodra je van het knopje af gaat<br />
Knopje.addEventListener(MouseEvent.MOUSE_OUT,MuisPijl);<br />
// op frame 1 zit het gewone vergrootglas<br />
function MuisPijl(evt:MouseEvent) {<br />
	Object(root).muis.gotoAndStop(1);<br />
}
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2011/10/flash-as3-custom-muis-cursor-vergrootglas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash AS3 Sound, play, stop and pause [EN]</title>
		<link>http://www.michelvandewiel.nl/2011/10/flash-as3-sound-spelen-stoppen-en-pauzeren/</link>
		<comments>http://www.michelvandewiel.nl/2011/10/flash-as3-sound-spelen-stoppen-en-pauzeren/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 12:17:59 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[flash as3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[sndchannel]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=234</guid>
		<description><![CDATA[Click on the radio to start or pause the music. Click on the plug to stop the music. Music by Alphonso Steverink &#8211; We are all distorted. This is the code i used to make the swf above: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [...]]]></description>
			<content:encoded><![CDATA[<p><object width="650" height="300" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/geluid.swf" /><embed width="650" height="300" type="application/x-shockwave-flash" src="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/geluid.swf" /></object><br />
Click on the radio to start or pause the music. Click on the plug to stop the music. Music by <a href="http://www.alphonsosteverink.com" target="_blank">Alphonso Steverink</a> &#8211; We are all distorted.</p>
<p>This is the code i used to make the swf above:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #009900; font-style: italic;">// declaring variables</span>
<span style="color: #6699cc; font-weight: bold;">var</span> pausePoint<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">0.00</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//Make a pausepoint, for resuming playback</span>
<span style="color: #6699cc; font-weight: bold;">var</span> soundClip<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sound</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sound</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//Make a soundobject</span>
<span style="color: #6699cc; font-weight: bold;">var</span> sndChannel<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">SoundChannel</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">SoundChannel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//Make a soundchannel</span>
<span style="color: #6699cc; font-weight: bold;">var</span> isPlaying = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//a variable for checking if the music is playing</span>
&nbsp;
soundClip<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;name.mp3&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//loading an mp3 into the soundobject</span>
&nbsp;
StopKnop<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> onClickStop<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//button for stopping the music</span>
SpeelOn<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> onClickPauze<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//button to pause or play the music</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> onClickStop<span style="color: #000000;">&#40;</span>evt<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//the stop function</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>isPlaying==<span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//check if the sound is playing, if true then continue</span>
	<span style="color: #000000;">&#123;</span>
		sndChannel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//stop soundchannel from playing</span>
		isPlaying = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//set playing var on false</span>
		StopKnop<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">visible</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//hide the stop button</span>
	<span style="color: #000000;">&#125;</span>
	pausePoint = <span style="color: #000000; font-weight:bold;">0.00</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//return pausepoint to 0</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> onClickPauze<span style="color: #000000;">&#40;</span>evt<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//the pause function</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>isPlaying==<span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #009900; font-style: italic;">//check if the sound is playing, if true then continue</span>
	<span style="color: #000000;">&#123;</span>
		pausePoint = sndChannel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">position</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//remember the pause position</span>
		sndChannel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//stop soundchannel from playing</span>
		isPlaying = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//set playing var on false</span>
	<span style="color: #000000;">&#125;</span>
	<span style="color: #0033ff; font-weight: bold;">else</span>
	<span style="color: #000000;">&#123;</span>
		sndChannel = soundClip<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span>pausePoint<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//resume playing from pausepoint</span>
		isPlaying = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//set playing var on true, sound is playing</span>
		StopKnop<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">visible</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//hide the stop button</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>To stop all sounds playing on either a timeline or through actionscript, use the following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.media</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">SoundMixer</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">SoundMixer</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stopAll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<p>In short, if you would like to play a sound on your timeline use the following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> soundClip<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sound</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sound</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//Make a soundobject</span>
<span style="color: #6699cc; font-weight: bold;">var</span> sndChannel<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">SoundChannel</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">SoundChannel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//Make a soundchannel</span>
&nbsp;
soundClip<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">URLRequest</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;name.mp3&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//loading an mp3 into the soundobject</span>
&nbsp;
sndChannel=soundClip<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">play</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//play the sound</span></pre></td></tr></table></div>

<p>If you want to re-use this code for more sounds, don&#8217;t forget to adjust the var names &#8220;soundClip&#8221; and &#8220;sndChannel&#8221;.<br />&nbsp;<br />
It is possible that flash doesn&#8217;t play the mp3, depending on the used codec flash can give a streamerror. Use adobe photobooth or audacity to make a new mp3 without any compression. I always use mp3&#8242;s instead of other formats. In my opinion those work most of the time.<br />&nbsp;<br />
To stop the above sound from playing use:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="actionscript3" style="font-family:monospace;">sndChannel<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><span style="color: #009900; font-style: italic;">//channel stoppen</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2011/10/flash-as3-sound-spelen-stoppen-en-pauzeren/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3Ds Max Les 1, het kratje</title>
		<link>http://www.michelvandewiel.nl/2011/10/3ds-max-les-1-het-kratje/</link>
		<comments>http://www.michelvandewiel.nl/2011/10/3ds-max-les-1-het-kratje/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 09:55:30 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[3Ds max]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[3ds max]]></category>
		<category><![CDATA[kratje]]></category>
		<category><![CDATA[les 1]]></category>
		<category><![CDATA[texture]]></category>
		<category><![CDATA[uvw unwrap]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=230</guid>
		<description><![CDATA[Les 1 van het semester GameArt 3D, maak een kratje in 3D en texture deze via een uvw unwrap. Zie bovenstaande video tutorial voor uitleg over het 3D gedeelte, zorg zelf voor een texture.]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/30016612?portrait=0" width="650" height="382" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe></p>
<p>Les 1 van het semester GameArt 3D, maak een kratje in 3D en texture deze via een uvw unwrap. Zie bovenstaande video tutorial voor uitleg over het 3D gedeelte, zorg zelf voor een texture.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2011/10/3ds-max-les-1-het-kratje/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash AS3 timer</title>
		<link>http://www.michelvandewiel.nl/2011/10/flash-as3-timer-2/</link>
		<comments>http://www.michelvandewiel.nl/2011/10/flash-as3-timer-2/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 09:51:57 +0000</pubDate>
		<dc:creator>Michel</dc:creator>
				<category><![CDATA[flash as3]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[timer]]></category>

		<guid isPermaLink="false">http://www.michelvandewiel.nl/?p=227</guid>
		<description><![CDATA[Om deze timer te maken heb je de volgende code nodig op het eerste frame van de swf: stop(); var Teller=30; //hierin het aantal seconden dat de timer moet gebruiken var Tellen=true; // om maar een keer te tellen, zet ik deze nu op true. Later op False, hij is dan al een keer terug [...]]]></description>
			<content:encoded><![CDATA[<p><object width="650" height="600" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/timer.swf" /><embed width="650" height="600" type="application/x-shockwave-flash" src="http://www.michelvandewiel.nl/wp-content/uploads/2011/10/timer.swf" /></object></p>
<p>Om deze timer te maken heb je de volgende code nodig op het eerste frame van de swf:</p>
<div class="kek">
stop();</p>
<p>var Teller=30; //hierin het aantal seconden dat de timer moet gebruiken</p>
<p>var Tellen=true; // om maar een keer te tellen, zet ik deze nu op true. Later op False, hij is dan al een keer terug geteld naar 0</p>
<p>time_txt.text=Teller; //time_txt is de instance name van het text veld waarin afgeteld wordt. Teller is de variabele met daarin het aantal seconden</p>
<p>var myTimer:Timer=new Timer(1000,30); //1000,30 betekend dat er 30 keer een seconde getimed wordt, aanpassen naar 60 voor een minuut.</p>
<p>myTimer.addEventListener(TimerEvent.TIMER, timerListener);</p>
<p>function timerListener(e:TimerEvent):void {<br />
if (Teller==0) {<br />
Tellen=false; //Niet meer tellen als de teller op 0 staat<br />
} else {<br />
Teller&#8211;; //iedere seconde een afhalen van het getal in de variabele Teller<br />
time_txt.text=Teller; //het text vak updaten met het nieuwe getal<br />
//ZwartVlak.nextFrame(); //gaat binnen de instance ZwartVlak naar een volgend frame<br />
}<br />
}</p>
<p>myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete);</p>
<p>function onComplete(e:TimerEvent):void {<br />
gotoAndStop(&#8220;uit&#8221;); //als de timer klaar is wordt dit uitgevoerd, ga naar frame label &#8220;uit&#8221; in dit geval op frame nummer 2<br />
}</p>
<p>start_btn.addEventListener(MouseEvent.CLICK, onStart);</p>
<p>function onStart(e:MouseEvent):void {<br />
myTimer.start(); //starten van de timer<br />
}</p>
</div>
<p>Op frame 2 staat in principe hetzelfde, alleen een donkere laag over alle andere assets heen. Vergeet geen stop(); code toe te voegen voor de zekerheid op frame 2.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelvandewiel.nl/2011/10/flash-as3-timer-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

