Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-30-2008, 12:49 PM   #1
mahomasy
New Member
 
Join Date: Nov 2007
Posts: 13
Default keypress for button component

hi there, i wonder if anyone can help me. my a.s skills are pretty lame.
i'm trying to modify a flash quiz template for the students in my school and would like for them to have the option of hitting enter aswell as clicking the button.
i've scouted around this forum and found a few keypress scripts but none have worked thus far. i've already adding a setfocus to the text input field, would this affect it?
any help would be greatly appreciated.
mahomasy is offline   Reply With Quote
Old 04-30-2008, 01:11 PM   #2
Milind sawant
Registered User
 
Join Date: Mar 2008
Location: Pune
Posts: 28
Send a message via AIM to Milind sawant
Default

Hello,
Can you show your script so, I will help you....


Thanks...
Milind sawant is offline   Reply With Quote
Old 04-30-2008, 01:44 PM   #3
mahomasy
New Member
 
Join Date: Nov 2007
Posts: 13
Default

well thats the thing, i dont have any. i tried adding on (keyPress "<Enter>") {

}
but it didnt work. i've read that you can't use a keypress function with a button component in as2. is that true?
mahomasy is offline   Reply With Quote
Old 05-02-2008, 10:42 AM   #4
Milind sawant
Registered User
 
Join Date: Mar 2008
Location: Pune
Posts: 28
Send a message via AIM to Milind sawant
Default

Hello,
I think, that is not a true. We ca use keypress function with a button component
Well I attached on file, please let me know is it usefull for you?

Thanks...
Attached Files
File Type: zip KeyPress.zip (8.4 KB, 85 views)
Milind sawant is offline   Reply With Quote
Old 07-10-2008, 08:56 AM   #5
mahomasy
New Member
 
Join Date: Nov 2007
Posts: 13
Default

hi, thanks for the reply, sorry for taking so long, i had to forget about this for a while.
just looking at your script. the keypress function u have included is for a button symbol, not a button component. I'm trying to add a keypress function to a button component that exists in a quiz template. any more ideas?
mahomasy is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add parameters to component built from scratch [email protected] Components 9 12-03-2007 11:04 PM
removeMovieClip() not work for components? djandrew Components 30 08-03-2007 04:51 PM
Proper way to bind data to the DataGrid component - Best practices. andrea_muta Components 1 04-03-2007 09:13 AM
problems with textInput component and keyPress <enter> Col. Ostomy ActionScript 2.0 0 06-17-2005 01:49 PM
dynamic component (radiobutton) with setChangeHandler problem tROCK Components 6 08-25-2004 04:49 PM


All times are GMT. The time now is 02:39 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.