Ye 3D sprite masking keydown events 2004-02-13 - By Neto
Back Ah, I had forgotten about the focusSprite. I actually used it, since I control the field's editable property manually (it only ever becomes editable if the user clicks on it, and becomes uneditable if the user clicks outside or press return). This became a little habit of mine, because in past projects with lots of editable fields that could both work as variable input and display I had a major pain in managing their updates, and controlling who is editable and who isn't was the best solution.
-- -- Original Message -- -- From: "Roman Bl�th" <bloeth@(protected)> To: <dir3d-l@(protected)> Sent: Friday, February 13, 2004 3:41 PM Subject: Re: [Dir3d-l] Ye 3D sprite masking keydown events
> 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 >
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|