View Full Version : Keyboard Input in AS3
itbkris
June 7th, 2008, 12:26 PM
Is there a way to know when the printscreen key is pressed? I want to black out images when it is hit but it does not have a charCode. Any ideas?
-Kris
itbkris
June 7th, 2008, 12:50 PM
It works in AS2 with this code:
this.onEnterFrame = function (){
if (Key.isDown(44)) {
trace("Dont try to capture me!");
System.setClipboard("Dont try to capture me!");
}
}
Now to convert it.
itbkris
June 7th, 2008, 01:09 PM
Got it, just loaded the AS2 clip into the AS3 movie and the code ran fine.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.