<?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"
	>
<channel>
	<title>Comments on: AS3 Projects and the SWF Metadata tag</title>
	<atom:link href="http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/</link>
	<description>Flash, SWF Studio, and the world around me</description>
	<pubDate>Mon, 15 Mar 2010 09:26:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: okz</title>
		<link>http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/#comment-33278</link>
		<dc:creator>okz</dc:creator>
		<pubDate>Thu, 18 Feb 2010 08:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.madebyderek.com/?p=62#comment-33278</guid>
		<description>Wow, respect!</description>
		<content:encoded><![CDATA[<p>Wow, respect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MyHieu</title>
		<link>http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/#comment-22710</link>
		<dc:creator>MyHieu</dc:creator>
		<pubDate>Wed, 06 Feb 2008 17:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.madebyderek.com/?p=62#comment-22710</guid>
		<description>thx trace(this).com, your experience is very helpful to me ^..^</description>
		<content:encoded><![CDATA[<p>thx trace(this).com, your experience is very helpful to me ^..^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Vadneau</title>
		<link>http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/#comment-21574</link>
		<dc:creator>Derek Vadneau</dc:creator>
		<pubDate>Tue, 06 Nov 2007 14:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.madebyderek.com/?p=62#comment-21574</guid>
		<description>I think most of those points are accurate, so you don't sound too confused.

If you want perhaps a better explanation, you should take a look at some of the AS3 books out there. Although I haven't read it yet, Essential ActionScript 3 (EAS3) by Collin Moock would probably shed a lot of light on this.

The default package is where you define the classpath(s). In Flash CS3 one of the default classpaths is the same directory as the FLA, so placing a class file in that directory defines the class as being in the default package. You could, however, change this so that the classpath for the FLA is some other directory. In that case the default package would be the directory you've chosen. You can also define your main document class in a different package.

For example, let's say we redefine the classpaths for our FLA so that the only location is a folder called "classes" that resides next to our FLA. In the classes folder we place a class file called Central.as. In Central.as we define the package as having a blank name, which is the default package. The name of the class is Central. We'll create a directory called com\tracethis. In the tracethis folder we'll create a file called Main.as. In Main.as we name the package as "com.tracethis" and name the class as Main. In Flash CS3 we define the Document Class as com.tracethis.Main. Inside of the Main class we can then target static methods within the Central class or instantiate Central and use any public members, all without having to specify an import for Central in Main.as.</description>
		<content:encoded><![CDATA[<p>I think most of those points are accurate, so you don&#8217;t sound too confused.</p>
<p>If you want perhaps a better explanation, you should take a look at some of the AS3 books out there. Although I haven&#8217;t read it yet, Essential ActionScript 3 (EAS3) by Collin Moock would probably shed a lot of light on this.</p>
<p>The default package is where you define the classpath(s). In Flash CS3 one of the default classpaths is the same directory as the FLA, so placing a class file in that directory defines the class as being in the default package. You could, however, change this so that the classpath for the FLA is some other directory. In that case the default package would be the directory you&#8217;ve chosen. You can also define your main document class in a different package.</p>
<p>For example, let&#8217;s say we redefine the classpaths for our FLA so that the only location is a folder called &#8220;classes&#8221; that resides next to our FLA. In the classes folder we place a class file called Central.as. In Central.as we define the package as having a blank name, which is the default package. The name of the class is Central. We&#8217;ll create a directory called com\tracethis. In the tracethis folder we&#8217;ll create a file called Main.as. In Main.as we name the package as &#8220;com.tracethis&#8221; and name the class as Main. In Flash CS3 we define the Document Class as com.tracethis.Main. Inside of the Main class we can then target static methods within the Central class or instantiate Central and use any public members, all without having to specify an import for Central in Main.as.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/#comment-21569</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 06 Nov 2007 05:17:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.madebyderek.com/?p=62#comment-21569</guid>
		<description>So to get things straight, because Adobe did a shoddy explanation of what a package is... the main package is the one package sitting in the main project directory (ie. just package, not package com, not package.com.custom, etc), and there can only be one class file in that directory?
Sorry, I'm pretty confused about this whole package she-bang... since, I think, in Flash CS3 I can only declare one class per file that is accessible by flash (which, has to have the same name as the filename itself), although the class can be "wrapped" inside a package block that can contain other classes that can be used by and only by the "main" class.... like I said, I'm thoroughly confused :P
PS: the comment posting security code us giving me a lot of trouble, I have to post several times until I actually get it right (or it thinks that I got it right) :P</description>
		<content:encoded><![CDATA[<p>So to get things straight, because Adobe did a shoddy explanation of what a package is&#8230; the main package is the one package sitting in the main project directory (ie. just package, not package com, not package.com.custom, etc), and there can only be one class file in that directory?<br />
Sorry, I&#8217;m pretty confused about this whole package she-bang&#8230; since, I think, in Flash CS3 I can only declare one class per file that is accessible by flash (which, has to have the same name as the filename itself), although the class can be &#8220;wrapped&#8221; inside a package block that can contain other classes that can be used by and only by the &#8220;main&#8221; class&#8230;. like I said, I&#8217;m thoroughly confused <img src='http://blog.madebyderek.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
PS: the comment posting security code us giving me a lot of trouble, I have to post several times until I actually get it right (or it thinks that I got it right) <img src='http://blog.madebyderek.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Vadneau</title>
		<link>http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/#comment-21565</link>
		<dc:creator>Derek Vadneau</dc:creator>
		<pubDate>Tue, 06 Nov 2007 03:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.madebyderek.com/?p=62#comment-21565</guid>
		<description>No. The "main" or "default" package can contain any number of classes. The main document class is not a package.

You can kind of think of the default package as being similar to _global from AS1/AS2. When you define a class on the default package it is accessible from any other class in any other package, without requiring an import.

The default package is a double-edged sword. It is not recommended to use the default package when defining classes. Although, the main document class is a reasonable exception, imho.</description>
		<content:encoded><![CDATA[<p>No. The &#8220;main&#8221; or &#8220;default&#8221; package can contain any number of classes. The main document class is not a package.</p>
<p>You can kind of think of the default package as being similar to _global from AS1/AS2. When you define a class on the default package it is accessible from any other class in any other package, without requiring an import.</p>
<p>The default package is a double-edged sword. It is not recommended to use the default package when defining classes. Although, the main document class is a reasonable exception, imho.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/#comment-21564</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 06 Nov 2007 03:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.madebyderek.com/?p=62#comment-21564</guid>
		<description>So, in Flash CS3 term, does the "main package" equals to the main document AS3 class script?</description>
		<content:encoded><![CDATA[<p>So, in Flash CS3 term, does the &#8220;main package&#8221; equals to the main document AS3 class script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fleecie</title>
		<link>http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/#comment-18521</link>
		<dc:creator>fleecie</dc:creator>
		<pubDate>Fri, 08 Jun 2007 17:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.madebyderek.com/?p=62#comment-18521</guid>
		<description>I knew about the SWF metadata tag from some where (but couldnt remember where) and I spend about three hours last night searching the docs and adobe support as I needed details of implimentation and legal arguments...

finally I searched wider and found this... thanks you've pointed me back to the as3 cookbook where i must have seen it first.

why not document this what seems very basic and useful feature 
grrrr - rant over and thank again</description>
		<content:encoded><![CDATA[<p>I knew about the SWF metadata tag from some where (but couldnt remember where) and I spend about three hours last night searching the docs and adobe support as I needed details of implimentation and legal arguments&#8230;</p>
<p>finally I searched wider and found this&#8230; thanks you&#8217;ve pointed me back to the as3 cookbook where i must have seen it first.</p>
<p>why not document this what seems very basic and useful feature<br />
grrrr - rant over and thank again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://blog.madebyderek.com/archives/2007/01/12/as3-projects-and-the-swf-metadata-tag/#comment-16620</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Fri, 02 Mar 2007 22:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.madebyderek.com/?p=62#comment-16620</guid>
		<description>Just ran across the same problem.  Cheers for that.</description>
		<content:encoded><![CDATA[<p>Just ran across the same problem.  Cheers for that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
