<?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 on: flash 8 frustrations</title>
	<atom:link href="http://stilldavid.com/blog/2006/11/flash-8-frustrations/feed/" rel="self" type="application/rss+xml" />
	<link>http://stilldavid.com/blog/2006/11/flash-8-frustrations/</link>
	<description>Wherein, I write.</description>
	<lastBuildDate>Fri, 14 Dec 2007 05:25:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-alpha-19719</generator>
	<item>
		<title>By: dave</title>
		<link>http://stilldavid.com/blog/2006/11/flash-8-frustrations/comment-page-1/#comment-870</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Fri, 01 Dec 2006 07:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://stilldavid.com/blog/?p=463#comment-870</guid>
		<description>and if you&#039;re looking for the URL Michael was talking about in post #2, here it is:&lt;br /&gt;
&lt;br /&gt;
[&lt;a href=&quot;http://labs.bigspaceship.com/blog/?p=9#more-9&quot; rel=&quot;nofollow&quot;&gt;url&lt;/a&gt;]
</description>
		<content:encoded><![CDATA[<p>and if you&#8217;re looking for the URL Michael was talking about in post #2, here it is:</p>
<p>[<a href="http://labs.bigspaceship.com/blog/?p=9#more-9" rel="nofollow">url</a>]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://stilldavid.com/blog/2006/11/flash-8-frustrations/comment-page-1/#comment-869</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Fri, 01 Dec 2006 06:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://stilldavid.com/blog/?p=463#comment-869</guid>
		<description>Michael, you&#039;re officially my best friend, ever! Can&#039;t wait until January...
</description>
		<content:encoded><![CDATA[<p>Michael, you&#8217;re officially my best friend, ever! Can&#8217;t wait until January&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://stilldavid.com/blog/2006/11/flash-8-frustrations/comment-page-1/#comment-868</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 01 Dec 2006 06:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://stilldavid.com/blog/?p=463#comment-868</guid>
		<description>OH and sry to spamalot but it&#039;s useful in other things as well.  say you have a movieclip and you HAVE to use the onRelease handler for that mc, as in mc.onRelease = function() (aka you lose the scope to the class) then what i do is define variables in that mc for functions i might need to call from the class like this:&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
mc.setSomeVar = Delegate.create(this, setSomeVar);&lt;br /&gt;
mc.doSomething = Delegate.create(this, doSomething);&lt;br /&gt;
mc.onRelease = function():Void {&lt;br /&gt;
this.setSomeVar(true);&lt;br /&gt;
this.doSomething(false);&lt;br /&gt;
}
&lt;br /&gt;&lt;br /&gt;
private function doSomething(foo:Boolean):Void {&lt;br /&gt;
trace(this); // this = your class instance, aka all your members are accesible&lt;br /&gt;
}
&lt;br /&gt;&lt;br /&gt;
k, tips for you rule my world
</description>
		<content:encoded><![CDATA[<p>OH and sry to spamalot but it&#8217;s useful in other things as well.  say you have a movieclip and you HAVE to use the onRelease handler for that mc, as in mc.onRelease = function() (aka you lose the scope to the class) then what i do is define variables in that mc for functions i might need to call from the class like this:</p>
<p>
mc.setSomeVar = Delegate.create(this, setSomeVar);<br />
mc.doSomething = Delegate.create(this, doSomething);<br />
mc.onRelease = function():Void {<br />
this.setSomeVar(true);<br />
this.doSomething(false);<br />
}</p>
<p>private function doSomething(foo:Boolean):Void {<br />
trace(this); // this = your class instance, aka all your members are accesible<br />
}</p>
<p>k, tips for you rule my world</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://stilldavid.com/blog/2006/11/flash-8-frustrations/comment-page-1/#comment-867</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 01 Dec 2006 06:22:30 +0000</pubDate>
		<guid isPermaLink="false">http://stilldavid.com/blog/?p=463#comment-867</guid>
		<description>oh also, bigspaceship wrote a new class that lets you add your own arguments onto the call, so like delegate.create(this, onxmlload, myparam, &quot;otherparam&quot;) it&#039;s on labs.bigspaceship.com/blog
</description>
		<content:encoded><![CDATA[<p>oh also, bigspaceship wrote a new class that lets you add your own arguments onto the call, so like delegate.create(this, onxmlload, myparam, &#8220;otherparam&#8221;) it&#8217;s on labs.bigspaceship.com/blog</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://stilldavid.com/blog/2006/11/flash-8-frustrations/comment-page-1/#comment-866</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 01 Dec 2006 06:20:23 +0000</pubDate>
		<guid isPermaLink="false">http://stilldavid.com/blog/?p=463#comment-866</guid>
		<description>Oops, I&#039;m going to tell you a secret now!  There&#039;s already a built-in class to do that, it&#039;s called Delegate.  simply:&lt;br /&gt;
&lt;br /&gt;
import mx.utils.Delegate;
&lt;br /&gt;&lt;br /&gt;
var myxml:XML = new XML();&lt;br /&gt;
myxml.ignoreWhite = true;&lt;br /&gt;
myxml.load(&quot;something.xml&quot;);&lt;br /&gt;
myxml.onLoad = Delegate.create(this, onXMLLoad);&lt;br /&gt;
function onXMLLoad():Void {&lt;br /&gt;
trace(this); // traces _level0&lt;br /&gt;
trace(myxml); // traces xml structure&lt;br /&gt;
}
&lt;br /&gt;&lt;br /&gt;
:D
</description>
		<content:encoded><![CDATA[<p>Oops, I&#8217;m going to tell you a secret now!  There&#8217;s already a built-in class to do that, it&#8217;s called Delegate.  simply:</p>
<p>import mx.utils.Delegate;</p>
<p>var myxml:XML = new XML();<br />
myxml.ignoreWhite = true;<br />
myxml.load(&#8220;something.xml&#8221;);<br />
myxml.onLoad = Delegate.create(this, onXMLLoad);<br />
function onXMLLoad():Void {<br />
trace(this); // traces _level0<br />
trace(myxml); // traces xml structure<br />
}</p>
<p>:D</p>
]]></content:encoded>
	</item>
</channel>
</rss>

