I tried my very best to take the good advices at hand, and gave the ‘putting my classes on a network drive so everyone can use them’ thing another try. But no matter what i do, how many new commands i download and install, how many internal clocks i alter… i stil can’t get it to work properly.
I have my flash setup with the following classpath added:
W:\Libraries\ActionScript 2.0
Where W:\ Is a network drive.
Furthermore i have a completly empty .fla file, except for the following code on frame 1:
import nl.flashZone.*; var temp = new nl.flashZone.CMain();
And last but not least, a CMain.as located in W:\Libraries\ActionScript 2.0\nl\flashZone\, containing this code:
class nl.flashZone.CMain {
public function CMain() {
trace("TEST")
}
}
When i compile at this time, everything works fine. Just like it should. The problems arise, when i alter (for kicks, abre with me) the code of Main.as into:
class CMain {
public function CMain() {
trace("TEST")
}
}
Now this should provide a compile time error by flash, and it does:
**Error** W:\Libraries\ActionScript 2.0\nl\flashZone\CMain.as: Line 7: The class being compiled, 'CMain', does not match the class that was imported, 'nl.flashZone.CMain'.
class CMain {
But when I alter the code of CMain.as back to it’s previous state, it still is giving me a compile time error. Different, but still there:
**Error** W:\Libraries\ActionScript 2.0\nl\flashZone\CMain.as: Line 7: The name of this class, 'nl.flashZone.CMain', conflicts with the name of another class that was loaded, 'nl.flashZone.CMain'.
class nl.flashZone.CMain {
So i figured ‘That don’t impress me much…’. It did before, but now i can give the new ASO clearing commands a try. But no matter how many times i use the command, the last error still keeps popping up.
I had a couple of lucky shots when fudling with internal clocks of server and developers pc, when suddenly the class would compile, but nothing i can guarantee will work. More luck then wissdom in that case.
Now i’m not writing this to put down on anybody, just to inform others like me who are experiencing the same problems that it might just not be a real error which they should fix by altering the code, but by changing the location of the class files.
Btw, if anyone sees me doing something stupid in above code, please let me know. Always open minded and willing to acknowledge my own mistakes :)
Leave a reply
You must be logged in to post a comment.