alpha = 2
上の円は、
親(赤色の円)が alpha = 0.5 で、
子(青色の円)が alpha = 1 の場合。
下の円は、
親(赤色の円)が alpha = 0.5 で、
子(青色の円)が alpha = 2 の場合。
/**
* Copyright paq ( http://wonderfl.net/user/paq )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/k3CZ
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
(addChild((function(s:Sprite):Sprite{s.x=235;s.y=120;s.alpha=0.5;with(s.graphics){beginFill(0xFF0000);drawCircle(0, 0, 100)}return s})(new Sprite)) as Sprite)
.addChild((function(s:Sprite):Sprite{with(s.graphics){beginFill(0x0000FF);drawCircle(0, 0, 50)}return s})(new Sprite));
(addChild((function(s:Sprite):Sprite{s.x=235;s.y=340;s.alpha=0.5;with(s.graphics){beginFill(0xFF0000);drawCircle(0, 0, 100)}return s})(new Sprite)) as Sprite)
.addChild((function(s:Sprite):Sprite{s.alpha=2;with(s.graphics){beginFill(0x0000FF);drawCircle(0, 0, 50)}return s})(new Sprite));
}
}
}