<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Resistence is futile: Assimilating _root in FAME</title>
	<atom:link href="http://aralbalkan.com/360/feed" rel="self" type="application/rss+xml" />
	<link>http://aralbalkan.com/360</link>
	<description>Passionate geekisms.</description>
	<lastBuildDate>Sun, 12 Feb 2012 17:52:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Aral</title>
		<link>http://aralbalkan.com/360/comment-page-1#comment-255137</link>
		<dc:creator>Aral</dc:creator>
		<pubDate>Thu, 21 May 2009 10:57:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-255137</guid>
		<description>Of course, go right ahead, it&#039;s open source :)</description>
		<content:encoded><![CDATA[<p>Of course, go right ahead, it&#8217;s open source :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leandro Dias</title>
		<link>http://aralbalkan.com/360/comment-page-1#comment-255039</link>
		<dc:creator>Leandro Dias</dc:creator>
		<pubDate>Wed, 20 May 2009 23:32:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-255039</guid>
		<description>Hi!
Can I use this code on the site of a company of solutions in web design and multimedia?
Thanks!</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Can I use this code on the site of a company of solutions in web design and multimedia?<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daryl Ducharme</title>
		<link>http://aralbalkan.com/360/comment-page-1#comment-1238</link>
		<dc:creator>Daryl Ducharme</dc:creator>
		<pubDate>Wed, 12 Jul 2006 19:30:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-1238</guid>
		<description>I&#039;ve run into that problem too.  While that is easy to deal with in the flash IDE it takes a little thought in pure asctionscript.  The big thing to realize is that _root has to do with the main swf that loads all other swfs.

In the flash IDE you would just call:
var app:Application = new Application ( _this );
from the timeline and it works.  I had a similar problem and fixed it this way.  But then I thought about how I would fix the problem in pure code.

The answer is arguments.  No don&#039;t have an argument with the people you are working with.  The arguments property of any function will have an argument[0] that is a reference to the calling object.  So in pure code, the main function would look like:

public static function main():Void
{
	var app:Application = new Application ( arguments[0] );
}

I know this is way past the time of these questions but I hope it helps someone else.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve run into that problem too.  While that is easy to deal with in the flash IDE it takes a little thought in pure asctionscript.  The big thing to realize is that _root has to do with the main swf that loads all other swfs.</p>
<p>In the flash IDE you would just call:<br />
var app:Application = new Application ( _this );<br />
from the timeline and it works.  I had a similar problem and fixed it this way.  But then I thought about how I would fix the problem in pure code.</p>
<p>The answer is arguments.  No don&#8217;t have an argument with the people you are working with.  The arguments property of any function will have an argument[0] that is a reference to the calling object.  So in pure code, the main function would look like:</p>
<p>public static function main():Void<br />
{<br />
	var app:Application = new Application ( arguments[0] );<br />
}</p>
<p>I know this is way past the time of these questions but I hope it helps someone else.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aral Balkan</title>
		<link>http://aralbalkan.com/360/comment-page-1#comment-448</link>
		<dc:creator>Aral Balkan</dc:creator>
		<pubDate>Fri, 12 Aug 2005 17:01:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-448</guid>
		<description>Rainer, are you sure that it&#039;s not the event handler losing reference due to lack of method closures?&lt;br /&gt;
&lt;br /&gt;
How are you storing the singleton instance?</description>
		<content:encoded><![CDATA[<p>Rainer, are you sure that it&#8217;s not the event handler losing reference due to lack of method closures?</p>
<p>How are you storing the singleton instance?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saneinsane</title>
		<link>http://aralbalkan.com/360/comment-page-1#comment-447</link>
		<dc:creator>saneinsane</dc:creator>
		<pubDate>Fri, 12 Aug 2005 16:46:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-447</guid>
		<description>I borged my (Singleton-)-Application to _root.&lt;br /&gt;
If I call function myfunc of the Application from another class, its no longer borged:&lt;br /&gt;
&lt;br /&gt;
class Application:&lt;br /&gt;
function myfunc() {&lt;br /&gt;
 trace(this); //output:[object] instead of _root&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
otherclass() {&lt;br /&gt;
  function onRelease() {&lt;br /&gt;
    $app.myfunc();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Is there some kind of workaround?&lt;br /&gt;
&lt;br /&gt;
thx,&lt;br /&gt;
&lt;br /&gt;
rainer</description>
		<content:encoded><![CDATA[<p>I borged my (Singleton-)-Application to _root.<br />
If I call function myfunc of the Application from another class, its no longer borged:</p>
<p>class Application:<br />
function myfunc() {<br />
 trace(this); //output:[object] instead of _root<br />
}</p>
<p>otherclass() {<br />
  function onRelease() {<br />
    $app.myfunc();<br />
  }<br />
}</p>
<p>Is there some kind of workaround?</p>
<p>thx,</p>
<p>rainer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://aralbalkan.com/360/comment-page-1#comment-345</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 14 May 2005 13:17:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-345</guid>
		<description>OMG.. plus add this &lt;br /&gt;
static var SymbolName:String = &quot;__Packages.com.flashweek.TestClip&quot;;&lt;br /&gt;
	static var SymbolOwner:Object = TestClip;&lt;br /&gt;
	static var SymbolLinked = Object.registerClass(SymbolName, SymbolOwner);&lt;br /&gt;
	&lt;br /&gt;
to every file u wanna be able to use from another file - feel myself as a masochist :)</description>
		<content:encoded><![CDATA[<p>OMG.. plus add this <br />
static var SymbolName:String = &#8220;__Packages.com.flashweek.TestClip&#8221;;<br />
	static var SymbolOwner:Object = TestClip;<br />
	static var SymbolLinked = Object.registerClass(SymbolName, SymbolOwner);</p>
<p>to every file u wanna be able to use from another file &#8211; feel myself as a masochist :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

