[Flashcoders] Q: organizing packages and classes

2007-08-15 Thread Geografiek
Hi list, I have al class named 'FormatDecimalen' in a file named 'FormatDecimalen.as' The class is wrapped in an unnamed package. All is well when i call the class from a .fla-file. The .fla is in another location on my HD and points to the class path

Re: [Flashcoders] Q: organizing packages and classes

2007-08-15 Thread Ian Thomas
Make the .fla classpath point to: 'myHD/myProjects' f you're using AS2, in your FormatDecimalen.as file change the line: class FormatDecimalen { to read: class nl.geografiek.utilities.FormatDecimalen { If you're using AS3, in your FormatDecimalen.as file change the line: package { to read:

Re: [Flashcoders] Q: organizing packages and classes

2007-08-15 Thread Geografiek
Hi Ian, Thanks for your quick response. This is AS3 actually. Class paths point to both the folder the class file is in and the 'parentfolder' of 'nl': 'myProjects' The package definition reads: 'package nl.geografiek.utilities {' (I get the same error when I change this to 'package utilities

Re: [Flashcoders] Q: organizing packages and classes

2007-08-15 Thread Ian Thomas
Hi Willem, Your class path shouldn't point to the folder that the class is in - only to the parent folder of 'nl'. HTH, Ian On 8/15/07, Geografiek [EMAIL PROTECTED] wrote: Hi Ian, Thanks for your quick response. This is AS3 actually. Class paths point to both the folder the class file

Re: [Flashcoders] Q: organizing packages and classes SOLVED

2007-08-15 Thread Geografiek
Blush, It appeared that somewhere on the way I changed a folder name higher up in the hierarchie without changing the class path. This kind of thing cost half a day of anger and frustration. Thanks for straightening things out Ian, Willem Op 15-aug-2007, om 16:13 heeft Ian Thomas het volgende