[Papervision3D] KeyboardEvent detection
Glen Pike
postmaster at glenpike.co.uk
Wed May 21 10:42:37 PDT 2008
Hi,
You may need to add your listener to the stage of a movieclip /
sprite...
this.stage.addEventListener(KeyboardEvent.KEY_UP, _keyUpHandler);
Also look at this class for a useful utility because you can't call
Key.isDown() anymore:
http://flashgamecode.net/classes/key-polling-class
Glen
Philippe Guillard wrote:
> I'm using Flex + PV3D, i'd like to detect mouse events from anywhere
> to move my camera, and i'm surprise to see that i can't detect my
> keybord events.
> Something wrong? :
> Application.application.addEventListener(KeyboardEvent.KEY_DOWN,
> keyHandler);
>
> Thanks,
>
> Phil
> ------------------------------------------------------------------------
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
--
Glen Pike
01326 218440
www.glenpike.co.uk <http://www.glenpike.co.uk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080521/521c030b/attachment.html
More information about the Papervision3D
mailing list