JavaScript呼び出したかった

by demouth
♥0 | Line 9 | Modified 2009-09-29 00:05:45 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.external.ExternalInterface;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            ExternalInterface.call("alert('JavaScriptだよ')");
        }
    }
}