Flash AS3, import old version of class

风格不统一 提交于 2020-01-25 20:28:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!