开发者

How to blur stage

开发者 https://www.devze.com 2023-03-09 21:47 出处:网络
Is there any开发者_如何学Go way to blur all stage. This code is not working. stage.filters = [(new BlurFilter())];

Is there any开发者_如何学Go way to blur all stage. This code is not working.

stage.filters = [(new BlurFilter())];


The stage object does not support the use of filters. Wrap everything in a main container instead and set the blur on it.

Ref >> http://wadhwakanu.wordpress.com/2011/01/16/error-2071-the-stage-class-does-not-implement-this-property-or-method/


Let have stage only a single child and add all other children to this one. Also apply the filter to this one. Commonly you have set a Document Class or Main Class (AS3 only projects) which extends from Sprite or MovieClip. Apply the filter to the instance of this class which is automatically created.

0

精彩评论

暂无评论...
验证码 换一张
取 消