Flash CS4拒绝放手

孤街醉人 提交于 2020-08-09 02:35:41

问题:

I have a Flash project, and it has many source files. 我有一个Flash项目,它有很多源文件。 I have a fairly heavily-used class, call it Jenine. 我有一个相当频繁使用的课程,称之为Jenine。 I recently (and, perhaps, callously) relocated Jenine from one namespace to another. 我最近(也许,无情地)将Jenine从一个名称空间重新定位到另一个名称空间。 I thought we were ready - I thought it was time. 我以为我们已经准备好了 - 我以为是时候了。 The new Jenine was better in every way - she had lost some code bloat, she had decoupled herself from a few vestigial class relationships, and she had finally come home to the namespace that she had always secretly known in her heart was the one she truly belonged to. 新Jenine在各方面都做得更好 - 她已经失去了一些代码膨胀,她已经脱离了一些残余的阶级关系,她终于回到了她心中一直秘密知道的命名空间,这是她真实的那个曾经属于。 She was among her own kind. 她是她自己的一员。

Unfortunately, Flash would have none of that. 不幸的是,Flash没有这个。 Perhaps it had formed an attachment. 也许它已经形成了一种依恋。 Perhaps it didn't want Jenine to be decoupled. 也许它不希望 Jenine脱钩。 Either way, it clung to the old, perfect version of Jenine in its memory. 无论哪种方式,它都牢牢抓住Jenine的旧版,完美版。 It refused to move on. 它拒绝继续前进。 It ignored her (function) calls. 它忽略了她的(函数)调用。 It tried to forget her new, public interfaces. 它试图忘记她的新的公共界面。 Instead, every instance of Jenine that it constructed was always a copy of the old version, down to its classpath: 相反,它构建的每个Jenine实例始终是旧版本的副本,直到其类路径:

var jenineInstance:Jenine = new Jenine();
trace( getQualifiedClassName(jenineInstance));
// Should print: com.newnamespace.subspace::Jenine
// Prints: com.oldnamespace.subspace::Jenine
// Ah, young love!

We fought. 我们打了。 I'm not proud of some of the things I said or did. 我对自己所说或做过的一些事情并不感到骄傲。 In the end, in a towering fit of rage, I deleted all references of Jenine completely. 最后,在愤怒的高潮中,我完全删除了Jenine的所有引用。 She was utterly, completely erased from the system. 她完全被系统彻底清除了。 My cursor fell upon the "Empty Trash" menu option like the cold lid of a casket. 我的光标落在“清空垃圾”菜单选项上,就像棺材的冷盖一样。

I don't think Flash ever recovered. 我认为Flash无法恢复。 To this day it still clings to the memory of Jenine. 直到今天,它仍然依附于珍妮的记忆。 Her old, imperfect definitions still float through my project like abandoned ghosts. 她的旧的,不完美的定义仍然像我被遗弃的幽灵一样漂浮在我的项目中。 Whenever I force Flash to compile, it still lovingly inserts her into my movie, nestling her definition in amongst the other, living classes, like a small shrine. 每当我强迫Flash编译时,它仍然会将她的爱情插入到我的电影中,将她的定义融入其他生活课程中,就像一个小神社。 I wonder if they can see her. 我想知道他们是否能看到她。

Flash and I don't really talk anymore. Flash和我不再谈论了。 I write my code, it compiles it. 我写了我的代码,它编译它。 There's a new girl in town named Summer who looks almost identical to Jenine, as if someone had just copied her source-code wholesale into a new class, but Flash hasn't shown any interest. 在镇上有一个名叫Summer的新女孩看起来几乎与Jenine完全相同,好像有人刚刚将她的源代码批发复制到一个新的类中,但Flash并没有表现出任何兴趣。 Most days it just mopes around and writes bad poetry in my comments when it thinks I'm not looking. 大多数时候,当它认为我不看时,它只是在我的评论中徘徊并写下糟糕的诗歌。

I hope no one else has had a similar experience, that this is just a singular, painful ripple in the horrifying dark lagoon that is the Flash code-base. 我希望没有其他人有类似的经历,这只是一个奇怪的,痛苦的波纹在可怕的黑暗泻湖,即Flash代码库。 Does anyone have any idea how to erase whatever cache the compiler is using? 有没有人知道如何擦除编译器正在使用的缓存?


解决方案:

参考一: https://stackoom.com/question/9CkL/Flash-CS-拒绝放手
参考二: https://oldbug.net/q/9CkL/Flash-CS4-refuses-to-let-go
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!