I encounter these types of errors daily, and clearing the ASOs does
not always work. Yes, Nimrod's link was correct, and was pointed out
before on this list.
My solution is to use a separate "Compiler" class. Full class code
listed below, along with usage comments (change to fit your class
package scheme as and if desired):
// -----------------------------
/**
* Compiler class
*
* This is a simple class to aid in compiling other self-referential
classes that stubbornly refuse to compile. This frequently occurs
when a class (A) refers to another class (B) which then refers back
to the first class (A), giving the following compile error: "The name
of this class, 'x', conflicts with the name of another class that was
loaded, 'x'". To address this issue, just change the import reference
in this class to refer to the problem class, and check syntax on this
class.
*
* The logic behind this fix is explained here: http://
ericlin2.tripod.com/as2/conflict.html
*
* @author Stephen Downs <[EMAIL PROTECTED]>
* @version 1.0
* @langversion ActionScript 2.0
* @playerversion Flash 8
*/
// Change this reference to target the stubborn class.
import com.plasticbrain.dir.MyStubbornClass;
//
class com.plasticbrain.tools.Compiler { }
// -----------------------------
On 2007-05-07, at 1:55 AM, Steven Sacks wrote:
The problem was that the class was conflicting with itself, not
another class.
X conflicts with the name of the same class as itself X.
Don't know what it was or how it was possible. Clearing the ASO on
both machines fixed it.
Nimrod Huberman wrote:
On pc, the "X conflicts with the name of another class X" appears
when you
declare and use variable of type A in class B and a variable of
type B in
class A. (To solve it you have add "import A;" before class B and
"import
B;" before class A, then to click check syntax button 2 or 3 time
until the
errors stopped appear.
Maybe it can give you a hint to your problem on the mac.
See details on : http://ericlin2.tripod.com/as2/conflict.html.
Nimrod
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Steven Sacks
Sent: Sunday, May 06, 2007 1:40 AM
To: [email protected]
Subject: [Flashcoders] Flash 8 OSX - Classpath woes
Calling all OSX Flash users:
Does the classpath
./classes
Not work on a mac? I'm getting tons of errors and warning when I
publish on a Mac. These files compile just fine on Windows.
Line 28: The name of this class,
'net.stevensacks.gaia.core.SiteModel', conflicts with the name of
another class that was loaded, 'net.stevensacks.gaia.core.SiteModel'.
class net.stevensacks.gaia.core.SiteModel
That class declaration is line 28, btw. How can a class conflict
with itself?
--
Steven Sacks
Flash Maestro
Los Angeles, CA
--
blog: http://www.stevensacks.net
_______________________________________________
[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