Location: A review of cardiac cellular electrophysiology models @ f6a8f9030738 / dojo-presentation / js / dojo / dojox / flash / tests / TestFlash.as

Author:
David Nickerson <nickerso@users.sourceforge.net>
Date:
2009-07-16 02:00:03+12:00
Desc:
the starting point for the HH tutorial example
Permanent Source URI:
https://models.fieldml.org/workspace/a1/rawfile/f6a8f90307388eb4b040ee3566b84d88b59247f7/dojo-presentation/js/dojo/dojox/flash/tests/TestFlash.as

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;
	}
}