<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Flash CS3 and _exclude.xml</title>
	<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/</link>
	<description>where matthew tretter types stuff</description>
	<pubDate>Mon, 08 Sep 2008 05:52:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: matthew</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-652</link>
		<dc:creator>matthew</dc:creator>
		<pubDate>Wed, 09 Jul 2008 18:13:53 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-652</guid>
		<description>@Guillermo: Use &lt;a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00003921.html" rel="nofollow"&gt;document.docClass&lt;/a&gt;.  This info is covered in the "Extending Flash" section of Flash's help.</description>
		<content:encoded><![CDATA[<p>@Guillermo: Use <a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00003921.html" rel="nofollow">document.docClass</a>.  This info is covered in the &#034;Extending Flash&#034; section of Flash&#039;s help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillermo</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-651</link>
		<dc:creator>Guillermo</dc:creator>
		<pubDate>Wed, 09 Jul 2008 17:05:10 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-651</guid>
		<description>I'm trying to figure out a way to add a Document Class to my .fla with JSFL.  I hope that makes sense.

So I have a JSFL that creates a .fla with some functionality in it.  then it gets saved as .fla.
Manually I'm going to publish this file but I would like the .fla to have the document class in there already adding it from my JSFL.

any ideas how to do this.

document class in the properties for Flash 9.  This .fla will be flash 9 as3.

any ideas would be greatly appreciated.

thanks.</description>
		<content:encoded><![CDATA[<p>I&#039;m trying to figure out a way to add a Document Class to my .fla with JSFL.  I hope that makes sense.</p>
<p>So I have a JSFL that creates a .fla with some functionality in it.  then it gets saved as .fla.<br />
Manually I&#039;m going to publish this file but I would like the .fla to have the document class in there already adding it from my JSFL.</p>
<p>any ideas how to do this.</p>
<p>document class in the properties for Flash 9.  This .fla will be flash 9 as3.</p>
<p>any ideas would be greatly appreciated.</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-509</link>
		<dc:creator>matthew</dc:creator>
		<pubDate>Wed, 28 May 2008 12:47:39 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-509</guid>
		<description>One more step on the way to nirvana:

&lt;pre&gt;&lt;code&gt;as += 'import ' + excludedClasses[i] + ';\n(' + excludedClasses[i].split('.').pop() + ');\n';
&lt;/code&gt;&lt;/pre&gt;

By adding the parenthesis, we avoid the compiler warning.  I've updated the zip and repository with this version.</description>
		<content:encoded><![CDATA[<p>One more step on the way to nirvana:</p>
<pre><code>as += 'import ' + excludedClasses[i] + ';\n(' + excludedClasses[i].split('.').pop() + ');\n';
</code></pre>
<p>By adding the parenthesis, we avoid the compiler warning.  I&#039;ve updated the zip and repository with this version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ihsan</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-501</link>
		<dc:creator>Ihsan</dc:creator>
		<pubDate>Mon, 26 May 2008 10:44:41 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-501</guid>
		<description>Hi Matthew, 

You are wellcome,

Tested the last version, works perfectly, a masterpiece. Less code, same result. Thank you.

BTW, that line is reaching to its satori, nirvana ... whatever :)</description>
		<content:encoded><![CDATA[<p>Hi Matthew, </p>
<p>You are wellcome,</p>
<p>Tested the last version, works perfectly, a masterpiece. Less code, same result. Thank you.</p>
<p>BTW, that line is reaching to its satori, nirvana &#8230; whatever :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-493</link>
		<dc:creator>matthew</dc:creator>
		<pubDate>Thu, 22 May 2008 14:03:48 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-493</guid>
		<description>Hey Ihsan.. I think that line can actually be simplified even further.  If I'm not mistaken, 

&lt;pre&gt;&lt;code&gt;as += 'import ' + excludedClasses[i] + ';\n' + excludedClasses[i].split('.').pop() + ';\n';
&lt;/code&gt;&lt;/pre&gt;

should do the trick.  I'll update the script as soon as I get a chance.  Thanks for your input!</description>
		<content:encoded><![CDATA[<p>Hey Ihsan.. I think that line can actually be simplified even further.  If I&#039;m not mistaken, </p>
<pre><code>as += 'import ' + excludedClasses[i] + ';\n' + excludedClasses[i].split('.').pop() + ';\n';
</code></pre>
<p>should do the trick.  I&#039;ll update the script as soon as I get a chance.  Thanks for your input!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ihsan</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-492</link>
		<dc:creator>Ihsan</dc:creator>
		<pubDate>Thu, 22 May 2008 13:12:00 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-492</guid>
		<description>I made a change for the temporary library since I import not only .as class files.
If you import an .as file containing only a public object declaration or a public function instead of a public class, the object or function reference will give type error when declared as follows;
var _n: (a function reference); or
var _n: (an object reference, actually a variable);

So I changed the line in your script 
as += 'import ' + excludedClasses[i] + ';\nvar _' + i + ':' + excludedClasses[i].split('.').pop() + ';\n'; 
into 
as += 'import ' + excludedClasses[i] + ';\nvar _' + i + '=' + excludedClasses[i].split('.').pop() + ';\n';

which equates or assigns the public symbol declaration in the .as file (regardless of whatever it is)...
Since ;
var _n=(a function reference); or
var _n=(an object reference, actually a variable); or
var _n=(a class reference);
assignments will always work. 
I tested it and it is working. I do not know if it has any drawbacks. 

I hope my contribution may help all of us.
And again,

Thank you very very much for your script.</description>
		<content:encoded><![CDATA[<p>I made a change for the temporary library since I import not only .as class files.<br />
If you import an .as file containing only a public object declaration or a public function instead of a public class, the object or function reference will give type error when declared as follows;<br />
var _n: (a function reference); or<br />
var _n: (an object reference, actually a variable);</p>
<p>So I changed the line in your script<br />
as += &#039;import &#039; + excludedClasses[i] + &#039;;\nvar _&#039; + i + &#039;:&#039; + excludedClasses[i].split(&#039;.').pop() + &#039;;\n&#039;;<br />
into<br />
as += &#039;import &#039; + excludedClasses[i] + &#039;;\nvar _&#039; + i + &#039;=&#039; + excludedClasses[i].split(&#039;.').pop() + &#039;;\n&#039;;</p>
<p>which equates or assigns the public symbol declaration in the .as file (regardless of whatever it is)&#8230;<br />
Since ;<br />
var _n=(a function reference); or<br />
var _n=(an object reference, actually a variable); or<br />
var _n=(a class reference);<br />
assignments will always work.<br />
I tested it and it is working. I do not know if it has any drawbacks. </p>
<p>I hope my contribution may help all of us.<br />
And again,</p>
<p>Thank you very very much for your script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ihsan</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-491</link>
		<dc:creator>Ihsan</dc:creator>
		<pubDate>Thu, 22 May 2008 10:11:58 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-491</guid>
		<description>This rocks!

Without this, I solved the problem via using a proxy extension class instance casted to object which can store references in a hidden static object (array) and grab it from the applicationDomain so no compile time checking which means trouble.

Now I have compile time checking. And no more surfing on the bla bla net org forum telling nothing...
I have spent 3 days for that... Finally someone who knows what he is doing... 

Thank you very very much.</description>
		<content:encoded><![CDATA[<p>This rocks!</p>
<p>Without this, I solved the problem via using a proxy extension class instance casted to object which can store references in a hidden static object (array) and grab it from the applicationDomain so no compile time checking which means trouble.</p>
<p>Now I have compile time checking. And no more surfing on the bla bla net org forum telling nothing&#8230;<br />
I have spent 3 days for that&#8230; Finally someone who knows what he is doing&#8230; </p>
<p>Thank you very very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Siu Lun .Net &#187; Blog Archive &#187; Flash CS3 and _exclude.xml</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-195</link>
		<dc:creator>Siu Lun .Net &#187; Blog Archive &#187; Flash CS3 and _exclude.xml</dc:creator>
		<pubDate>Wed, 02 Apr 2008 16:21:44 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-195</guid>
		<description>[...] ways to use shared library between swf files in Flex, but not in Flash IDE. That is, until I found this amazing piece of work done by Matthew Tretter. Which basically brought _exclude back into Flash [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] ways to use shared library between swf files in Flex, but not in Flash IDE. That is, until I found this amazing piece of work done by Matthew Tretter. Which basically brought _exclude back into Flash [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-193</link>
		<dc:creator>matthew</dc:creator>
		<pubDate>Wed, 02 Apr 2008 15:34:48 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-193</guid>
		<description>Ah, I see.  The script was erroring because the class was accessing the stage instance as a property. For various reasons, I never do this (in fact, I think allowing this was a mistake on Adobe's part -- I may write an article explaining why in the future), but the practice is pretty much standard for Flash developers so it certainly can't be allowed to break the script! (The script also needs better error handling but that's a matter for another day.)

Anyway, I've updated the JSFL and the problem should be fixed. Thanks for bringing this to my attention!</description>
		<content:encoded><![CDATA[<p>Ah, I see.  The script was erroring because the class was accessing the stage instance as a property. For various reasons, I never do this (in fact, I think allowing this was a mistake on Adobe&#039;s part &#8212; I may write an article explaining why in the future), but the practice is pretty much standard for Flash developers so it certainly can&#039;t be allowed to break the script! (The script also needs better error handling but that&#039;s a matter for another day.)</p>
<p>Anyway, I&#039;ve updated the JSFL and the problem should be fixed. Thanks for bringing this to my attention!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald</title>
		<link>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-191</link>
		<dc:creator>Ronald</dc:creator>
		<pubDate>Wed, 02 Apr 2008 13:41:18 +0000</pubDate>
		<guid>http://exanimo.com/actionscript/flash-cs3-and-exclude-xml/#comment-191</guid>
		<description>Hi mattew, I did a bit more testing... basically, the compiler script doesn't work if I'm using "auto declare stage instance" and referencing a stage instance from within the document class. It works if I disable that and manually declare each stage instance I use in my document class. It isn't a major thing, just a catcha that people need to be aware of. 

I'll send you a reconstruction of your example with a document class that doesn't work. Really great work none the less.</description>
		<content:encoded><![CDATA[<p>Hi mattew, I did a bit more testing&#8230; basically, the compiler script doesn&#039;t work if I&#039;m using &#034;auto declare stage instance&#034; and referencing a stage instance from within the document class. It works if I disable that and manually declare each stage instance I use in my document class. It isn&#039;t a major thing, just a catcha that people need to be aware of. </p>
<p>I&#039;ll send you a reconstruction of your example with a document class that doesn&#039;t work. Really great work none the less.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
