PDA

View Full Version : Flash cs3 compile error 1017--package namespace?


coreysj
09-27-2007, 05:44 PM
Word to the Flash Genies-- Heres my wish that hopefully someone else is struggling with an enormously mind-boggling bug in flash cs3-- when I try to create a public class that extends any of the native flash display objects, and I put this in its own package, even after specifically importing the specific class OR the package wildcard .* the fla that I'm compiling returns error 1017-- Base Class Definition not found. The fla is set to the correct classpath. This situation slipped from 'minor annoyance' to 'mind boggling' after I moved the directory to a different pc with cs3, reset the local classpath and it compiled perfectly. So then I moved the directory to a mac, running flex builder, and made a tester file to use the class, which compiled perfectly. For some wierd reason, this particular computer cannot compile, even though nothing had changed in the actual class. Maybe it is important to note that this machine is running Vista (and perhaps should not be!)? Maybe it is important to note that the package is part of an SVN directory? Maybe it is important to note that after re-saving the same class file, changing only the class name (from BitmapSprite to BSprite) enabled it to compile on this machine, even though both the mac and other pc (running windows XP) could compile the class as BitmapSprite. I'm not sure if the name change or just re-saving allowed it to compile--but maybe it's significant that the new named instance was not committed to svn. I'm posting this here with the feverish hope that I'm not the only one encountering this issue and someone may know what is happening! exhaustive searches point to no clues, so any pointers would be welcomed with enormous appreciation and eternal gratefulness.

moment77
01-29-2010, 04:39 AM
Ever found a solution to this problem?
Mine is doing the same thing, trying to extend flash.filters.ShaderFilter

In FlashDevelop I can see the class is found before compiling, but still getting the error.

moment77
01-29-2010, 05:50 AM
I found my problem. I was compiling with the debug player downloaded from adobe.
When compiling with the regular viewer, it worked smoothly.

It's a pity, that it's not working, but still a solution

baumer
02-03-2010, 12:50 PM
Just wanted to share my experience for those looking. I hadn't changed anything in any of my .fla or .as files - just randomly started getting the 1017 error even though I'd never gotten it before. The only thing I recalled doing was making a copy of one of my custom base classes (at the OS level) to a location outside the classpath.

I was able to fix this by going into the publish settings, deleting my classpath and then setting the classpath to exactly what it had been before. That fixed it.