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

2007-09-19 Thread Steve Hueners
Greets...I've seen that caused by the name of the class not matching the
name of the .as file.


On 9/18/07, 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] A file found in a source-path must have the same package structure

2007-09-18 Thread droponrcll
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] A file found in a source-path must have the same package structure

2006-10-25 Thread Libby
I am attempting to migrate a very big Flex 1.5 project and this is one
of the issues I am hitting. I have stripped out all of the files in
the package, and all of the code in the offending file, but still get
this message. I can only assume that I am not understanding what
package structure FlexBuilder is looking for. I am not using scripts
to compile, only FB. I looked in Flex_config.xml and there is no
reference to my files, just the lines below:

!-- list of path elements that form the roots of ActionScript class
hierarchies --
source-path
path-element./user_classes/path-element
/source-path

!-- list of SWC files or directories that contain SWC files --
library-path
path-element./user_classes/path-element
path-element./libs/path-element
path-element./locale/{locale}/path-element
/library-path

Do the packages need to be under the [source path] user_classes
folder? Mine are in their own package structure, in WebContent, beside
this [source path] user_classes entry.
So in FB my application looks like this:
FlexProject
- [source path] user_classes
--- add_your_as_and_swc_files_here
- folder1
- - folder2
- - - folder3
- - - - folder4
- - - - - folder5 [contains .as files]
- - - - - folder6 [contains .as files]
- - - - - folder7 [contains .as files]
- - - - - folder8 [contains .mxml files]
appName.mxml

Is there a tutorial somewhere that describes how to set up a
structured project using actionscript files, or could someone steer me
in the right direction here?

Thanks,
Libby






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



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

2006-10-25 Thread Owen van Dijk



Hi Libby,Although in a different context i ran into the same 'bug' today. I found out that when i called mxmlc from within Ant it had problems compiling my source-code. After a bit of Googling i learned that it requires a lowercase disk letter ( ie c:\Program Files instead of C:\Program Files ). Odd but true. I blogged about it here  
http://blog.owenvandijk.nl/2006/10/odd_bug_in_mxml.html. It may be helpfil in pinpointing the error :) Good luck--Owen van Dijk
On 10/25/06, Libby [EMAIL PROTECTED] wrote:













  



I am attempting to migrate a very big Flex 1.5 project and this is one
of the issues I am hitting. I have stripped out all of the files in
the package, and all of the code in the offending file, but still get
this message. I can only assume that I am not understanding what
package structure FlexBuilder is looking for. I am not using scripts
to compile, only FB. I looked in Flex_config.xml and there is no
reference to my files, just the lines below:

!-- list of path elements that form the roots of ActionScript class
hierarchies --
source-path
path-element./user_classes/path-element
/source-path

!-- list of SWC files or directories that contain SWC files --
library-path
path-element./user_classes/path-element
path-element./libs/path-element
path-element./locale/{locale}/path-element
/library-path

Do the packages need to be under the [source path] user_classes
folder? Mine are in their own package structure, in WebContent, beside
this [source path] user_classes entry.
So in FB my application looks like this:
FlexProject
- [source path] user_classes
--- add_your_as_and_swc_files_here
- folder1
- - folder2
- - - folder3
- - - - folder4
- - - - - folder5 [contains .as files]
- - - - - folder6 [contains .as files]
- - - - - folder7 [contains .as files]
- - - - - folder8 [contains .mxml files]
appName.mxml

Is there a tutorial somewhere that describes how to set up a
structured project using actionscript files, or could someone steer me
in the right direction here?

Thanks,
Libby


  













-- Owen van Dijk

__._,_.___





--
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] A file found in a source-path must have the same package structure

2006-10-25 Thread Hasan Otuome






I always took that to mean
that one of my files, myClass.as for example:

class org.thesourcecode.utils.myClass{
 public function myClass(){}
 }
}

wasn't converted to
the new structure:

package org.thesourcecode.utils {
 public class myClass{
 public function myClass(){}
 }
}

P E A C E

Hasan


Libby wrote:


  
  I am attempting to migrate a very big Flex 1.5 project and this is
one
of the issues I am hitting. I have stripped out all of the files in
the package, and all of the code in the offending file, but still get
this message. I can only assume that I am not understanding what
package structure FlexBuilder is looking for. I am not using scripts
to compile, only FB. I looked in Flex_config.xml and there is no
reference to my files, just the lines below:
  
!-- list of path elements that form the roots of ActionScript class
hierarchies --
source-path
path-element./user_classes/path-element
/source-path
  
!-- list of SWC files or directories that contain SWC files --
library-path
path-element./user_classes/path-element
path-element./libs/path-element
path-element./locale/{locale}/path-element
/library-path
  
Do the packages need to be under the "[source path] user_classes"
folder? Mine are in their own package structure, in WebContent, beside
this "[source path] user_classes" entry.
So in FB my application looks like this:
FlexProject
- [source path] user_classes
--- add_your_as_and_swc_files_here
- folder1
- - folder2
- - - folder3
- - - - folder4
- - - - - folder5 [contains .as files]
- - - - - folder6 [contains .as files]
- - - - - folder7 [contains .as files]
- - - - - folder8 [contains .mxml files]
appName.mxml
  
Is there a tutorial somewhere that describes how to set up a
structured project using actionscript files, or could someone steer me
in the right direction here?
  
Thanks,
Libby
  
  
  



__._,_.___





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

  




__,_._,___





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

2006-10-24 Thread erik_jen5en



Hi all,I am attempting to get a build environment working with the commandline tools. So far I have an Ant build script that will build allmxml 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] A file found in a source-path must have the same package structure

2006-10-24 Thread Peter Farland






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_jen5enSent: Tuesday, October 24, 2006 4:59 AMTo: 
flexcoders@yahoogroups.comSubject: [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 commandline tools. So far I have an Ant build script 
that will build allmxml 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 
   
 

  




__,_._,___