event touchstrat and mouse

Hi, on the touchstart event and mouse quesation.

If I want to have the animation on the web and ipad, do I need two separate files.
One for the mouse event (web)

and one for the ipad (touchstart)

Thank you

Tone

Thanks for the comments, Elaine!

TonUden, some people use touchstart paired with click or mousedown to make things work for the two Office/touch and reduce delays on touch devices.

For example:

Symbol.bindElementAction (compId, NomSymbole, "${_my_symbol_name}", "mousedown touchstart", function (sym, e) {e.preventDefault ();)                     sym.playSomeAnim ();                     });

e.preventDefault () works, but in some cases, it can interfere with the scroll on a touch device.

Without e.preventDefault (), the event fires twice on a touch device. Of course, I found it's true for me.

Google has implemented a solution:

https://developers.Google.com/mobile/articles/fast_buttons

Here are a few others that people use:

http://StackOverflow.com/questions/7018919/how-to-bind-touchstart-and-click-events-but-not - meet-to-two

Each of these methods would probably need some adjustments to work within to enliven.

Personally, I decided to go with a simple 'click' event for now because it works for what I'm doing.

However, I will test the method of fastbutton Google when I get a chance.

Mario

Tags: Edge Animate

Similar Questions

  • Problem of mouse event (OVER and CLICK)

    Hello world.

    I ' n new AS3 and it was DIFFICULT to understand some simple things, I used to solve easily on AS1 and AS2...

    I have a BUTTON called BOTAO82 which, once having a MOUSE event, should show a simple TEXT on a specific area of the screen (something explaining where this button takes you to).
    This button will be two events: MOUSE_OVER and MOUSE_CLICK.
    The CATCH, I understand... Ok.
    The problem is no LONGER. How to DISPLAY the related TEXT when the mouse is over this button?

    Here is what I put on the STAGE as code:

    =============
    botao82.addEventListener (MouseEvent.MOUSE_OVER, botao82over);
    botao82.addEventListener (MouseEvent.CLICK, botao82click);

    function botao82over(event: MouseEvent)
    {
    do not know what to do here...
    }
    function botao82click(event: MouseEvent)
    {
    gotoAndPlay ("video82");
    }
    ===============

    Any ideas, please?

    PS. : The first thing I tried was putting the TEXT to display IN the configuration BUTTON, who ended up in the TEXT BOX, a button itself! Gee whiz... terrible!

    Thank you all! ;)

    So, just so that we have everything (breakdowns) SETTLED in our minds... that's the FINAL working code:

    ------
    txt82. Visible = false;

    botao82.addEventListener (MouseEvent.MOUSE_OVER, botao82over);
    botao82.addEventListener (MouseEvent.MOUSE_OUT, botao82out);
    botao82.addEventListener (MouseEvent.CLICK, botao82click);
    function botao82over(event: MouseEvent)
    {
    txt82. Visible = true;
    }
    function botao82out(event: MouseEvent)
    {
    txt82. Visible = false;
    }
    function botao82click(event: MouseEvent)
    {
    gotoAndPlay ("video82");
    }

    where txt82 and botao82 are MOVIECLIPS with these exact instance NAMES.

    And here! That's all!
    Don't forget to mark the
    «automatically declare stage instances»
    the settings for AS3!

  • Delays in the keyboard and mouse

    As I ran my Windows 7 update on 11/10/12, my keyboard and mouse are delayed intermittently.  This happens in gmail, hotmail and other web applications.  It doesn't seem to be a problem in word or excel or other programs Ms.  I uninstalled and reinstalled Firefox 16.  When I type and letters to catch up later, they are not accurate. Any suggestions?  My laptop is an Acer Aspire 5820 T.  Thank you.

    Looks like you may have a virus or other malware. Get your updated antivirus program and start safe mode.  Note that some viruses can hide from your normal antivirus program, so you really need to scan mode without failure.  To enter in Safe Mode when you turn on first, press F8 on every seconds until you get the menu, and then select Safe Mode.  Then run a complete system scan.
    -
    Microsoft has suggestions and offerings to
    http://Windows.Microsoft.com/en-us/Windows7/how-do-I-remove-a-computer-virus
    -
    Moderator Forum Keith has a few suggestions along this line to
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3
    -
    If that suits him fine. If this is not the case, use system restore to go back to an earlier date at the beginning of the problem.  To run system restore, click Start-> programs-> Accessories-> System Tools-> system restore.  Click on the box that says show more restore points.
    -
    You can check the corrupted system files.  Open an administrator command prompt and run SFC if the above does not help. Click START, and then type CMD in the search box, right-click on CMD. EXE, then click on run as administrator. Then from the command prompt, type sfc/scannow.
    -
    Finally if all else fails, you can look at the rather cryptic system event log.  To do that click on start-> Control Panel-> administration-> event viewer tools.  Once in Event Viewer system log-click and scroll entries looking for these "error" with indicator see if you can find guidance on where the problem may be.
    `
    When you get your system in good working condition, I invite you to back up your system up to an external hard drive and it puts regular periodic updates.
    -
    I hope this helps.  Good luck.

  • Kill the MouseEven.CLICK event when the mouse is held down?

    I studied games on Facebook and trying to emulate mouse events management. For example, in ChefVille, you can click on the objects and drag them around. But if you hold the mouse down you pan all the game environment and when you release the mouse button a click is NOT on the object under the mouse. In my tinkering the click event will be triggered by the release of the mouse button, no matter how many time keep the button pressed. How can I keep the trigger CLICK event if the mouse is held down for a certain period of time?

    I don't know that you can cancel a CLICK event in the middle of what is happening (click = MOUSE_DOWN followed MOUSE_UP), but you can start a timer on the MOUSE_DOWN event and its event handler to set a Boolean variable that can make your event HANDLER function used to decide or not to treat a CLICK event.

  • Wheel HSlider and mouse

    I use Flex 4 and I noticed something boring with the spark HSlider: if I click on the slider, he seems to keep the update so that even if the mouse is not over it, moving the mouse wheel upwards or downwards again causes the cursor to move to the left or to the right.

    In fact, I would prefer that my slider not responded at all to the events of wheel mouse, but preventDefault() is not working in this case. How can I get a HSlider to ignore mouse wheel events?

    Thank you

    Rob

    Sublcass HSlider and include this code

    override protected function system_mouseWheelHandler(event:MouseEvent):void
            {
                // DO NOT DELETE THIS FUNCTION
                // leave blank to remove wheel scrolling on sliders
            }
    
  • Event.Target and nested clips

    Hey all,.


    Here's my dilemma; I have a bunch of video clips in my main timeline with at least 2 nested clips inside them, MyMc.nested1.nested2 etc.
    I gave the top most video clips that rely on the main timeline instance names.
    In a document class that I created a private variable typed as an array and placed all these MC names in this table.
    I then loop through the length of the array and assigned 2 event for each instance listeners.
    Example:

    for (var i: uint = 0; i < _activities.length; i ++)
    {
    _activities [i] .buttonMode = true;
    _activities [i] .addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    _activities [i] .addEventListener (MouseEvent.MOUSE_UP, dropIt);
    }

    in the event pickup() is were my problem seems to be coming.
    In the microphone function, I have the following:

    event.target.startDrag)

    It seems to work, but only on the lowest nested movie clip... nested2
    I can use event.target.parent.parent.startDrag () and that seems to work... Except when I place an another movieclip in the second layer of the of the MyMC, if it is accidentally clicked, it will now slide on the stage.
    I tried to use event.target.mouseChildren = false, but that doesn't seem to work on the lowest nested object... nested2 as this seems to be one I'm clicking
    Is there something that miss me to say, click only the mc at a higher level, and then ignore all nested mc?

    Thank you

    Try to use: "event.currentTarget" and you can also set 'mouseChildren = false' on the clip you want to move (but what to put in a function init, not the mouse Manager).

  • How can I repair my broken Magic Keyboard and Mouse?

    My niece who is 23 years younger than broken me my Apple Magic keyboard and mouse Magic Mouse from Apple for my iMac, and all of them are not in stock because they are used on Mac computers, and I don't want to lose a keyboard and a mouse, another Mac as on my Mac Pro. She said I was due, but I SLEEP, then all of a sudden, I heard the noise. Is there warranty for the keyboard and mouse? How can I replace it with Apple because she says it's worth $ 5, and piano of plastic doll is worth $ 500 and the cheap plastic. Should I go to the Genius Bar because the keys are gone, and the mouse is broken.

    Apple does not cover such damages, regardless of warranty.

    You can buy new online through a variety of websites looking for them online, that they do not have to come from Apple.com. Stores of brick and mortar like best buy or Wal-Mart can take so if an Apple Store is not an option. There are also alternatives and sometimes a lot less expensive replacements through various vendors such as Microsoft and Targus just to name a few.

  • The keyboard and mouse bluetooth suddenly stops working

    I asked this question before using Dell, but none of the answers provided.
    The keyboard and mouse bluetooth suddenly stops working.

    Given that this only happens when I'm online I make this question to the FireFox support.
    I have the latest version of FF:

    I installed the new BIOS and Shipset, but that does not change.

    Suddenly, the keyboard and the mouse do not respond and I have to restart manually.

    R

    FredMcD said

    Keep a log of when this happens. What did you do when...

    Check the batteries.

    Hello

    Thanks for the help

    Just for information:

    I downloaded a free software called "StartupBooster" and using this to disable or remove some programs, problems with the gel (Take on wood), is gone. In addition it also speeds up boot time.

    Concerning

    R

  • Why the green light on my magic keyboard and mouse flashes green when I turn on after replacing the batteries?

    Why the green light on my magic keyboard and mouse flashes green when I turn on after replacing batteries (and not connect to the computer; battery tested good tester)?

    Simply indicates that the devices are on.

    Barry

  • MacBook Pro: Integrated keyboard and mouse not responding pluse

    I have a MacBook Pro 13 ", early 2015, installed with OS X 10.11.4.

    I use it mainly to work, with the screen closed, an external display (via Thunderport) and an Apple and change Vertical Mouse 4 - times connected via Bluetooth wireless keyboard.

    Before I get home, I open the screen, disconnect the power cord and power cord screen Thunderbolt and then close it. I leave the keyboard and Bluetooth mouse on as I leave the office.

    It works normally, but yesterday my Mac kept looking for Bluetooth devices home and would not respond to the built-in keyboard and mouse (with the exception of the switch when maintained supported 10 seconds for a forced stop). Reboot doesn't change anything and I tried to reboot with the disk (Cmd + R) utility or reset the NVRAM (Cmd + Option + P + R) and the keys did nothing. Reset SMC (Shift + Ctrl + Option + power) does not seem to do anything either.

    When I connected a keyboard Apple USB C, the keys have been recorded, but it would still find a missing mouse and go anywhere else than the screen "You are looking for a Bluetooth mouse".

    Back at work today, everything works: built-in and Bluetooth devices.

    Any suggestions?

    Update: the built-in keyboard and trackpad now don't work at all, even when Bluetooth devices are connected.

  • Internal keyboard and mouse do not randomly respond time forcing me to restart my laptop 15 times until it works again

    1. sometimes this feedback haptic on the mouse is not triggered, leaving me by clicking on the mouse, while feeling against nature - something that is not supposed to happen

    2. after I close my laptop / closing of the lid/Eve (do not turn it off) the keyboard and the mouse literally don't work - it forces me to restart my laptop several times (sometimes around 15, take me 5-10 minutes just to get my laptop to work)

    Additional details:

    -J' tested a USB keyboard and mouse with my laptop and it works perfectly, even when the internal don't - maybe it's a hardware problem?

    -I went to the apple store a few weeks ago and spoke to someone at the "Genius Bar," which really helped at all - he told me I have to restart my laptop every time I open and I should do another user account - although I was skeptical about the logic used to arrive at these "solutions" I tried them anyway , here we are with the same problem - also, I don't have to close my laptop down 15 times every time I want to use, it's ridiculous, and that's why I bought a mac rather than a pc.

    -I'm not running any software/battery intensive programs on my laptop - especially just the word and the Google Chrome, which is not a lot

    -Here is a link to a video I downloaded from google reader showing how ridiculous, it's... https://drive.Google.com/open?ID=0B4oQ4C8NCLcWTWo5aVlrbDE1QmM

    Questions

    -I don't think that a fix is quite likely, but any suggestions are welcome!

    -Can I bring to the apple store and require a replacement? I left two years of care of apple

    This is probably in the wrong category, I apologize in advance - but it is a really weird problem that I don't think has a solution. Nevertheless, thank you for the reading of my rants and seizure of your advice!

    One thing that causes the mouse further trolling, is if your CPU is completely consumed by something. This can be checked in activity monitor CPU (all processes).

    Two other things can keep your Mac to be properly adjusted:

    GPU is suspended. These are cases where the GPU is no longer and can usually be seen in the console log, with symptoms such as GPU hang or WindowServer does not.

    Disk crashes.

    For the rotation of the discs, this can be a sign of imminent death of player.

    For SSDS of spare parts, this can be caused by the accumulation of deleted blocks, used in activating do not trim for your third-party SSD drive.

    -------

    The reason of suggests that you create a new user id is as a check against the clogging of a particular userid with junk that keeps things from being reactive. [a new user id will not have it clutter accumulated, so can react differently. He is not really a solution, it's a diagnosis.]

  • Keyboard and mouse not working not

    Keyboard and mouse not working not
    I tried to use the method of matching and again, it won't work. What should I do? Devastated and frustrated

    The same problem. Qosmio all in one PC. Also tried the instructions for pairing and the light indicates successful pairing but mouse and keyboard still does not. Can someone help please...

  • After you have installed windows 10, I can't use apple wireless key board and mouse magic. any solution

    I am facing a strange situation. I used Win7 on BootCamp. Last week attempted to upgrade to Win10. After the upgrade is perfect, I could not connect to the wifi or wired internet. called the Apple support, Windows supports, no one would help you. Downgraded to Win7, after decommissioning, apple wireless key board and mouse magic does not work. Called Apple support, after nearly 90 minutes of interaction with them, ZERO, no solution result. Apple support told me that an Apple engineer will call me at my appointed time. A call came, but no one answered.

    So, today did a clean install of Win10 through BootCamp. All right, BUT I still can't use apple wireless key board and mouse magic. Can someone help me with this situation? Apple & Microsoft support engineers have failed to help out me. Thanks in advance.

    Have you installed the Boot Camp Windows Support software?

    If you do not see some Mac functionality if you are using Windows on your Mac - Apple Support

  • Bluetooth keyboard and mouse Lag

    MacBook Pro retina end of 2013

    OS X El Capitan 10.11.4

    I have finally upgraded to El Capitan in Yosemite. I never had any problems with my keyboard and mouse before. However, immediately after the upgrade I experienced lag/stutter my Magic Mouse. In addition, my keyboard is sometimes unusable. I hit the SPACEBAR and my computer will insert 5 +. I'll hit back and it will delete entire words/lines.

    I tried...

    1. restart the computer.
    2. bluetooth disconnection/connection
    3. keyboard and mouse of disconnection/connection
    4. Remove and repair the keyboard and mouse
    5. restart the computer several times :-)

    Nothing seems to work. Any ideas/suggestions?

    Article Apple > If your Apple wireless mouse, keyboard or the trackpad will not work as expected - Apple Support

    I is not correlate your measurements with those of article-, but from scratch, as if the devices were NEW seem logical

  • Desktop HP Pavillion Mini: unify dongle that connects the wireless keyboard and mouse on the HP Pavilion Mini Office

    I bought the product online at Amazon.com. I lost the unifying dongle that connects the keyboard and mouse wireless for the mini PC. No knowledge of a store selling the usb dongle online in the USA? Here is the data on the area where the mouse: model number: MG-1451 / 1452-RG, country of origin: China, identification number of the KCC: IPMPC-CRY-HPK-MG-1451 and IPMPC-CRY-HPK-RG-1452. Help, please. Thank you.

    I brought your question to the attention of a team within HP. They are likely to ask for information from you to get your information or product serial number. Please search for a private message from a contact HP identified. Also, remember not to publicly post information and series numbers.
    If you are unfamiliar with works as a private of the Forum messages, this post has instructions.
    http://h30434.www3.HP.com/T5/first-time-here-learn-how-to-post-and-more/how-to-check-your-messages/TD-p/3547355

Maybe you are looking for

  • GarageBand 10.1.2: Why do ' |. ' CH1"appear suddenly on some of my songs?

    I've seen this several times now on different tracks in different songs that I'm working on, but I don't know what are the causes it to appear or what it means - can someone help/index me? Thank you!

  • Logic pro 9 will not launch on El Capitan 10.11.2

    Hello I just installed Logic Pro 9 on my system El Captan. When I try to start it, a message I should update my logic pro to the latest version and it does not start? Is this normal or is there any problem with the system here? I really have to buy t

  • How to integrate model of custom device controller

    Hello I now live a labview including 18 sub controller model, and I am trying to run this controller on RTOS VxWorks, through customized device model. 1. when I tried to run a model simple controller (ex, a controller with 3 ~ 4 void / screw) on RTOS

  • bad signal output generations

    Dear all, I want to record and output data with two separate cards (later synchronously). For data acquisition, I use the NI PCI-6133, for the data output, the NI PCI-6733. The data collection works, but there are problems with the data output. In th

  • Outlook Express displays run-time error.

    When I try to open outlook express it shows an X and the score runtime error, program: c: Program files \outlook.exe the application requested execution in an unusual way please contact applications are supported on the team for more information.