Re: arrow keys with SWFBUTTON_KEYPRESS ?
Anews <[email protected]> Fri, 14 Nov 2003 23:24:26 +0100
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <[email protected]> |
Hi!
> How should I capture the event to actually check for Key.UP? or to get the
> question directly: Does Ming have an equivelant to onClipEvent(keyDown) ?
> So I could make the equivilant of the following:
>
> onClipEvent (keyDown) {
> if (Key.getCode() == Key.UP) {
> whatever = "whatever";
> }
> }
Try SWFACTION_KEYDOWN... When you add a movie clip (sprite) to the main
movie, you get a display item - on that item there is a poorly documented
function addAction that allows you to add onClipEvent actions. I'm not sure
if you can do the same on the main movie - if you succeed, please let us know
(if anyone needs this in the future).
If you need an example, let me know...
Enjoy!
Anze