Skip to content

Instantly share code, notes, and snippets.

@destroytoday
Created August 24, 2010 06:47
Show Gist options
  • Save destroytoday/547084 to your computer and use it in GitHub Desktop.
Save destroytoday/547084 to your computer and use it in GitHub Desktop.
package com.destroytoday.desktop
{
import com.destroytoday.desktop.KonamiCode;
import flash.display.Sprite;
public class KonamiCodeTest extends Sprite
{
public var konamiCode:KonamiCode;
public function KonamiCodeTest()
{
konamiCode = new KonamiCode(stage);
konamiCode.executed.add(konamiCodeExecutedHandler);
}
protected function konamiCodeExecutedHandler():void
{
trace("woohoo!");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment