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

class check test

Get Adobe Flash player
by whirlpower 11 Nov 2010
    Embed
/**
 * Copyright whirlpower ( http://wonderfl.net/user/whirlpower )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/p8Hb
 */

package
{
    import flash.display.Sprite;
    import flash.display.Shape;
    import com.bit101.components.Label;
    
    public class FlashTest extends Sprite
    {
        public function FlashTest()
        {
            var l : Label = new Label( this, 100, 100, "test" );
            var s : Sprite = new Sprite;
            
            l.text = s is Shape? "true":"false";
            
            trace( "test" );
        }
    }
}