View Full Version : [AS1] Game publishing problem
01-03-2004, 10:43 AM
I've just finished a simple Flash 5 game in ActionScript. Everything about it works fine except when I try and turn it into a web page. After I create the page, the graphic controlled by the player no longer responds to the keyboard. Can anyone explain why this is and how I can fix it? Much appreciation for all your help.
01-03-2004, 12:11 PM
Howdy and Welcome... ;)
You should click on the Flash movie once so that it will get focused so that keyboard input can be recognized...
You can use either Key.getCode() or Key.isDown() function to capture which key has been pressed... Test which one works and which one does not work for you... I had this happeneing, so I had to change all the instances of one to another...
01-03-2004, 03:05 PM
I tried out your first suggestion. It worked. Thanks a lot.
01-03-2004, 03:18 PM
<body bgcolor="#FFFFFF" onLoad="window.document.movieID.focus();">
where movieID is the name you give to your movie in its embed tags.
01-03-2004, 03:56 PM
Thanks very much for your suggestion.
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.