The weird thing is: In the flash 9 as3 preview IDE, I tried it and it does
work!
I imported the Test class, set c:\classes\ as the root within the IDE, and
the constructor
simply traces 'jay'. So I guess the problem is the <source-path> setting in
the XML.. Which
is:
<source-path >
<path-element>c:/classes/</path-element>
</source-path>
But I can't see what's wrong with it....
-Meinte
On 7/15/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:
I tried it just yet, doesn't work either :(.
On 7/15/06, Bernard Visscher <[EMAIL PROTECTED]> wrote:
>
> Try this:
> <source-path>
> <path-element>c:/classes</path-element>
> </source-path>
>
> Note the / instead of \ for the path.
>
> Hope this will help.
>
> Bernard
>
> > -----Oorspronkelijk bericht-----
> > Van: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Namens
> > Meinte van't Kruis
> > Verzonden: zaterdag 15 juli 2006 15:11
> > Aan: Flashcoders mailing list
> > Onderwerp: Re: [Flashcoders] as3: weird package problem
> >
> > Thanks for your reply,
> >
> > I just tried out what you suggested, but didn't make any difference :(
>
> >
> > It works when I leave the package name empty (this seems obvious).
> > But that wouldnt be a solution, because a class sitting
> > somewhere else wouldn't be able to access it.
> >
> > On 7/15/06, John Grden < [EMAIL PROTECTED]> wrote:
> > >
> > > it's a stab in the dark, but have you tried renaming your class to
> > > somehting different than the folder/package it sits in?
> > >
> > > package nl.test{
> > > public class MyClassTest{
> > > public function MyClassTest(){
> > > }
> > > }
> > > }
> > >
> > >
> > >
> > > On 7/15/06, Meinte van't Kruis <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hellow,
> > > >
> > > > I'm currently exploring as3 with the free compiler and
> > keep running
> > > > against a seemingly strange problem.
> > > > Here's my class:
> > > >
> > > > package nl.test{
> > > > public class Test{
> > > > public function Test(){
> > > > }
> > > > }
> > > > }
> > > >
> > > > It's sitting in the directory c:\classes\nl\test. That
> > directory is
> > > added
> > > > in
> > > > the flex configuration file:
> > > >
> > > > <source-path>
> > > > <path-element>c:\classes\</path-element>
> > > > </source-path>
> > > >
> > > > I get the following error when I try to compile the class:
> > > >
> > > > C:\classes\nl\test\Test.as: Error: A file found in a source-path
> > > > must
> > > have
> > > > the s
> > > > ame package structure '', as the definition's package, 'nl.test'.
> > > >
> > > > This error also shows when I don't add the c:\classes to the
> > > > source-path in the flex-config.xml.
> > > >
> > > > I'm really stuck, I can't figure out what I'm doing
> > wrong, probably
> > > > overlooking something..
> > > > Does anyone know?
> > > >
> > > > regards,
> > > > Meinte
> > > > _______________________________________________
> > > > [email protected]
> > > > To change your subscription options or search the archive:
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > > > Brought to you by Fig Leaf Software
> > > > Premier Authorized Adobe Consulting and Training
> > > > http://www.figleaf.com http://training.figleaf.com
> > > >
> > >
> > >
> > >
> > > --
> > > John Grden
> > > _______________________________________________
> > > [email protected]
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com http://training.figleaf.com
> > >
> > _______________________________________________
> > [email protected]
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com http://training.figleaf.com
> >
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com