Press on Button and hold down

when i press on Button and hold down i want to increment  _global.lines
nextline_btn.onPress = function() {
    if (_global.lines<25) {
       _global.lines = _global.lines+1;
        txt_lines.text = _global.lines;

Very Good Morning,
Try the following code
var intervalID:Number
_global.lines = 0
my_btn.onPress= function () {;
    intervalID = setInterval(incrementNumber, 1000);//1000 for 1 second after 1 second you increment function will call
my_btn.onRelease= function () {;
    clearInterval( intervalID );
function incrementNumber()
if (_global.lines<25) {
        _global.lines = _global.lines+1;
        trace(_global.lines)
        txt_lines.text = _global.lines;

Similar Messages

  • Hi, I'm trying to shut down the phone in the normal way (the Sleep / Wake button and hold down on the Close tab) turns off the display after a while yet, but the phone turns off completely opens up the phone to come out after the apple logo .. What is the

    Hi, I'm trying to shut down the phone in the normal way (the Sleep / Wake button and hold down on the Close tab) turns off the display after a while yet, but the phone turns off completely opens up the phone to come out after the apple logo .. What is the reason I'd appreciate if you help how to fix it ...pleasa help me

    Doing those doesn't turn off your phone?
    As stated hold down the top button only until you see the red slider to power off your phone.
    If that doesn't work then take it to Apple and see what they say.

  • I cannot access Siri using my iphone 5 earphones by pressing and holding down the center button on the earphones?

    I cannot  access Siri using my iphone 5 earphones provided with my phone.  I press and hold down the center button on the earphones, but it doesn't activate Siri.

    If you had checked the settings - you might have noticed that Siri isn't in the settings either. Siri is in the settings on the iPad 3, the iPad 4 and on the Mini.

  • How do I get data off  my phone? when I plug phone into the wall and hold down the button i can get into photos and messages etc but when I plug into laptop it goes to recovery mode........therefore the data is not yet wiped? HELP!

    how do I get data off  my phone? when I plug phone into the wall and hold down the button i can get into photos and messages etc but when I plug into laptop it goes to recovery mode........therefore the data is not yet wiped? HELP! I got married last week on holidays and have not had a chance to save photos yet.

    Hello there stidhambr15,
    I was researching the issue you are having and recommend a couple of things. First it might be a good idea to reset the device following iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting found here http://support.apple.com/kb/ht1430
    Resetting your device
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't quite get the device going again, I recommend restoring the device.
    iTunes: Restoring iOS software
    http://support.apple.com/kb/ht1414
    Might even be a good idea to turn off the phone, reseat the SIM card, and turn it back on.
    iPhone and iPad: How to remove the SIM card
    http://support.apple.com/kb/ht5163
    iPhone 4 (GSM model)
    iPhone 4S
    Cheers,
    Sterling

  • My ipod nano 6th gen doesn't start. When I plug it, only blink the apple logo on the screen. I try to reset it holding by 8 seconds start button and volume down and doesn't work. My Ipod doesn't have any shock or water damage. How can I do?

    My ipod nano 6th gen doesn't start. When I plug it, only blink the apple logo on the screen. I try to reset it holding by 8 seconds start button and volume down and doesn't work. My Ipod doesn't have any shock or water damage. How can I do?

    Hey rulosrojos,
    The article linked below details a number of troubleshooting steps that can help restore functionality to your iPod nano.
    iPod nano (6th generation): Hardware troubleshooting
    https://support.apple.com/en-us/TS3474
    Sincerely,
    Allen

  • My ipad is password protected and i can't remember the password.  when I try to restore it, the itunes restore plugin screen will not appear on my ipad.  I have tried to shut down, plug in, and hold down the home button method and get nothing.

    my ipad is password protected and i can't remember the password.  when I try to restore it, the itunes restore plugin screen will not appear on my ipad.  I have tried to shut down, plug in, and hold down the home button method and only get the password screen again on the iPad.  Any suggestions??

    tried all that and was looking good with new software etc downloaded and then got a message in iTunes."we're sorry we are unable to conitue with your activation at this time etc " tried process again and got to the same message. iPAD still has the connect to it tunes screen ..any suggestions?

  • When i press on the home button and hold it siri doesn't do anything

    please help

    After updating to iOS 7.1 i encountered same prob.
    Siri IS activated an still does not work while pressing home button and/or button on headset.
    Any ideas?

  • Phone was working three minutes ago, not it is completely black. When I put the charger on it, it does nothing. I can't see anything. Ive tried to hit the on off button, nothing, holding down the button on the bottom does nothing. Help please

    phone was working three minutes ago, not it is completely black. When I put the charger on it, it does nothing. I can't see anything. Ive tried to hit the on off button, nothing, holding down the button on the bottom does nothing. Help please

    First you can try to force reboot your phone.  To do this:
    1. Hold down the sleep/wake button and home button simultaneously.
    2. Let go when the Apple logo appears and the iPhone is booting up.
    If that doesn't work, you might need to hook the phone up to your computer and do a full restore through iTunes.

  • My iPad 2 is stuck in verify update after updating to 8.1.3. Tried pushing buttons and holding. No luck

    My iPad 2 is stuck in verify update after updating to 8.1.3. Tried pushing buttons and holding. No luck

    How many times did you try the reset? Sometimes, it can take more than one reset, especially with these kinds of issues. Try multiple times. Note that you need to hold both buttons until the Apple logo appears on the screen. This can sometimes take 15-30 seconds.
    Device Reset (won't affect settings/data/music/apps/etc)
    1. Press and hold (& continue to hold) BOTH the Sleep/Wake button & the Home button.
    2. Continue to hold BOTH (ignoring any other messages that may show) until you see the Apple logo on the screen.
    3. Release BOTH buttons when you see the Apple logo and allow the device to boot normally.

  • I cannot eject a CD from my MacBook Pro.  I tried restarting the computer and holding down the mouse and restarting it to no avail.  On Finder, nothing is showing up on the CD Drive.  Any ideas on how I can eject it?

    I cannot eject a CD from my MacBook Pro.  I tried restarting the computer and holding down the mouse and restarting it to no avail.  On Finder, nothing is showing up on the CD Drive.  Any ideas on how I can eject it?

    How force eject disc: Apple Support Communities
    Mac Mini: Eject DVD Apple Support Communities
    https://www.macupdate.com/app/mac/49129/forceject-too
    Get help with the slot-loading SuperDrive on your Mac computer - Apple Support

  • Gallery with Paypal buttons and drop-downs on the index page?

    I'm looking for a LR gallery where I can have thumbnails with Paypal buttons and drop-downs on the index page.
    I would prefer to keep my galleries interface streamlined and don't want to clutter it up with dropdowns and cart. I would like to have 1 page for ordering that has all my images as thumbnails with drop downs for price and size, rather than right-clicking on and image which opens in another page like the LRG Gallery with Paypal.
    I don't have a lot of experience messing with code, and none with .js. I did make a drop down in Paypal and have the code, but I think things would be pretty unwield it I designed a page as a table like I would in MS Word.
    I'm familiar with LRG Complete gallery, but don't see that it has the ability to not require a right click to order.
    I don't have a lot of experience messing with code, and none with .js. I did make a drop down in Paypal and have the code, but I think things would be pretty unwield it I designed a page as a table like I would in MS Word.
    Any thoughts, ideas, or help?
    Thanks,
    Reid

    Maybe some could try this out, and has experienced the same problem.
    It is on the site http://www.fonetix.biz
    and then push the German flag in the top Right corner, and further click on the Button "Contact info". It will give the eroor.

  • I have a ipod nano shuffle, 6th gen.  I bought it when I had Windows Vista.  I upgraded to Windows Ultimate 7.  Now it keeps shutting off.  Have to press power button and touch arrow to restart.  3 to 4 times a song.  I ran diagnostics.  Passed until end.

    Have iPod Nano Shuffle 6th Gen.  I purchased it when I had Windows Vista.  I have since upgraded to Windows 7 Ultimate .  Was fine with Vista.  Now, it keeps shutting off during the song, 3 or 4 times.  Have to press power button and then arrow to restart song.  I went to my iTunes and ran diagnostics.  Passed all until the end.  The last test had a red dot failure.  It said no iPod, iPhone, or iPad found.  Does someone know how I can correct the problem?  iTunes is always updating, so I am current.

    Sidney...
    Try here >  iPod shuffle troubleshooting and service FAQ

  • I was listening to iPod nano in docking station and pressed center button and music stopped playing and a high pitched sound is emitting from iPod.

    I was listening to iPod nano in docking station and pressed center button and music stopped playing and a high pitched sound is emitting from iPod.

    Hi gscoops,
    Welcome to Apple Support Communities.
    You may find the steps in our iPod Troubleshooting Assistant helpful:
    http://www.apple.com/support/ipod/five_rs/classic/
    Best,
    Jeremy

  • How to when press the button and can change the value in the table?

    this is my code so far with a table and a button..how can i make it when press the button and the data in table change..
    * SimpleTableDemo.java is a 1.4 application that requires no other files.
    import java.awt.BorderLayout;
    import java.awt.Button;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class SimpleTableDemo extends JPanel {
    private boolean DEBUG = false;
    private JPanel button;
    private JButton enter;
    public SimpleTableDemo() {
    super(new BorderLayout());
    //button.setBackground(Color.pink);
    //setForeground(Color.pink);
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Knitting", new Integer(2), new Boolean(false)},
    {"Sharon", "Zakhour",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Philip", "Milne",
    "Pool", new Integer(10), new Boolean(false)}
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    enter = new JButton("Press me");
    //Add the scroll pane to this panel.
    buildButton();
    add(scrollPane, BorderLayout.NORTH);
    add(button, BorderLayout.CENTER);
    private void buildButton(){
    button = new JPanel();
    button.add(enter);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("SimpleTableDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    SimpleTableDemo newContentPane = new SimpleTableDemo();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    Cross-post:
    http://forum.java.sun.com/thread.jspa?threadID=676105

  • My iphone's screen goes black and it behaves like that it is switched off.No switches work and the power button also does not respond.The ringtone do not also respond.The only way to switch on the phone is to press  home button and  power button together.

    My iphone's screen goes black and it behaves like that it is switched off.No switches work and the power button also does not respond.The ringtone do not also respond.The only way to switch on the phone is to press  home button and  power button together.

    Pressing the Home button and the sleep/wake or on/off button together until you see the Apple logo and then release is called a reset.
    If no change after a reset, the next step is restoring your iPhone.

Maybe you are looking for

  • Hi pls respond my code its urgent

    hi, my prblm is in this program i used bapi function module for upload excel data. bapi_incominginvoice_park. in my output park number showing increasing for each item. so i need parknumber it should be same for all items. i am sending my code pls ch

  • Help needed finding display port (NOT mini) to VGA adapter please!

    I bought a macbook in 2009 and urgently need a VGA adapter (female) but I don't have a mini display port! Help! I can't seem to find an adapters that suit macbooks before the mini dislay port was brought out. Thanks Kirsten

  • Can't send and receive on the same port

    Hello, I have a socket client which send a message to serverSocket then it should wait for a response. The problem I have is that the client send the message but when it tries to open a connection as socketserver on the same port it can't , a have th

  • Solaris 10 won't work with 2nd harddisk

    I installed Solaris 10 on this Dell 5150 with only 1 SATA hard drive setup, all went well, and I could view the disk in the disk management window. However, I setup a 2nd hard drive, identical to 1st drive. Solaris wont recognize it and gives an erro

  • I have a locked simm and it wants the puk code where do you find that at

    See this for possible help... http://www.att.com/esupport/article.jsp?sid=33534&cv=820