<?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 - 00000061.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-26T08:21:31</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000061.html#80173" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/main/00000061.html#75393" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000061.html#80173">
		<title>flash/9.0/main/00000061.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000061.html#80173</link>
		<description>To answer the previous question, the following code works. It seems:&lt;br /&gt;1) classes cannot be defined within a frame,&lt;br /&gt;2) external .as files must define a class within a package.&lt;br /&gt;(lines with slashes are just used to delimit each piece)&lt;br /&gt;/////////////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;package&lt;br /&gt;{&lt;br /&gt;	import flash.display.MovieClip;&lt;br /&gt;	trace(&quot;inside package&quot;);&lt;br /&gt;	public class Example03 extends MovieClip&lt;br /&gt;	{&lt;br /&gt;		static var _message:String = &quot;Some Static Message&quot;;&lt;br /&gt;		public var _message:String = &quot;Some Non-Static Message&quot;;&lt;br /&gt;		public function Example03()&lt;br /&gt;		{&lt;br /&gt;			trace(&quot;Hello&quot;);&lt;br /&gt;			hola();&lt;br /&gt;			trace(&quot;_message:&quot;, this._message);&lt;br /&gt;			trace(&quot;_message:&quot;, Example03._message);&lt;br /&gt;		}&lt;br /&gt;	}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function hola()&lt;br /&gt;{&lt;br /&gt;	trace(&quot;hola&quot;);&lt;br /&gt;}&lt;br /&gt;//////////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;Output:&lt;br /&gt;//////////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;inside package&lt;br /&gt;Hello&lt;br /&gt;hola&lt;br /&gt;_message: Some Non-Static Message&lt;br /&gt;_message: Some Static Message&lt;br /&gt;////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;- Vinny</description>
		<dc:creator>vinnyguido</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-01-31T07:17:08</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/main/00000061.html#75393">
		<title>flash/9.0/main/00000061.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/main/00000061.html#75393</link>
		<description>I get the error message &quot;5006: An ActionScript file can not have more than one externally visible definition: mypackage.TestA, mypackage.hello&quot; when I try out the function hello()-example. Any ideas on what might be wrong in the example or in my setup?</description>
		<dc:creator>Sardok</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-10-22T07:31:48</dc:date>
	</item>
	</rdf:RDF>

