隐藏功能/ Flash开发,闪光的语言(AS2 / 3),和Flash IDE的招数招数、闪光、语言、功能

2023-09-08 10:58:43 作者:Liao sister Obama

大家好,我是彻底惊讶的是没有闪光灯的隐藏功能的帖子又在隐藏功能系列的,我一直在跟踪一段时间了。

Guys, I am thoroughly surprised that there is no Flash Hidden Features post yet in the Hidden Features series that I've been tracking for a while now.

最近有 AS3 / Flex的之一,但它不是很活跃,我不完全的意思,当我说的Flash这里只是AS3。

There is a recent AS3/Flex one but it's not very active and I don't exactly mean just AS3 when I say Flash here.

隐藏功能系列是伟大的人谁是新的特定语言。它显示了绳索和一些有价值的技巧,在同一个地方。我认为这是一个绝妙的主意。即使专家有时会发现把戏他们从来没有听说过。

The Hidden Features series is great for people who are new to a certain language. It shows the ropes and certain valuable tricks, all in one place. I think it's a brilliant idea. Even experts sometimes find tricks they'd never heard about.

当我开始使用Flash,我吃了一惊由Flash IDE和闪存奇怪的概念,相对于其他编程语言。

When I started with Flash, I was taken aback by the Flash IDE and odd concepts of Flash, compared to other programming languages.

所以,这里有云:什么是闪存部分的隐藏功能作为一个的语言(AS2 / 3)和闪光IDE

So, here goes: what are some hidden features of Flash as a language (AS2/3) and the Flash IDE?

让乐趣开始。

推荐答案

[闪光IDE]

这是不是一个功能,它更是一种疑难杂症。当指定一个FLA文档类,编译器不继承的类,它的修改的吧。

This isn't a feature as much as it is a gotcha. When specifying a document class for an FLA, the compiler does not subclass that class, it modifies it.

这可能会导致问题,当你有几个主权财富基金具有相同的文档类,都被加载到另一个SWF(因为两个类具有相同的名称无法加载并排侧进同一个应用程序域)。这导致第一次被加载,并且第二个使用的第一个经过修改的类,产生奇怪的错误(你能想象)。

This can cause problems when you have several SWFs with the same document class, all being loaded into another SWF (since two classes with the same name cannot be loaded side-by-side into the same application domain). It results in the first being loaded and the second using the first's modified class, producing weird errors (as you can imagine).

的溶液可以是:

创建一个代理类的每个FLA的子类文档类 在加载每个SWF到一个新的子应用程序域
 
精彩推荐
图片推荐