Hey everybody, I have the following code which upon the pressing of the letter "s" opens up a new url in a uiloader window. If you press "s" repeatly it continues to open the window over and over without it finish fully playing, is there a way to add a timer to the "s" so it can only work once every few seconds or possibly a way to make the url completly open before you can press the "s" again??

Thanks for any help available!!!

Actionscript Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler);

function keyHandler(e:KeyboardEvent):void{
  if (e.charCode == "s".charCodeAt(0)){
    var swfPathAndName:URLRequest = new URLRequest("intro.swf");
            swfbox.autoLoad = false;
    swfbox.maintainAspectRatio = true;
    swfbox.scaleContent = false;
    swfbox.source = swfPathAndName.url;
   
    swfbox.load();
  }
}