Ye 3D sprite masking keydown events 2004-02-13 - By Roman Blöth
Back Hello Neto,
>I just had this issue (3D sprite "eats" my keyDown events). I solved it by >adding the "on Keydown" to the 3D sprite script, and having it call a "on >keyDownEvent" movie handler, that had my keydown handling code. I also had >"keyDownEvent()" placed in the "on Keydown" movie script as fallback, in >case the 3D sprite loses focus. > >I have an editable field used for debug purposes, and it never had problems >in coexisting with the 3D sprite, even before I added the workaround code (I >needed it because I suddenly needed to trap keypresses for a custom input >fields inside the 3D sprite - and I wanted to use the global keydown, to >avoid focus problems) > Actually I had this issue with our actual project, too, and then for the first time have read about "set the keyboardFocusSprite = textSpriteNum" And from the help-file: Setting keyboardFocusSprite to -1 returns keyboard focus control to the score, and setting it to 0 disables keyboard entry into any editable sprite. I really can't remember having ever to do with such an issue, so this was new to me.
Best regards, Roman. __ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|