This is a discussion on Goto the particular frame on Keystroke within the Flash Actionscript Programming forums, part of the Web Development category; Question: Hey all! Here is a script that i made... on (release, keyPress "a") { gotoAndStop(3); } I'm ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Question: Hey all! Here is a script that i made... on (release, keyPress "a") { gotoAndStop(3); } I'm want to allow a user to press a letter on the keyboard, then have them sent to a frame and then stop! Also i want to have it so i can list from A - Z, each leer goes to a different frame! if some one knows how to correct my error please help me. Thanks |
| Sponsored Links |
| |||
| This would be the correct syntax: var keyListener:Object = new Object(); keyListener.onKeyDown = function() { if(Key.getCode() == 65) { gotoAndStop(3); } }; Key.addListener(keyListener); Each key has its own individual code. If you look up key codes in the Flash help, you'll find a list of all of them. Some keys can be declared by name, but others need to be declared by their code. I hope it will help you to do better |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| detecting a keystroke? | Grag980 | Other Web Programming Languages | 1 | 12-14-2007 04:36 AM |
| Is the finally occurs when called the goto or return? | S.Vinothkumar | C# Programming | 1 | 10-31-2007 03:11 AM |
| .How do I make a link or form in one frame update another frame? | oxygen | HTML, CSS and Javascript Coding Techniques | 2 | 07-27-2007 04:02 AM |
| goto specific scene | nssukumar | Flash Actionscript Programming | 1 | 07-24-2007 01:14 AM |
| SEO Keystroke Tool | sfod223 | Search Engine Optimization | 0 | 02-19-2007 10:10 AM |