flash on 2011-2-15
♥0 |
Line 18 |
Modified 2011-02-15 22:47:07 |
MIT License
archived:2017-03-20 13:36:19
ActionScript3 source code
/**
* Copyright 9re ( http://wonderfl.net/user/9re )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/mtSM
*/
package {
import flash.system.Security;
import flash.text.TextField;
import flash.external.ExternalInterface;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
var tf:TextField = new TextField;
addChild(tf);
tf.width = tf.height = 465;
Security.allowDomain('jsrun.it');
ExternalInterface.addCallback('log', function (...msg:Array):void {
tf.appendText((msg ? msg.join(' ') : '') + '\n');
});
ExternalInterface.call('swf_api.swf_ready');
}
}
}