Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 110690

Re: Help for non-coding animator: How can I control the timeline with the keyboard with AS3?

$
0
0

stage.addEventListener(KeyboardEvent.KEY_DOWN,downF);

 

function downF(e:KeyboardEvent):void{

    if(e.keyCode==13){

        gotoAndPlay('some animation after enter pressed');

    } else {

        nextFrame();  // though i doubt this is always correct.

    }

}


Viewing all articles
Browse latest Browse all 110690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>