• Hi,

    I try, that if i click key down '38', it should go to the next pano. it works but changes firsly view (currently pano view, picture down) and then work my script for key down.

    There is a trick, that i can avoid that problem.

    Thanks in advance

  • Hi,

    the onkeydown event is fired as long as the key is down,
    you could either just use the onkeyup event or a bit more complexly - check if the key is already pressed,

    e.g.

    Code
    <events onxmlcomplete="set(key38pressed,false);"
        	onkeydown="if(keycode == 38, if(key38pressed == false, set(key38pressed,true); trace('key38 pressed - do your code here'); ));"
        	onkeyup="if(keycode == 38, set(key38pressed,false));"
        	/>

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!