开发者

The problem with alpha channel MovieClip (Actionscript3)

开发者 https://www.devze.com 2023-01-13 16:06 出处:网络
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));

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

精彩评论

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