IT Community - Software Programming, Web Development and Technical Support

Goto the particular frame on Keystroke

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Flash Actionscript Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-21-2007, 02:43 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Question Goto the particular frame on Keystroke

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-21-2007, 02:45 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Thumbs up Re: Goto the particular frame on Keystroke

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 08:43 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0