[flexcoders] Re: A file found in a source-path must have the same package structure

2007-09-19 Thread flashcrow2000
When i usually get this error, I delete the package name and I hit
Ctrl+Space, and let Flex autocomplete with its correct value. It might
be a problem with the Folder name. I presume you have a folder list of
something like com/classes/Events (if no, you might consider using one)

--- In flexcoders@yahoogroups.com, droponrcll [EMAIL PROTECTED]
wrote:

 Hi, all;
 
 I'm working through the tutorial in the Flex Builder 2 Training from 
 the Source book, using Flex Builder 3 beta.  I accidentally called my 
 events folder Events, and now when I renamed it I get A file found 
 in a source-path must have the same package structure 'Events', as the 
 definition's package, 'events'.  I have changed the package name to 
 events from Events, and I've even tried deleting the file and 
 recreating it from scratch, but I still get the error.  I had similar 
 problems when I accidentally set the transparency of an AIR app without 
 turning off its SystemChrome.  No matter WHAT I did to that file, I 
 still got errors.  Unfortunately, I don't remember the fix to that.  If 
 anyone could give me a suggestion or two, I'd appreciate it.
 
 Thanks





[flexcoders] Re: A file found in a source-path must have the same package structure

2007-09-19 Thread droponrcll
--- In flexcoders@yahoogroups.com, flashcrow2000 [EMAIL PROTECTED] 
wrote:

 When i usually get this error, I delete the package name and I hit
 Ctrl+Space, and let Flex autocomplete with its correct value. It might
 be a problem with the Folder name. I presume you have a folder list of
 something like com/classes/Events (if no, you might consider using 
one)

I tried that after reading your suggestion and FB replaced the old name 
with..itself.  The error still exists on compile.  I'm following the 
folder structure suggested in the book, which is more natural than 
cramming everything into a com folder (and saves on the typing).  
Presumably any third party components would be designed to go into a 
com folder and so would not conflict with somethimg more utilitarian 
created outside of it.

Thanks;

Amy



[flexcoders] Re: A file found in a source-path must have the same package structure

2006-10-25 Thread Libby
Yeah, me too. I have confirmed (about 10 times) that everything has
been converted...




--
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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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/
 



[flexcoders] Re: A file found in a source-path must have the same package structure

2006-10-24 Thread erik_jen5en



I am using an application that I have developed using FlexBuilder and now I am trying to compile with the command line tools. The application contains multiple mxml files, some of which I have put into the package structure. The problem only seems to occur when I try to compile the mxml files within the package structure. I have tried seperating the as and mxml files but the problem persists.Is there some structure I should adopt for building projects?--- In flexcoders@yahoogroups.com, "Peter Farland" [EMAIL PROTECTED] wrote: Perhaps you have some test code or some sample class in the same directory as the main mxml file but didn't realize that the compiler would find it during compilation? This sample class may declare that it is supposed to be in the uk.co.vianet package but it is sitting in the root directory that houses the main .mxml file?   The MXML compiler relies on a naming convention to locate classes at compile time, which is roughly:   1. Only one public definition (class, interface, etc) should exist per file. 2. The file name should match the class name with a .as extension (or .mxml extension if implementation is in MXML) 3. The directory structure of the file should match the package structure.Instead of requiring you to setup a "project" and include each individual file that you want link into the SWF the mxmlc compiler searches out for classes based on this naming convention.   i.e. for the following ActionScript class used in an MXML application:   package com.mycompany { public class MyClass { public function MyClass() { } } }   ...it should be declared in the following directory structure using the correct filename:   /com/mycompany/MyClass.as   Also, this assumes that the /com directory resides in one of the specified source path directories for the compiler, which may either be the directory that houses the main .mxml file (i.e. the file starting with mx:Application) or one of potentially several source paths explicitly configured either on the command line or (preferably) in a corresponding flex-config.xml referenced by --load-config=/path/to/your/flex-config.xml   Note that if the class uses the empty package,   package { public class MyClass { public function MyClass() { } } }   Then it exists in the root of one of the source path directories.     From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of erik_jen5en Sent: Tuesday, October 24, 2006 4:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] A file found in a source-path must have the same package structureHi all,  I am attempting to get a build environment working with the command line tools.  So far I have an Ant build script that will build all mxml files in a directory but I keep getting the following error,   A file found in a source-path must have the same package structure '', as the definition's package, 'uk.co.vianet'.   Does anyone know what is causing this error, and how to solve it.  I don't seem to be able to find any info on it.  Thanks in advance,  Erik


__._,_.___





--
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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



RE: [flexcoders] Re: A file found in a source-path must have the same package structure

2006-10-24 Thread Peter Farland





Ah, I see.

So are you using a flex-config.xml file or just a complex 
series of command line arguments with the compiler? If so, any chance we could 
see those settings? It's likely that some source path root exists that is a 
parent of the nested mxml file you're trying to use as a starting point for 
compilation... and it's getting confused when resolving 
paths.

I've not tried this scenario personally, so I expect others 
on the list will have better advice with specific examples, but if it were me 
I'd be tracking down my source paths and just what exactly is in my compiler's 
scopeand trying to limit that...

Pete




From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
erik_jen5enSent: Tuesday, October 24, 2006 12:04 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Re: A file found in a 
source-path must have the same package structure


I am using an application that I have developed using 
FlexBuilder and now I am trying to compile with the command line tools. 
The application contains multiple mxml files, some of which I have put into the 
package structure. The problem only seems to occur when I try to 
compile the mxml files within the package structure. I have tried 
seperating the as and mxml files but the problem persists.Is there some 
structure I should adopt for building projects?--- In 
[EMAIL PROTECTED]ups.com, "Peter Farland" [EMAIL PROTECTED] 
wrote: Perhaps you have some test code or some sample class 
in the same directory as the main mxml file but didn't realize that the 
compiler would find it during compilation? This sample class may declare 
that it is supposed to be in the uk.co.vianet package but it is sitting 
in the root directory that houses the main .mxml! file?  
The MXML compiler relies on a naming convention to locate classes at 
compile time, which is roughly:  1. Only one public definition 
(class, interface, etc) should exist per file. 2. The file name 
should match the class name with a .as extension (or .mxml extension if 
implementation is in MXML) 3. The directory structure of the file should 
match the package structure.  Instead of requiring you 
to setup a "project" and include each individual file that you want link 
into the SWF the mxmlc compiler searches out for classes based on this 
naming convention.  i.e. for the following ActionScript class 
used in an MXML application:  package com.mycompany 
{ public class MyClass { public function 
MyClass() { } } }  ...it should 
be declare! d in the following directory structure using the corre! ct 
filen ame:  /com/mycompany/MyClass.as  
Also, this assumes that the /com directory resides in one of the 
specified source path directories for the compiler, which may either be 
the directory that houses the main .mxml file (i.e. the file starting 
with mx:Application) or one of potentially several source paths 
explicitly configured either on the command line or (preferably) in a 
corresponding flex-config.xml referenced by 
--load-config=/path/to/your/flex-config.xml  Note 
that if the class uses the empty package,  package 
{ public class MyClass { public function 
MyClass() { } } }  Then it 
exists in the root of one of the source path directories.  
   ! 
 From: [EMAIL PROTECTED]ups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of 
erik_jen5en Sent: Tuesday, October 24, 2006 4:59 AM To: 
[EMAIL PROTECTED]ups.com Subject: [flexcoders] A file found in a 
source-path must have the same package structure  
  Hi all,  I am attempting to get a build 
environment working with the command line tools. So far I have an Ant 
build script that will build all mxml files in a directory but I keep 
getting the following error,   A file found in a 
source-path must have the same package structure '', as the definition's 
package, 'uk.co.vianet'.   Does anyone know what is 
causing this error, and how to solve it. I don't seem to be able to find 
any info on it.  Thanks in advance,  
Erik
__._,_.___





--
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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe