/** * mixiアプリテスト */ package{ import flash.display.*; import flash.text.*; import flash.system.*; import flash.external.ExternalInterface; [SWF(backgroundColor=0xFFFFFF,width=200,height=160)] public class Hello extends Sprite{ private var tf:TextField = new TextField(); public function Hello():void { Security.allowDomain("*"); addChild(tf); tf.text= "Hello,world!"; ExternalInterface.addCallback("test",test); } public function test(s:String):String { tf.appendText( " : "+s ); return "受け取った文字列:"+s; } } }