Peter M Howard ::

The name of this class, ‘abc’, conflicts with the name of another class that was loaded, ‘abc’

28June2004 [webprog]
[tweet this]

Macromedia Flash forums:

Wow, I searched all over the web and these forums, and finally, a “solution”

I’m using Forms, try to assign a class: flashcom.logon_Form and kept getting error:

Line 23: The name of this class, ‘flashcom.logon_Form’, conflicts with the name of another class that was loaded, ‘flashcom.logon_Form’.
class flashcom.logon_Form extends Form {

Which is complete nonsense. But all I had to do to fix it was to re-save the .fla file - when the .as is more recent and you try to add a class Flash runs into strange compile errors. (the .as was modified 8:53pm, .fla was 8:30pm, so I changed it and saved again so it was modified 8:56 and hey presto, everything works…)

This is a ridiculous bug though and it would be really useful if Macromedia could get it fixed and/or better documented!!


Oh and I found that it helps to keep one window open at C:\Documents and Settings\{username}\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Classes\aso (or similar). When you add a class or run the file from inside Flash it compiles a .aso file for the class (it may be inside a subfolder to match your class name - eg flashcom/classname.aso for flashcom.classname)

Sometimes however, Flash doesn’t recompile, it just uses the existing .aso file, so when things go weird I delete the .aso before previewing… (and leave one window open to delete it again and again, as I find myself making little syntax changes in the class and them not coming through)

« 'at no time did australian troops...' :: Artorius Rex »

Related [webprog]