Using numberd buttons to enter text into a field

Hi all, was wondering if I had 10 seperate sprites acting as
buttons on a page, which will be numbered 0 -9, is it possible to
use them to enter text into a field. e.g.
If the user presses the sprite with a number 1 on it, would
it be possible to have a 1 displayed in an edit field. I need to
pretend as though im using a remote.
thanks

You can create a behavior that will allow you to set a
variable for each
button. When you assign the behavior to your button sprite,
it'll
prompt you to enter the ButtonNumber property. Haven't tested
this yet,
but something like this should work:
global gNumberEntered
property ButtonNumber
on getPropertyDescriptionList
description = [:]
addprop description, #ButtonNumber, [#comment:"Enter number
to assign
to this button", #format:#integer, #range:[1,10], #default:
1]
return description
end getPropertyDescriptionList
on mouseup
sprite(the currentSpriteNum).member = member("buttonOver")
gNumberEntered = ButtonNumber
cursor -1
end
on mouseEnter me
sprite(the currentSpriteNum).member = member("buttonOver")
cursor 280
end
on mouseDown me
sprite(the currentSpriteNum).member = member("buttonDown")
end
on mouseLeave me
sprite(the currentSpriteNum).member = member("buttonUp")
cursor -1
end

Similar Messages

  • Auto populate text fields with a trigger such as entering text into input fields in ADF

    Hello all,
    I am not able to auto populate text fields with a trigger such as entering text into input fields in ADF.
    I tried AdfFacesContext.getCurrentInstance().addPartialTarget(val); in the back end using setter method of input text field.
    its not working ..
    is there any way to achieve it
    Regards,
    Shakir

    Hi,
    Always mention your JDev version.
    The valueChangeListener would fire only when you set the autoSubmit property of the field to true. Can you elaborate your requirement? What do you mean by related data? Are you performing some sort of search?
    If you want to get the value you entered on the field, just set autoSubmit to true and get the new value from the valueChangeListener. If your requirement is something like as and when you type, do something, you need to check out this approach :https://blogs.oracle.com/groundside/entry/auto_reduce_search_sample
    -Arun

  • Safari crashes when entering text into entry fields

    I recently bought a MacBook 2.0 (White) and have set up accounts for multiple family members. On one (standard) account, Safari immediately crashes as soon as you try to enter text into an entry field, e.g. to do a search on Google or Yahoo. I've already tried dragging the Safari pref files to the desktop and icon files to the desktop and rebooting both Safari and the entire machine with no success. However, if I log onto any of the other accounts, Safari works fine. Initially, (for about two weeks), it worked fine, it just started acting like this recently. Toggling Java and Javascript off, also doesn't solve the problem. I'm about to create a new account and trash this account entirely, but I was wondering if anyone has seen this problem and knows what's gone wrong.
    2.0DualG5, 15"PBook1.5, MacBook2.0   Mac OS X (10.4.6)  

    Thanks Yang, you pointed me in the right direction. I was able to edit and delete items in the Autofil - Other Forms, but when I tried to do the same thing on the Autofil - Address Book Card, it crashed immediately. Further investigation showed that if I tried to open any applications related to the Address Book like Mail or Address Book itself, they immediately crash also! This is kind of weird because this account hasn't been set up for Mail and as far as I know there are no entries in the Address Book. If I uncheck "Using info from my address Book card", Safari doesn't crash, so now it looks like the problem originates from Address Book or possibly Mail.
    RadiCal

  • How to enter text into text box in Pages '09

    When I manually select a text boxes in Pages, I can paste text into them. I can move from text box to text box using System Events to keystroke tabs but have not figured out how to get Applescript Editor to make the pastes. I am trying to use Applescript Editor to enter text into a pages document that is formatted for labels.

    I have downloaded template U-0089-02_P.doc from Avery, 14 boxes displayed in two columns of seven rows.
    Once you have clicked in the upper left box, the following script should enter text into every box, from left to right and top to bottom.
    tell application "Pages"
    activate
    tell application "System Events"
    keystroke "Box 1"
    keystroke tab & tab -- to go to the next column
    keystroke "Box 2"
    keystroke tab -- to go to the next row
    keystroke "Box 3"
    keystroke tab & tab
    -- and so on
    end tell
    end tell
    The problem is that I don't know how to enter the upper left box from the AppleScript Editor.

  • When using firefox beta can not enter text into reply areas on forums.

    When visiting vbulletin type sites, the firefox beta will not enter text into the message reply text box. Seems to be only a problem on honeycomb os.

    This sounds like a known bug in Firefox 4: https://bugzilla.mozilla.org/show_bug.cgi?id=624163
    We have a fix ready for this bug. The fix will be included in an upcoming version of Firefox. If you want to help us test the fix today, you can download a pre-release version from the "Aurora" channel here: https://wiki.mozilla.org/Mobile/Platforms/Android#Download_Aurora

  • How to keep focus on button while entering text

    Hello,
    In a JFrame I have a JButton and a JTextField
    I want it so the user can enter text in the field and hit 'Enter' to trigger the ButtonActionPerformed event.
    I figured, once a JTextField event like keytyped happens, I could button.requestFocusInWindow();
    But then I cant type into the TextField anymore.
    How is this done?

    Use this:
    getRootPane().setDefaultButton(yourButton);
    This will make your button the default button if you are using a JDialog or JFrame. When the user finishes typing and presses enter the button will respond.
    I think this should work in a JFrame as well. I used it in a JDialog.

  • I have manually inputted data into a blank spreadsheet and would like to use a form to enter data into that sheet !!! How do I do that please

    I have manually inputted data into a blank spreadsheet and would like to use a form to enter data into that sheet !!! How do I do that please

    Leigh,
    After creating your table, Tap the Tab marked "+" and select "Form" - you will be asked which table to use. (You should get into the habit of naming your tables - if the table name isn't visible, select the table and tap the Styles (Brush) Menu > Table > Turn ON table Name, then double tap on the Table to edit it.)
    Select the table you wish to to fill with a form and you will see a new form based on the header data.
    The form will allow you to add one row at a time and when you get to the last row, there is an option at the bottom of the form to add a new row using the "+" button. At the top of the form is the row header which you can rename by double tapping.
    You can also rename the form on the Tab by double tapping on the name.
    Try it out.

  • Allowing users to enter text into a web page

    Hi there,
    I'm not at all versed in Java, so I would like some advice on how to do the following in a web page.
    Imagine you have a group of four users and they have to be able to give you a response to a question and be able to see what the others have responded.
    Basically I want the users to be able to to enter text into the webpage, so that the question can be changed and also so that each person can change their reply (in a space under their name.)
    It would also be acceptable if the text was from a predetermined list, ie a drop down list which has a "memory"
    Any ideas would be most welcome, thanks in advance!
    -Ekipero-

    Hi again,
    I think I didn't explain myself clearly enough.
    Basically, all I need is a text box which can be edited by anyone who visits the webpage, and which once edited has a "memory" so the next person who visits the page can see what the person before wrote.
    I don't know any Java but I'm sure an applet to do this can't be too difficult right?
    Perhaps doing it through a text box and a Submit button which then pastes what has been written in the text box onto the page? Or perhaps the text can be chosen from a predetermined list?
    Thanks in advance to all ;-)
    -Ekipero-

  • Cant enter text into addressbook Mac OS 10.5.8 without it multiplying into garbled text

    Hi Folks, when I try to enter text into address book it multiplies into garbled text even if I try to delete it still adds text.
    I have tried deleting prefs plists etc. also binned rapidoWrite which was suggested but to date no luck.
    Im on an imac intel core duo using 10.5.8

    I fixed this by upgrading to snow leoapard

  • Can you enter text into "info" pop-up window for TV Shows?

    It's not a big deal, but I was just wondering if there is a way (a script perhaps) of entering text into the little "info" pop-up window for TV Shows in iTunes? (You know the one...it pops-up when you click on the little "i" in the description box on the TV Shows main playlist)
    The show files I made myself have blank info windows of course and it would be nice to be able to enter a decent length description of the episode (the character limit in the "Description" box is so short).
    Like I said, it's not a big deal, but it would be nice to be able to enter info in there...so if anybody knows how...please let me know.
    Yhanx a lot!

    Thank you very much for your reply! I will definitely pass this along to the IT department! Smiling now!

  • Calendar on iOS 7. Anyone noticed that when you enter text into the "notes section" of a day, the text disappears behind the keyboard rather than scrolling down to keep pace with text entry ? Looks like an 7 glitch to me ?

    Calendar on iOS 7. Anyone noticed that when you enter text into the "notes section" of a day, the text disappears behind the keyboard rather than scrolling down to keep pace with text entry ? Looks like an 7 glitch to me ?

    Doesn't do that for me. Try resetting the phone

  • I'm having the oddest situation...  On my 13" MBP, when trying to enter text into a Facebook comment box; my delete key is totally non-functional.  I works just fine everywhere else, just not in the comment box.  Cannot delete characters.

    I'm having the oddest situation.  When I attempt to enter text into a Facebook comment box, my "delete" key doesn't work.
    It's just fine EVERYWHERE else, I just cannot delete characters from a comment box.
    What might I be missing?  I don't know what's up.
    JP
    MacBook Pro Retina 13"
    Safari 8.0.2
    Yosemite 10.10.1

    I'm having the oddest situation.  When I attempt to enter text into a Facebook comment box, my "delete" key doesn't work.
    It's just fine EVERYWHERE else, I just cannot delete characters from a comment box.
    What might I be missing?  I don't know what's up.
    JP
    MacBook Pro Retina 13"
    Safari 8.0.2
    Yosemite 10.10.1

  • How do I allow users to enter text into drop down menu

    I have created a form with a drop down menu but I want users to be able to enter thier own text into the field if they do not see the option they want.

    It sounds like you're creating the form in FormsCentral. This isn't an option in FormsCentral, but if you save the form as PDF you can edit the field in Acrobat and you'll see the option that Bernd mentioned. In order to edit the form in Acrobat, you have to removed the usage rights by opening the PDF in Acrobat and selecting: File > Save A Copy
    and then open the copy.

  • When entering text into a table letters are very slow to show up.

    When I enter text into a table, the text loads VERY slowly. What's that about?

    Problem 1: In Table A, when adding or updating data, I want to select data from fields in records based on primary key in other tables. Add and update data works. But my popup "X" list is way too long. I want the popup "X" when adding or
    updating record in Table A to only give me the choice of records from Table B that matches the data I entered in a previous field in Table A, not all the records from Table B.
    For this question, you can create SortTable screen to sort the data based on table A and table B. is this what you need?

  • Inserting text into a field at the current cursor position

    Does anyone know how to insert text into a field at the current cursor position? I would like it to work similar to the Syntax Palette in Forms. I cannot figure out how to retrieve the current cursor position in order to manipulate the text.
    Any help would be great.
    Thanks.

    Hi,
    If the button and the textfield are on in the same subform then this code should work in the click event of the button
    (This is JavaScript code so make sure the code is set to JavaScript and Client on the drop downs in the script window)
    (assuming the name of the textfield is TextField1)
    TextField1.rawValue = "some value";
    If they are in different subforms then you have 2 options
    Please note in both these options it is easier if the subforms have names ( I am assuming this to keep samples simple)
    option 1 -
    use the parent object to move up the tree till you are at the same level as that of the subform that contains the textfield
    e.g. 
    (Click Event of the button)
    this.parent.subformname.TextField1.rawValue = "some value";
    option 2 -
    Use the resolve node to make your way down from the top level of the form
    xfa.resolveNode ("form1.subformname.TextField1").rawValue = "some value";
    Hope this helps
    Malcolm
    p.s. I am making assumptions as the image/file you attached did not appear for me.

Maybe you are looking for