<?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 - 00000033.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-25T07:20:02</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000033.html#86554" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000033.html#86308" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000033.html#77698" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000033.html#67693" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000033.html#65751" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000033.html#65693" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000033.html#86554">
		<title>flash/9.0/main/00000033.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000033.html#86554</link>
		<description>The package both organizes your classes, and in the case where two class names are the same, provides a mechanism for distinguishing between them. The full class name is really package.Class, but the import statement allows you to use just the class name in your code. If you were using two classes that had the same name from two different packages, you would have to use the full package.Class syntax whenever you referred to them in code.&lt;br&gt;&lt;br&gt;You can think of a packages as directories and subdirectories of class files (and in fact that is how the compiler finds the source files). Each segment of the package name between the dots is a directory. The class at the end is the file defining that class. Using &quot;*&quot; in an import statement is like using a wildcard when listing a directory, all the classes/files in that directory are included. So when the classes in the flash.display package was compiled, the compiler looked for the classes in the following directory structure:&lt;br&gt;flash/&lt;br&gt;   display/&lt;br&gt;      MovieClip.as&lt;br&gt;      Sprite.as&lt;br&gt;      ...&lt;br&gt;&lt;br&gt;Yes, packages are more fully explained further on. They have to be mentioned here since the package statement is required to get a class to work.</description>
		<dc:creator>Joe ... Ward</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2008-08-08T10:40:34</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000033.html#86308">
		<title>flash/9.0/main/00000033.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000033.html#86308</link>
		<description>Okay, you lost me. The whole thing seems very buried to me and I need some help to climb out.&lt;br /&gt;&lt;br /&gt;Why do you need the &quot;Package&quot; statement? What's so special about what it does?&lt;br /&gt;&lt;br /&gt;In a single Package{} there should be only one class defined?&lt;br /&gt;&lt;br /&gt;Can there be multiple Package{}'s in a single .as file?&lt;br /&gt;&lt;br /&gt;Is there a naming restriction on the Package Name, the class name, the file name - is there a relationship between them?&lt;br /&gt;&lt;br /&gt;This question comes from previously on page 28 where you stated &lt;br /&gt;&lt;br /&gt;&quot;Use the import statement to specify the full name of the class, so the ActionScript compiler knows where to find it. For example, if you want to use the MovieClip class in ActionScript, you first need to import that class using its full name, including package and class:&lt;br /&gt;&lt;br /&gt;import flash.display.MovieClip;&lt;br /&gt;&lt;br /&gt;Alternatively, you can import the package that contains the MovieClip class, which is equivalent to writing separate import statements for each class in the package:&lt;br /&gt;&lt;br /&gt;import flash.display.*;&quot;&lt;br /&gt;&lt;br /&gt;I'm assuming this all ties together, but I'm confused about how. &lt;br /&gt;&lt;br /&gt;BTW - If the answer is &quot;please see page 41&quot; which I have not done yet, then let me propose that this section be enhanced, eliminated, or worst case include a forward reference, because too many questions/answers are being forward referred.&lt;br /&gt;&lt;br /&gt;All was said with a smile on my face and a song in my heart.</description>
		<dc:creator>Todays Past</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-07-31T15:11:43</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000033.html#77698">
		<title>flash/9.0/main/00000033.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000033.html#77698</link>
		<description>I think you need to add &quot;this.&quot; in your eventlistener to make it work.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-12-01T13:42:54</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000033.html#67693">
		<title>flash/9.0/main/00000033.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000033.html#67693</link>
		<description>Having issues with calling private methods from event listerners inside custom classes. Is there something I am missing or any documentation on this?&lt;br /&gt;&lt;br /&gt;ex. &lt;br /&gt;&lt;br /&gt;package {&lt;br /&gt;  // imports&lt;br /&gt;  class MyExample extends Sprite {&lt;br /&gt;    // propreties and constructor....&lt;br /&gt;    xmlLoader.addEventListener(Event.COMPLETE, myXMLHandler)&lt;br /&gt;&lt;br /&gt;    private function myXMLHandler(evt:Event):void{&lt;br /&gt;       // dostuff to XML doc and call other function....&lt;br /&gt;      myOtherFunction()&lt;br /&gt;    }&lt;br /&gt;    private function myOtherFunction():void{&lt;br /&gt;       // do something with some propreties&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;results in : 1009 error.&lt;br /&gt;&lt;br /&gt;thanks</description>
		<dc:creator>LPCpatrick</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-05-31T13:10:38</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000033.html#65751">
		<title>flash/9.0/main/00000033.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000033.html#65751</link>
		<description>Only one class per package, but you can add classes within the same file outside the package declaration. For more details see this section:&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-04-23T14:39:21</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000033.html#65693">
		<title>flash/9.0/main/00000033.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000033.html#65693</link>
		<description>What is the relationships between:&lt;br /&gt;.as files&lt;br /&gt;packages&lt;br /&gt;classes&lt;br /&gt;&lt;br /&gt;Can there be more than one class in a package?</description>
		<dc:creator>philggg</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-04-22T14:09:36</dc:date>
	</item>
	</rdf:RDF>

