The button does not work on Android. Why?

Hello

I create an event handler for a button named sID_btn. It's a work find on PC, but it does not on Android. What is the problem and how to fix it?

sID_btn.addEventListener (MouseEvent.CLICK, displayData);

function displayData(evt:MouseEvent):void

{

for each (var grade: XML in xmlList)

{

If (myTextField.text = grade.st_id.text ())

{

sName.text = grade.st_name;

sQuran.text = grade.quran;

sIslamic.text = grade.islamic;

sArabic.text = grade.arabic;

sEnglish.text = grade.english;

sMath.text = grade.math;

sSport.text = grade.sport;

sComputer.text = grade.computer;

}

}

}

Kind regards

You have saved a MouseEvent.CLICK event for the event. It works for Android as long as your Multitouch.inputMode is MultitouchInputMode.NONE or MultitouchInputMode.GESTURE.

If your Multitouch.inputMode MultitouchInputMode.TOUCH_POINT, you rather to listening for the TouchEvent.TOUCH_TAP event. It would be the first thing to check.

Tags: Adobe AIR

Similar Questions

  • When I go to my creative cloud application, it said that I have no internet? try it again the button does not work

    When I go to my creative cloud application, it said that I have no internet? try it again the button does not work

    Log, activation, or connection errors. CS5.5 and later, Acrobat DC

    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-network-issues.html

  • Convert the button does not work

    My first post here. So, I have Sansa Fuse 8 GB. I use Sansa Media Converter all the time and it always works. But today, I want to convert videos (they are all AVI and they are a little more then 1 GB when I have 5 GB free) so I added the in the program, but I was able to convert them. The convert button is not lit and I can not click on it. I have Windows Media Player 10 and Quick Time too. I don't know why it does not work. I hope someone can help.

    Thank you.

    It is not the solution to your problem, but until you know, you can try to convert videos using video4fuze

  • Right click on the button does not work

    I tried to use the right click button to copy and paste and delete things or get this bar you usually get when you right click, but it does not work. It works as a second main button. How should I do?

    How good are you click?
    How is it implemented  - system - Trackpad preferences?

  • New Notebook Laser Mouse 7000 - click on the button does not work so it is unusable

    If this is the wrong forum, please let me know. I couldn't find an obvious forum for mice. My old wireless mouse does so after much research, I chose a Laser Mouse 7000 and ordered online. I have download the drivers, follow the instructions for setting up and pressing the buttons, the installer with ALL THE BUTTONS by DEFAULT, reset and CLICK does not work. It acts like I am struck by right click. I tried moving, rearranging button settings, nothing works. When I go into control panel it says it is not working properly, but this certainly isn't. I also restarted x 2 to try to make the problem go away.

    It is a defective material, so should I just sent to the seller? That I've already lost too much time on this stupid thing. If I didn't always have a wireless mouse, I would not be able to use my PC

    Windows vista 64-bit standard

    Oh, I try the product. I have to enter the product number. It is very very small and very difficult to read, but I can enter the product correctly, I think. But here is the message that I will be back:

    "The product ID does not match the selected product.
    The product ID you entered is for Microsoft Wireless Notebook Laser Mouse 7000 (all languages), which is different from Microsoft Wireless Laser Mouse 7000 (all languages) you selected for support. Please enter the ID number of the product for Microsoft Wireless Laser Mouse 7000 (all languages) or click Select the product to select the right product. »

    WTF?

    Hello

    Microsoft Hardware Support access in the United States is 1-800-936-5700

    Dial the number and when he asks PID just say you don't know. You will need to give to the
    Tech answers so have a magnifying glass very convenient. There could be a more easy to read number on
    the receiver.

    Believe it or not, I had exactly the same experience with my entire keyboard and mouse, and I am
    in the meantime the new series arrived. Rob - bicycle - Mark Twain said it is good.

  • Cannot add co-owner for my project? The button does not work.

    Hello

    It seems that something is wrong with the button "+ co-coproprietaire/credit", when I press nothing happens. Also I asked a friend to check his profile and he too does not work.

    Thank you.

    Hello - please write to our official support to help.behance.net - I think that it is a known, but it is to be resolved as soon as POSSIBLE.

  • Enter the button does not work in the address bar.

    After entering an address of site in the address bar, type either the AutoComplete history, pressing enter me does not send to the page, and I manually click on the button go to the right.
    Deactivating all my plugins makes no difference.

    This problem may be caused by the AVG Safe Search extension.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • So I try to import a button into a document in Dreamweaver, HTML in fireworks, but the button does not work.

    The button itself works perfectly in two Fireworks preview mode, and if I open the button by double clicking on it in the menu of sites in Dreamweaver. There was therefore nothing wrong with the button it loads if I load up by itself in dreamweaver. But, when I use Insert > image > fireworks html and select it, it just doesn't work. I tried to make new buttons, remove everything on the site and have just the button and the Web page with a folder for images, but nothing seems to work and I can't find an answer online.

    I use a Mac and using Dreamweaver CC

    Fireworks generated code is blind.  And these scripts MM working capital have been an unfortunate error of judgment.  The programmer should have taken this code on the back, and he's driving a tank.

    You're better off using Fireworks for images only.

    DW to generate your HTML, CSS and JavaScript code.

    Nancy O.

  • The button does not work on 2nd load

    I have a main swf file that loads movies into a movieHolder clip. Initially, it loads a movie and a button is selected, then plays a framework that loads another movie, once a key is pressed in this film, he plays a framework and at this point / framework I have this code:

    Stop();
    _parent.movieHolder.loadMovie ("Q_1.swf");
    _parent.attachMovie ("title_foundational", "ttl_foundational", 1, {_x: 217, FLF: 5});
    _parent.attachMovie ("buttonblank", "butt_blank", 2, {_x: 22, FLF: 5});
    _parent.butt_blank.gotoAndStop (1);
    _parent.butt_blank._alpha = 100;
    _parent.butt_blank.onRelease = function() {}
    _parent.gotoAndStop ("secondframe");
    }

    The butt_blank is what I have a problem with. First, it refers the user to the right place to the first movie loaded, later when you click buttons movies still load properly and code load the butt_blank, but the code does NOTHING. The user remains on the same chassis.

    It's code runds when the user returns to 'secondframe.

    movieHolder.loadMovie ("ShopOutsideAnim01.swf", "ShopOutside");
    ttl_foundational.removeMovieClip ();
    butt_blank.removeMovieClip ();

    Any help is greatly appreciated!

    Yes, you are missing something.  you are probably confused about what you expect _parent to be.  use:

    trace (_parent)

    just before _parent.goto

    and if you have more than one _parent.goto which is, I suspect, causing your confusion, trace of them all.

  • Enter the button does not work in the address bar. 28 Firefox

    I have three users on my desktop PC, that is to say me and my wife, and a more. I am running Windows 8.1
    My firefox works fine, as is the other, but when I switch to the user there is a problem
    When I type a URL, it is www.xxxxxxxxx in the address bar and press return or enter, nothing happens. Even the small arrow on the right side of the address bar doesn't do anything when you click it.
    I tried to disable all add ons and extensions, and accelerator hardware and even started in safe mode. Even reinstalled Firefox and the problem remains. However, problem is still there. Have also installed Chrome and works, just to check.
    It started a week ago.
    As I said the other users on the same office very well work this eliminates normally like all windows updates the user are performed. Why this phenomenon happens only to a single user?

    Hello

    You have AVG installed? If so, disable the AVG Safe Search add-on.

  • Power of my office on the button does not work

    My office has been issued by the University of surrey as a tool for students two years ago. Yesterday when I tried to turn it on, the power switch just didn't work no matter how long I pushed.

    What sounds weird. Can anyone here help?

    And what office you have?

    In any case, it can be mechanical failure. Check the connection of the power supply. If the power supply is ok and office doesn t start it can be really mechanical problem. Check also on the switch back (usually small size black with 1 and 0).

    Sorry but on this path it is not easy to tell exactly what is happening.

  • Trackpad and left and rick click on the button does not work since the upgrade to windows8

    I have a Sony Vaio VGN-FW21Z and I have upgraded from windows 7 to windows 8, the laptop works beautifully, but I'm forced to use a usb mouse as my pad and click left and right click doesn't work and I tried to install all the drivers several times to fix this problem and nothing's done, can someone please shed some light on this issue please.

    Hi Maiku,

    Windows 8 drivers are not available for your model. Check out the following link.
    Support for VGN-FW21Z http://www.sony.co.uk/support/en/product/VGN-FW21Z/updates

    As it is has no drivers for Windows 8 operating system, I suggest you to uninstall the current drivers for touchpad and install in compatibility mode.


    Refer to this link:
    make the programs more compatible with this version of Windows

    http://Windows.Microsoft.com/en-in/Windows-8/older-programs-compatible-version-Windows

    If the problem persists, you can contact Sony support by using the community available in the link above.

    I hope this helps.

  • Code of the button does not work.

    Hello

    I have a box Rectangle called (Panel1_mc). And in it, there is a button named (BoardMessage1_btn). When I click on this button, the Rectange Panel must move upward. At this time the rectangle box is at the bottom of the page. The following code throws an error 1010:

    Panel1_mc. BoardMessage1_btn.addEventListener (mouse, Event.CLICK, clickSection);
    function clickSection(evtObj:MouseEvent) {}
    var Panel1Tween:TweenMax = new TweenMax (Panel1_mc, 6, {y: 450, delay: 1, ease:Strong.easeOut});})
    }

    What's wrong with this code? Help, please. Using Flash CS4 AS3.

    Kind regards.

    With the exception of the space in "Mouse event", which is probably a copy paste the problem with these forums, there is nothing wrong with the code.  So your problem likely lies elsewhere than the code itself.

  • The button does not work

    Hello

    My program is supposed to give the number of days we slept since we were born until the current date.

    But nothing happens. TKS a lot for telling me where I'm wrong.

    package {}

    import flash.display. *;

    to import flash.display.SimpleButton;

    import flash.events.MouseEvent;

    import flash.text.TextField;

    SerializableAttribute public class U1A4_Sommeil extends MovieClip {}

    public void U1A4_Sommeil (): void {}

    btnSoumettre.addEventListener (MouseEvent.CLICK, calculeSommeil);

    }

    private void calculeSommeil(event:MouseEvent):void {}

    var annee:int;

    var month: int;

    var days: int;

    var totalJours:int;

    var totalSommeil:int;

    var anneeNaissance:int;

    var anneeNow:int;

    var moisNaissance:int;

    var moisNow:int;

    var jourNaissance:int;

    var jourNow:int;

    var anneeNaissanceText:TextField = new TextField;

    var anneeNowText:TextField = new TextField;

    var moisNaissanceText:TextField = new TextField;

    var moisNowText:TextField = new TextField;

    var jourNaissanceText:TextField = new TextField;

    var jourNowText:TextField = new TextField;

    var nouvMessage:TextField = new TextField;

    YEAR = ((anneeNaissance-anneeNow) - 1) * 365;

    months = ((12-moisNaissance) + moisNow) * 30;

    days = (30 - jourNaissance) + jourNow;

    totalJours = year + month + day;

    totalSommeil = totalJours * 8;

    nouvMessage = ("days in life since birth:" + totalJours +)

    "Number of hours of sleep:"+ totalSommeil); "

    results. Text = nouvMessage;

    addChild (results);

    }

    }

    }

    Capture.JPG

    There are several errors in your code.

    1. None of the textfields that you create with the code are added to the stage.

    2. None of the created textfields have text that was

    3. results is undefined.

    4. If the results were defined as a textfield, assignment of its text to a textfield is meaningless.

    5. I don't check your math, but your calculations seem incorrect.

    to remedy, you must, at least, a textfield of entry where users can enter their date of birth.  You can then use the date class to determine the number of ms (IE, the date-time property) from 1970 until that date and use the date class to determine the number of ms from 1970 until current.

    subtract two, multiplied by a factor (that is to say, the fraction of life spent sleeping ~. 3) and convert the ms in days.

  • Delete the file as an attachment button does not work

    I have a form with a box the user can attach files. There are three buttons. To add a file to open the file to see it and the third button to delete the file that is highlighted in the drop-down list. Remove the button does not work. You see something wrong with my script?

    ADD A SCRIPT FILE

    MeetingMinutes.LogoControls.Attachments.Button1::click - (JavaScript, client)
    myDoc = event.target var;
    sFile var = "myFile" + NumericField1.rawValue;
    myDoc.importDataObject ({cName: sFile});
    myDataObject var = myDoc.getDataObject (sFile);

    sFileName var = myDataObject.path;

    ListBox1.addItem (sFileName, sFile);

    NumericField1.rawValue = NumericField1.rawValue + 1;

    OPEN THE SCRIPT FILE

    MeetingMinutes.LogoControls.Attachments.Button2::click - (JavaScript, client)
    try {}
    myDoc = event.target var;
    var sFile = ListBox1.rawValue;

    myDoc.exportDataObject ({cName: sFile, nLaunch: 2});
    }
    catch (e)
    {
    App.Alert ("Click on the file you want to open (select)," + "\n" + 'then click on the button to open the selected file' ");
    }

    REMOVE THE BUTTON SCRIPT

    MeetingMinutes.LogoControls.Attachments.Button3::click - (JavaScript, client)
    try {}
    myDoc = event.target var;
    var sFile = ListBox1.getDisplayItem (ListBox1.selectedIndex);

    If (sFile! == "") {}
    var nResponse = xfa.host.messageBox ("you are about to delete the attached highlighted file. \n\nDo you want to continue? ', 'delete an attachment ", 1, 2);
    If (nResponse == 4) {}
    myDoc.removeDataObject (sFile) + ListBox1.deleteItem (ListBox1.selectedIndex) + (NumericField1.rawValue = NumericField1.rawValue - 1);
    }
    } else {}
    xfa.host.messageBox ("no document selected. Click on the file to delete. ») ;
    }
    } catch (e) {}
    xfa.host.messageBox ("error in deleting of document");
    }

    Change var sFile = ListBox1.getDisplayItem (ListBox1.selectedIndex);

    TO

    var sFile = ListBox1.rawValue;

    Kyle

Maybe you are looking for