View Single Post
  #3  
Old 11-19-2007, 09:11 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The problem with the original code was that you were using the vizact.onkeydown command incorrectly. It should be:
Code:
vizact.onkeydown( 'a', menuScene.visible,viz.ON)
vizact.onkeydown( 's', menuScene.visible,viz.OFF)
The second parameter to the command needs to be a function object. All other parameters will be passed to the function when the specified key is pressed.
Reply With Quote