if you are editing AS files on a file server, this is more probably due to the Flash timestamp issue. You can only really fix this by copying class files to your local machine and working on them from there.

- Nils.


Andreas Rønning wrote:

two classes. First lines of the problem class:

import flash.geom.*;
import as.maps.model.GroupReference;
class as.maps.model.Topic{
...
}

first lines of the GroupReference class

import as.memomaps.model.Topic;
class as.memomaps.model.GroupReference{
...
}


Topic.as: Line 3: The name of this class, 'as.memomaps.model.Topic', conflicts with the name of another class that was loaded, 'as.memomaps.model.Topic'.
    class as.memomaps.model.Topic{

This makes sense. Topic imports groupreference which imports topic. Bad Andreas.

So how to work around this? I make a completely empty class called DataSource, and have Topic extend that. Then in GroupReference, i import as.memomaps.model.DataSource instead, and have whatever variables were expecting a Topic datatype to expect a DataSource type.
Whammy. no more errors.

The thing is, it's hard to simplify the Topic class down further: it's got a very specialized purpose. So is my method acceptable? To me it just looks terribly dirty.

Any suggestions as to how i can solve this kind of cross-import issue in a more elegant manner?

- Andreas
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--


-----------------------------------------------------------------------
Nils Millahn
Internet Solutions - Design and Development - Flash Specialist

T: +44 (0) 7909 528 617
E: [EMAIL PROTECTED]
W: www.hub124.co.uk

=======================================================================
Notice of Confidentiality.

This transmission is intended for the named recipient only. It contains 
information which may be confidential and which may also be privileged. Unless 
you are the named addressee (or authorised to receive it for the addressee) you 
may not copy or use it, or disclose it to anyone else.

It is the responsibility of the recipient to ensure that the forwarding, 
opening or use of the e-mail (and any attachment) will not adversely
affect their system or data. Please carry out appropriate virus checks.
=======================================================================


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to