SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
745 B

/*
Copyright (c) 2004-2006, The Dojo Foundation
All Rights Reserved.
Licensed under the Academic Free License version 2.1 or above OR the
modified BSD license. For more information on Dojo licensing, see:
http://dojotoolkit.org/community/licensing.shtml
*/
import DojoExternalInterface;
class HelloWorld{
public function HelloWorld(){
DojoExternalInterface.initialize();
DojoExternalInterface.addCallback("sayHello", this, sayHello);
DojoExternalInterface.loaded();
}
public function sayHello(msg){
return "FLASH: Message received from JavaScript was: " + msg;
}
static function main(mc){
//getURL("javascript:dojo.debug('FLASH:main method of flash')");
_root.helloWorld = new HelloWorld();
}
}