<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flash - 9.0 - main - 00000028.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T20:12:54</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000028.html#78819" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000028.html#78789" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000028.html#77638" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000028.html#74666" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000028.html#74507" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000028.html#74004" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000028.html#73978" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000028.html#78819">
		<title>flash/9.0/main/00000028.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000028.html#78819</link>
		<description>MotherBrain,&lt;br&gt;&lt;br&gt;Actually, that's backwards; you can put your files in any directory hierarchy you want. What matters is how you declare your packages and what classes you declare within each package. So, you'd actually use &lt;br&gt;import toybox.Ball;&lt;br&gt;&lt;br&gt;This page should help:&lt;br&gt;http://livedocs.adobe.com/flash/9.0/main/00000041.html</description>
		<dc:creator>djtechwriter</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2007-12-21T16:51:59</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000028.html#78789">
		<title>flash/9.0/main/00000028.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000028.html#78789</link>
		<description>If I understand this correctly.  When you import a package into your fla file, the package name has no bearing on the import statement whatsoever?&lt;br /&gt;&lt;br /&gt;For instance:&lt;br /&gt;Ball.as is saved in a folder called classes.&lt;br /&gt;&lt;br /&gt;package toybox&lt;br /&gt;{&lt;br /&gt;      public class Ball extends MovieClip&lt;br /&gt;      ...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Inside the fla file, I would do the following correct?&lt;br /&gt;&lt;br /&gt;import classes.Ball;&lt;br /&gt;&lt;br /&gt;Thus toybox is not utilized?  If this is correct, what is reasoning behind using package names?</description>
		<dc:creator>MotherBrain</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-12-21T08:00:17</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000028.html#77638">
		<title>flash/9.0/main/00000028.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000028.html#77638</link>
		<description>that was wonderful, now let's try this:&lt;br /&gt;&lt;br /&gt;Options for organizing your code:&lt;br /&gt;1) script include: &lt;mx:Script source=&quot;Box.as&quot; /&gt;&lt;br /&gt;2) include statement &quot;include Box.as&quot;&lt;br /&gt;3) package reference &quot;import Box&quot;&lt;br /&gt;4) compiled reference .... ?</description>
		<dc:creator>lvwarren</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-11-30T07:27:38</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000028.html#74666">
		<title>flash/9.0/main/00000028.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000028.html#74666</link>
		<description>All the classes within a single package must have unique names.&lt;br&gt;&lt;br&gt;A class in one package can have the same name as a class in another package. Whichever class is imported with the import statement will determine which class is used. However, if you need to use two different classes that have the same name (and are in different packages) then you'll need to import them and also use the fully-qualified name (package-and-class name) within your code.</description>
		<dc:creator>adbe_paul</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2007-10-08T13:25:09</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000028.html#74507">
		<title>flash/9.0/main/00000028.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000028.html#74507</link>
		<description>&quot;The only exceptions to the rule that a class must be imported if you refer to that class in your code are the top-level classes, which are not defined in a package.&quot;&lt;br /&gt;&lt;br /&gt;Is it means that a class must have uniq name ?</description>
		<dc:creator>try_test</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-10-04T21:49:33</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000028.html#74004">
		<title>flash/9.0/main/00000028.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000028.html#74004</link>
		<description>In ActionScript 2.0, the package name corresponded to the directory hierarchy relative to the original FLA file. However, with ActionScript 3.0, the package name doesn't necessarily correspond to the directory structure. It may (and usually does) show the directory path, but you can create a package name within your AS file that does not reflect the directory hierarchy. This new flexibility is explained here:&lt;br&gt;&lt;br&gt;http://livedocs.adobe.com/flash/9.0/main/00000041.html under &quot;Creating packages&quot;</description>
		<dc:creator>djtechwriter</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2007-09-25T10:04:06</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000028.html#73978">
		<title>flash/9.0/main/00000028.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000028.html#73978</link>
		<description>This explanation says nothing about where flash goes looking for the actionscript files that are imported.  For instance, if I import:&lt;br /&gt;&lt;br /&gt;com.mydomain.myPackage.*&lt;br /&gt;&lt;br /&gt;then where do I have to put the actionscript files so flash can find them?</description>
		<dc:creator>sneakyimp</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-09-24T22:41:22</dc:date>
	</item>
	</rdf:RDF>

