开发者

The problem with alpha channel MovieClip (Actionscript3)

Here is my code:

var menu = new Menu ();
menu.x = 0;
menu.y = 0;
addChild (menu);
menu.alpha = 0;
TweenLite.to (menu, 10, (alpha: 1));

This works, but transparency varies for each element MovieClip separately, but I would like that would have changed the whole MovieClip transparency as a single image开发者_如何学C.

Menu(); is generated from XML.


Here's one option: create a Sprite or MovieClip object, and add all your menu objects as its children (and not as children of the parent class). Then, call TweenLite on your grouped object. (Note: I haven't used TweenLite specifically, but I have used this technique with other tweening libraries)


I helped the following:

menu.blendMode = "layer"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜