ViewSource

by paq
♥11 | Line 13 | Modified 2011-01-08 10:33:36 | MIT License
play

ActionScript3 source code

/**
 * Copyright paq ( http://wonderfl.net/user/paq )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/oC7r
 */

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    import com.adobe.viewsource.ViewSource;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // ViewSource.addMenuItem(this, "http://wonderfl.net/c/<codeid>/read");
            ViewSource.addMenuItem(this, "http://wonderfl.net/c/oC7r/read");
            
            var txt:TextField = new TextField();
            txt.appendText("right click!");
            addChild(txt);
        }
    }
}