e44a7e37b6
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f
36 lines
No EOL
858 B
ActionScript
36 lines
No EOL
858 B
ActionScript
import DojoExternalInterface;
|
|
import ExpressInstall;
|
|
|
|
class TestFlash{
|
|
private var message:String;
|
|
|
|
public function TestFlash(){
|
|
}
|
|
|
|
public static function main(){
|
|
//getURL("javascript:alert('main')");
|
|
trace("main");
|
|
DojoExternalInterface.initialize();
|
|
|
|
var test = new TestFlash();
|
|
DojoExternalInterface.addCallback("setMessage", test, test.setMessage);
|
|
DojoExternalInterface.addCallback("getMessage", test, test.getMessage);
|
|
DojoExternalInterface.addCallback("multipleValues",
|
|
test, test.multipleValues);
|
|
|
|
DojoExternalInterface.done();
|
|
}
|
|
|
|
public function setMessage(message:String):Void{
|
|
this.message = message;
|
|
}
|
|
|
|
public function getMessage():String{
|
|
return this.message;
|
|
}
|
|
|
|
public function multipleValues(key:String, value:String,
|
|
namespace:String):String{
|
|
return namespace + key + value;
|
|
}
|
|
} |