In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

alpha = 2

上の円は、
親(赤色の円)が alpha = 0.5 で、
子(青色の円)が alpha = 1 の場合。

下の円は、
親(赤色の円)が alpha = 0.5 で、
子(青色の円)が alpha = 2 の場合。
Get Adobe Flash player
by paq 02 Feb 2011
    Embed
/**
 * 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));
        }
    }
}