flash on 2010-3-21

by pekeq
♥0 | Line 13 | Modified 2010-03-21 15:57:27 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.external.ExternalInterface;
    import flash.system.Security;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            trace(ExternalInterface.available);
            Security.allowDomain("*");
            Security.allowDomain("wonderfl.net");
            ExternalInterface.call("window.alert", "test");
        }
    }
}