Keyboard events restrictions

Using Print2Flash Document API
Post Reply
marcrock
Posts: 10
Joined: Thu Jul 18, 2013 2:24 pm

Keyboard events restrictions

Post by marcrock » Wed Jul 31, 2013 8:40 pm

I'm using the "Using Print2Flash Document API for ActionScript3" approach and would like to avoid any user attempt to control the Flash movie. I tried to detect if the keyboard would be pressed using:

Code: Select all

stage.addEventListener(KeyboardEvent.KEY_DOWN, detectKey);

var myURL:URLRequest = new URLRequest("http://www.mysite.com/anotherpage.html/");

function detectKey(event:KeyboardEvent):void {
	navigateToURL(myURL, "_self");
}
Well, this is not working because, of course, I'm making some mistake. Seems I'm not calling the right object... Could you help me to find where is the error, please?

staff
Posts: 281
Joined: Sat Dec 15, 2007 4:48 pm

Re: Keyboard events restrictions

Post by staff » Thu Aug 01, 2013 4:01 am

Could you send a full sample that demonstrates what you are trying to accomplish to our support e-mail so that we could check it?

marcrock
Posts: 10
Joined: Thu Jul 18, 2013 2:24 pm

Re: Keyboard events restrictions

Post by marcrock » Thu Aug 01, 2013 2:03 pm

OK, thanks. I'm going to send you just now.

Regards.

Post Reply