I just installed FB2 Beta 1 and created a project based on a project I
built using Alpha 1 and I get this error:
"A file found in an actionscript-classpath can not have more than one
externally visible definition. dataHolderClass;Main"
I understood that multiple classes could be written in one package
file. Why would I be getting this error?
Here's the code that's in my main (and only) AS file, called Main.as:
[code]
package
{
import flash.display.MovieClip;
internal class dataHolderClass extends Object
{
static var items:Object = new Object();
}
public class Main extends MovieClip
{
public static var dataHolder:Object = dataHolderClass.items;
public function Main()
{
dataHolder.myVar = 'blah';
trace(dataHolder.myVar);
}
}
}
[/code]
What obvious error have I missed?
Derek Vadneau
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/