你如何使Flash不呈现在舞台上的对象?呈现在、对象、舞台上、Flash

2023-09-08 15:37:45 作者:金木小天使?

此讨论开始在这里但我认为这将是很好有一个明确的答案......

This discussion started over here but I thought it would be nice to have a definitive answer...

因此​​,让我们说你有影片剪辑的舞台(或UIComponent,用于Flex的受众)的 - 你有什么做的,不是让这个用户不能看清物体,但也使得AVM2没有按'吨甚至因素是渲染阶段,为用户当?

So let's say you have MovieClip on the Stage (or a UIComponent for the Flex audience) - what do you have to do to not make it so that the user can't see the object but also so that the AVM2 doesn't even factor it in when rendering the stage for the user?

我一直以为答案是集的visible = false 但有一种说法,在那里,该对象必须放置在舞台上(的边界之外像 X = 2000 这似乎是一个黑客IMO)。有谁知道真正的答案?

I always thought the answer was to set visible = false but there is an argument out there that the object has to placed outside the boundaries of the Stage (like x = 2000 which seems like a hack IMO). Does anyone know the real answer?

编辑:我想需要有闪光灯不会使该项目将帮助高性能

I imagine the need for having flash not render the item would be to help performance.

推荐答案

该黑客是为Flash 8(ActionScript 2的)或以下。随着升级为ActionScript 3和Flex 2/3设置Visible属性就够了。

The hack is for Flash 8 (Actionscript 2) or below. With the upgrades to Actionscript 3 and Flex 2/3 setting the visible property is enough.