Flash 开发、Flash 语言 (AS2/3) 和 Flash IDE 的隐藏特性/技巧 [英] Hidden features/tricks of Flash development, Flash language (AS2/3), and Flash IDE

查看:29
本文介绍了Flash 开发、Flash 语言 (AS2/3) 和 Flash IDE 的隐藏特性/技巧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,我非常惊讶 隐藏功能系列 我去过现在跟踪一段时间.

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 和 Flash 的奇怪概念让我大吃一惊.

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

那么,这里是:Flash 作为一种语言 (AS2/3)Flash 有哪些隐藏功能IDE?

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

让乐趣开始吧.

推荐答案

[Flash IDE]

[Flash 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,所有这些 SWF 都被加载到另一个 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 加载到新的子应用程序域中

这篇关于Flash 开发、Flash 语言 (AS2/3) 和 Flash IDE 的隐藏特性/技巧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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