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

test ?: operator

Get Adobe Flash player
by knd 20 Feb 2010
    Embed
package {
    import flash.display.Sprite;
    import flash.text.TextField;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            graphics.beginFill(0);
            true? graphics.drawCircle(30, 30, 25): public;
            false? public: graphics.drawCircle(100, 30, 25);
            true? graphics.drawCircle(30, 100, 25): void;
            //false? void: graphics.drawCircle(30, 100, 25);
            //↑おこられた
            
            //true? null: private;
            //true? null: package;
            //true? null: extends;
            //true? null: import;
            //true? null: function;
            //true? null: implements;
            //↑全部おこられた

        }
    }
}