Skip to content

Instantly share code, notes, and snippets.

@yoko
Created December 11, 2009 11:42
Show Gist options
  • Save yoko/254153 to your computer and use it in GitHub Desktop.
Save yoko/254153 to your computer and use it in GitHub Desktop.
package {
import flash.display.Sprite;
import flash.external.ExternalInterface;
[SWF(frameRate=1, background=0x000000)]
public class Hello extends Sprite {
public function Hello() {
ExternalInterface.marshallExceptions = true;
ExternalInterface.addCallback('hello', function():String {
return 'hello!';
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment