<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Director Diaries</title>
	<atom:link href="http://www.ed-multimedia.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ed-multimedia.com</link>
	<description></description>
	<lastBuildDate>Thu, 16 Feb 2012 11:56:48 +0200</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Comment on Event Dispatcher by vlad</title>
		<link>http://www.ed-multimedia.com/2010/10/28/event-dispatcher/#comment-48</link>
		<dc:creator>vlad</dc:creator>
		<pubDate>Thu, 16 Feb 2012 11:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ed-multimedia.com/?p=1#comment-48</guid>
		<description>Added / updated the following methods:
[code lang=&quot;lingo&quot; gutter=&quot;false&quot; toolbar=&quot;false&quot; collapse=&quot;false&quot;]
hasEventListeners( SymbolEventName )
dispatchEvent( SymbolEventName, args )
[/code]</description>
		<content:encoded><![CDATA[<p>Added / updated the following methods:</p>
<pre class="brush: lingo; collapse: false; gutter: false; toolbar: false;">
hasEventListeners( SymbolEventName )
dispatchEvent( SymbolEventName, args )
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Light Maps with 3DSMax and VRay — I by denis</title>
		<link>http://www.ed-multimedia.com/2010/10/28/light-maps-with-3dsmax-and-vray-1/#comment-47</link>
		<dc:creator>denis</dc:creator>
		<pubDate>Fri, 20 Jan 2012 05:53:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ed-multimedia.com/?p=16#comment-47</guid>
		<description>Thank you very much, It&#039;s a good help!</description>
		<content:encoded><![CDATA[<p>Thank you very much, It’s a good help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Light Maps with 3DSMax and VRay — III by les</title>
		<link>http://www.ed-multimedia.com/2010/10/28/light-maps-with-3dsmax-and-vray-3/#comment-23</link>
		<dc:creator>les</dc:creator>
		<pubDate>Fri, 12 Aug 2011 21:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ed-multimedia.com/?p=24#comment-23</guid>
		<description>Very clear/helpful</description>
		<content:encoded><![CDATA[<p>Very clear/helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Director — MySQL communication by les</title>
		<link>http://www.ed-multimedia.com/2010/10/28/director-mysql-communication/#comment-22</link>
		<dc:creator>les</dc:creator>
		<pubDate>Fri, 12 Aug 2011 21:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.ed-multimedia.com/?p=27#comment-22</guid>
		<description>Thanks, useful/clear explanation</description>
		<content:encoded><![CDATA[<p>Thanks, useful/clear explanation</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tween Engine Overview by vlad</title>
		<link>http://www.ed-multimedia.com/2010/10/28/tween-engine-overview/#comment-19</link>
		<dc:creator>vlad</dc:creator>
		<pubDate>Mon, 11 Jul 2011 07:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ed-multimedia.com/?p=11#comment-19</guid>
		<description>On July 10, TweenEngine was updated with a few more things:
- Stepped ease
- Rough ease
- Stretch plugin
- Roll plugin</description>
		<content:encoded><![CDATA[<p>On July 10, TweenEngine was updated with a few more things:<br />
– Stepped ease<br />
– Rough ease<br />
– Stretch plugin<br />
– Roll plugin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript memory leak by fx</title>
		<link>http://www.ed-multimedia.com/2011/04/04/javascript-memory-leak/#comment-10</link>
		<dc:creator>fx</dc:creator>
		<pubDate>Wed, 08 Jun 2011 21:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ed-multimedia.com/?p=86#comment-10</guid>
		<description>This is not really a memory leak, but the explanation is the following (from the &quot;Undocumented Lingo&quot; page of the &quot;Directorforum Collaboration Wiki&quot;): 

JavaScript Garbage Collection

The JavaScript Interpreter (SpiderMonkey) remembers everything, until 8MB of system memory are used. Then it starts to collect garbage. With the method gc() you can force garbage collection anytime.
[code lang=&quot;javascript&quot; gutter=&quot;false&quot; toolbar=&quot;false&quot;]
// JavaScript-Syntax
_system.gc();
[/code]
so if you want to avoid this &quot;temporary leak&quot; in your sample code above, you could call _system.gc() e.g. after every 10000 frames.

Cheers,
Valentin</description>
		<content:encoded><![CDATA[<p>This is not really a memory leak, but the explanation is the following (from the “Undocumented Lingo” page of the “Directorforum Collaboration Wiki”): </p>
<p>JavaScript Garbage Collection</p>
<p>The JavaScript Interpreter (SpiderMonkey) remembers everything, until 8MB of system memory are used. Then it starts to collect garbage. With the method gc() you can force garbage collection anytime.</p>
<pre class="brush: jscript; gutter: false; toolbar: false;">
// JavaScript-Syntax
_system.gc();
</pre>
<p>so if you want to avoid this “temporary leak” in your sample code above, you could call _system.gc() e.g. after every 10000 frames.</p>
<p>Cheers,<br />
Valentin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Read-only Properties by fx</title>
		<link>http://www.ed-multimedia.com/2010/10/28/read-only-properties/#comment-9</link>
		<dc:creator>fx</dc:creator>
		<pubDate>Wed, 08 Jun 2011 21:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.ed-multimedia.com/?p=8#comment-9</guid>
		<description>This might be trivial, but just in case: an alternative approach to achieve about the same result with lingo only is to go completely without dot syntax for getting/setting properties, but instead exclusivly use bracket syntax. Then your script can overwrite the default implementations of getAt/setAt to create such custom getter/setter functions:

[code lang=&quot;lingo&quot; gutter=&quot;true&quot; toolbar=&quot;true&quot; collapse=&quot;false&quot;]
-- parent script &quot;Bullet&quot;
property _speed
property _type

on new me, aType
  if (aType&lt;&gt; 5.45 AND aType&lt;&gt;7.62) then
    _player.alert( &quot;The property &#039;type&#039; can accept only values 5.45 and 7.62&quot; )
    _movie.halt()
  end if
  me._type = aType
  return me
end

on setAt me, p, v
  --put &quot;setAt&quot;, p, v
  case p of
    #speed:
      if (v&lt;=0) then
        _player.alert( &quot;Error: The property &#039;speed&#039; can accept only values greater than 0.&quot; )
        _movie.halt()
      end if
    otherwise:
      _player.alert( &quot;Error: The property &#039;&quot;&amp;p&amp;&quot;&#039; has no setter&quot; )
      _movie.halt()
  end case
  me.setProp(&quot;_&quot;&amp;p, v)
end

on getAt me, p
  --put &quot;getAt&quot;, p
  return me.getProp(&quot;_&quot;&amp;p)
end
[/code]

[code lang=&quot;lingo&quot; gutter=&quot;false&quot; toolbar=&quot;false&quot; collapse=&quot;false&quot;]
-- test in message window
myBullet = script( &quot;Bullet&quot; ).new( 3.5 )  -- &quot;Error: The property &#039;type&#039; can accept only values 5.45 and 7.62&quot;
myBullet = script( &quot;Bullet&quot; ).new( 5.45 ) -- OK
myBullet[#type] = 7.62                    -- &quot;Error: The property &#039;type&#039; has no setter&quot;
trace( myBullet[#type] )                  -- 5.4500
myBullet[#speed] = 1200                  -- OK
trace( myBullet[#speed] )                -- 1200
myBullet[#speed] = -10                    -- &quot;Error: The property &#039;speed&#039; can accept only values greater than 0.&quot;
[/code]

Cheers,
Valentin</description>
		<content:encoded><![CDATA[<p>This might be trivial, but just in case: an alternative approach to achieve about the same result with lingo only is to go completely without dot syntax for getting/setting properties, but instead exclusivly use bracket syntax. Then your script can overwrite the default implementations of getAt/setAt to create such custom getter/setter functions:</p>
<pre class="brush: lingo; collapse: false; gutter: true; toolbar: true;">
-- parent script &quot;Bullet&quot;
property _speed
property _type

on new me, aType
  if (aType&lt;&gt; 5.45 AND aType&lt;&gt;7.62) then
    _player.alert( &quot;The property 'type' can accept only values 5.45 and 7.62&quot; )
    _movie.halt()
  end if
  me._type = aType
  return me
end

on setAt me, p, v
  --put &quot;setAt&quot;, p, v
  case p of
    #speed:
      if (v&lt;=0) then
        _player.alert( &quot;Error: The property 'speed' can accept only values greater than 0.&quot; )
        _movie.halt()
      end if
    otherwise:
      _player.alert( &quot;Error: The property '&quot;&amp;p&amp;&quot;' has no setter&quot; )
      _movie.halt()
  end case
  me.setProp(&quot;_&quot;&amp;p, v)
end

on getAt me, p
  --put &quot;getAt&quot;, p
  return me.getProp(&quot;_&quot;&amp;p)
end
</pre>
<pre class="brush: lingo; collapse: false; gutter: false; toolbar: false;">
-- test in message window
myBullet = script( &quot;Bullet&quot; ).new( 3.5 )  -- &quot;Error: The property 'type' can accept only values 5.45 and 7.62&quot;
myBullet = script( &quot;Bullet&quot; ).new( 5.45 ) -- OK
myBullet[#type] = 7.62                    -- &quot;Error: The property 'type' has no setter&quot;
trace( myBullet[#type] )                  -- 5.4500
myBullet[#speed] = 1200                  -- OK
trace( myBullet[#speed] )                -- 1200
myBullet[#speed] = -10                    -- &quot;Error: The property 'speed' can accept only values greater than 0.&quot;
</pre>
<p>Cheers,<br />
Valentin</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Director — MySQL communication by kokomba</title>
		<link>http://www.ed-multimedia.com/2010/10/28/director-mysql-communication/#comment-5</link>
		<dc:creator>kokomba</dc:creator>
		<pubDate>Mon, 20 Dec 2010 09:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ed-multimedia.com/?p=27#comment-5</guid>
		<description>Great stuff dude. Sounds really amazing to me...</description>
		<content:encoded><![CDATA[<p>Great stuff dude. Sounds really amazing to me…</p>
]]></content:encoded>
	</item>
</channel>
</rss>

