闪存AS3,导入旧版本类 [英] Flash AS3, import old version of class

查看:158
本文介绍了闪存AS3,导入旧版本类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写的。至于文件的类在里面,并使用进口,使之在我的.fla的code可用。

I am writing an .as file with a class in it, and using import to make it available in my .fla's code.

起初它工作得很好。一个在我的一些的.fla文件,它仍然能正常工作。

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.

我双重检查的类没有被定义在FLA文件的任何地方。

I've double checked that the class is not defined anywhere in the .fla file.

推荐答案

大错我的一部分。我以为我已经移师我的文件,但我只是复制。

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.

这篇关于闪存AS3,导入旧版本类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆