问题
I am writing an .as file with a class in it, and using import
to make it available in my .fla's code.
At first it worked fine. An in some of my .fla files, it still works fine.
But, one of my files is using an old version of the class, and ignoring any changes I make.
I've tried commenting out the import
of the class, to see if I'd get a compiler error, but it doesn't give me an error. It still instantiates the old version of the class.
I've tried Clear Publish Cache
, but it again still uses the old version of the class.
I've double checked that the class is not defined anywhere in the .fla file.
回答1:
Blunder on my part. I thought I had "moved" my files, but I had just "copied".
Maybe (best case pride-wise) I used the recent files list, and picked the wrong one.
I like some of the answers I got in the comments though. Also, I can't find a delete button.
来源:https://stackoverflow.com/questions/31644814/flash-as3-import-old-version-of-class