Thanks Johannes!
On 2/13/06, Johannes Nel <[EMAIL PROTECTED]> wrote:
> your internal class must be outside the package, then it will work. a bit
> weird in my opinion since an internal class has not got a publicly visible
> accessor, but anyway
>
>
>
> On 2/13/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:
> >
> > 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
> >
> >
> >
> >
> >
> >
> >
>
>
>
> --
> j:pn
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
> SPONSORED LINKS
> Web site design development
> Computer software development
> Software design and development
> Macromedia flex
> Software development best practice
>
> ________________________________
YAHOO! GROUPS LINKS
>
>
> Visit your group "flexcoders" on the web.
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> ________________________________
--
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/