konami code in flex

前端 未结 3 994
-上瘾入骨i
-上瘾入骨i 2021-02-01 14:51

What would be the best way to implement the konami code into a flex application?

I want to create a component to add it on all my proyects, just for fun.

thanks<

3条回答
  •  Happy的楠姐
    2021-02-01 15:46

    You may use Casalib. There are classes, Key and KeyCombo. You may listen for KeyComboEvent.SEQUENCE.

    Working sample:

    
    
        
            
        
    
    

提交回复
热议问题