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

flash on 2012-5-17

Get Adobe Flash player
by tepe 17 May 2012
/**
 * Copyright tepe ( http://wonderfl.net/user/tepe )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/jgEr
 */

package {
    import flash.display.Sprite;
    import flash.events.*;
    import flash.net.*;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            //http://ejje.weblio.jp/content/about
            graphics.beginFill(0x0000ff);
            graphics.drawRect(100,100,100,100);
            graphics.endFill();
            stage.addEventListener(MouseEvent.CLICK,onClick);
            
        }
        // 画面クリックをするとonClickが動作するイベント
    private function onClick ( event:MouseEvent ):void {
        // URLRequestを設定
        var url:URLRequest = new URLRequest( "http://ejje.weblio.jp/content/about" );
        // 実際にページに飛ぶ
        navigateToURL( url );
    }
    }
}