How to resume event after prevented default action?

Let's say I have an event handler that captures an event and I call preventDefault() if the event.target is a certain component. preventDefault() is called on that component because we want to present a user with a confirmation dialog box (i.e., "Do you want to delete this item?"). If they then click YES, it continues on with the original event handler's actions. If they click NO, we don't do anything.
The closest example I could find was this http://www.darronschall.com/weblog/2008/01/creating-default-cancelable-event-handlers.cfm and just can't make any sense of it.

The event flow is not designed for pause and resume.
One way to do this if you're dispatching your own event is to re-dispatch the event with cancelable=false if you want to resume.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

Similar Messages

  • How can I adjust size of default action frames

    Hi, How can I adjust size of default action frames they are very thin.  I have tried double clicking on that part I think it is in the actions but can only adjust the drop shadows etc not the actual size of the frame ie like in the wooden frame.
    hop you can help

    I think I get what you meant now …
    The »Transform Current Layer«-step in »Frame Channel – 50 pixel« might be the one you want to edit (»Toggle dialog on/off« for example or replace it with a newly recorded different transformation).

  • How to resume sound after stopping !!

    hi,
    hoping to fine an answer of how to resume the sound after
    stoping
    for example, when i'm using stopAllsounds(); AS
    now sounds stopped
    and i wanna play it again and resume
    !!!

    that's not the best way to use sound in flash.
    it's more flexible and there are less complications if you
    remove that sound from the timeline, right click on it in the
    library, click linkage and assign it a linkage id. then create a
    sound instance:
    var s:Sound = new Sound(this);
    s.attachSound("yourlinkageid");
    // you can then use:
    s.start(); // to start your sound
    s.stop(); // to stop your sound
    // and, in fact, you can use all the sound methods and
    properties. check the flash help files.

  • I NEED A SOLUTION ON HOW TO UNLOCK THE AFTER EFFECT "Action Trailer.aep"

    I NEED A SOLUTION ON HOW TO UNLOCK THE AFTER EFFECT File, "Action Trailer.aep"

    We seriously don't have enough information to help you.
    What do you mean by "unlock"?
    My wild, shot-in-the-dark guess is that you've got some sort of template that, when you try to save, says that it's locked. If that's the case, try using "Save As" instead. If that's not your problem, refer to Todd's link and provide more info.

  • Binding default action of JTextComponent  with JDK1.2 & 1.3

    Hello,
    I have a specific text component who extends JTextField. This component must work on JDK1.3 & 1.2.
    I catch certain key events in the method processComponentKeyEvent to have the control over my component (in particular VK_BACK_SPACE, VK_LEFT and VK_RIGHT) and I don't want the default action inherit from JTextComponent to be exectued. With JDK1.2 this problem doesn't appear because I think the event is consume when it is thread by the processComponentKeyEvent and the operation of searching in the default key actions is not executed. But, with JDK1.3 they change the model of mapping key to event and the default actions are executed although the event is passing by the processComponentKeyEvent and e.consume was call. I find something who work on JDK1.3 by binding the default actions of key events with a "null" action. I do something like :
    myField.getInputMap().put(myKeyStroke, "none");
    My problem is that my components must work both with JDK1.3 & 1.2 without having two different versions of the component but the solution doesn't compile because getInputMap(KeyStroke, objectKeyToAction) doesn't exist on JDK1.2.
    I try to removeActionFromKeyStroke method but it doesn't work and in plus, the change going to apply to all text component in the application.
    There is a solution who can compile on both JDK1.3 & 1.2 ?
    Is it a good idee to use reflection to test the presence of the method and apply the correction or you have a better idee.
    Tanks a lot
    Fred

    Try using a KeyListener instead. It allows you to consume the KeyEvent, at least it does on JDK1.3.
    keyListener = new KeyAdapter()
         public void keyPressed(KeyEvent e)
              switch (e.getKeyCode())
                   case KeyEvent.VK_RIGHT:
                        e.consume();
                        // add your code here
                        break;
                   case KeyEvent.VK_LEFT:
                        e.consume();
                        // add your code here
                        break;
    };

  • How to change default action "alarm" for all signatures ?

    My question belongs to a Cisco 1712 (128 MB, IOS 12.3T, SDM 2.5 installed):
    I'm trying to change the default action "alarm" to "alarm,reset,drop" for all signatures of my custom set.
    However doing so via SDM fails. First, it appears as being done correctly, but after compiling the signatures again, the default values are back there (in the same sense, I was unable to delete signatures, works just using the CLI).
    I followed the instructions at cisco.com:
    router(config)#ip ips signature-definition
    router(config-sigdef)#signature 6130 10
    router(config-sigdef-sig)#engine
    router(config-sigdef-sig-engine)#event-action produce-alert
    router(config-sigdef-sig-engine)#event-action deny-packet-inline
    router(config-sigdef-sig-engine)#event-action reset-tcp-connection
    router(config-sigdef-sig-engine)#exit
    However ip ips signature-definition is not understood by the router, so the procedure fails.
    Can you please assist me ?

    You can use IOS command-line interface (CLI) to change signature actions for one signature or a group of signatures based on signature categories. The following example shows how to change signature action to alert, drop and reset for signature 6130 with subsig ID of 10.
    router#configure terminal
    Enter configuration commands, one per line. End with CNTL/Z.
    router(config)#ip ips signature-definition
    router(config-sigdef)#signature 6130 10
    router(config-sigdef-sig)#engine
    router(config-sigdef-sig-engine)#event-action produce-alert
    router(config-sigdef-sig-engine)#event-action deny-packet-inline
    router(config-sigdef-sig-engine)#event-action reset-tcp-connection
    router(config-sigdef-sig-engine)#exit
    router(config-sigdef-sig)#exit
    router(config-sigdef)#exit
    Do you want to accept these changes? [confirm]y
    router(config)#

  • How do I disable resuming downloads after restarting the browser?

    I did find how to prevent resuming downloads after a crash. But how can I disable resuming downloads after a manual resart of the browser?

    Hi,
    You can try to set [http://kb.mozillazine.org/index.php?title=Browser.download.manager.quitBehavior&redirect=no browser.download.manager.quitBehavior] to '''1''' in [http://kb.mozillazine.org/About:config about:config].
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''', to continue to the about:config page.
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    The [https://services.addons.mozilla.org/en-US/firefox/discovery/addon/config-descriptions/ Config Descriptions] add-on adds helpful source comments in about:config.
    [https://developer.mozilla.org/en-US/docs/Download_Manager_preferences Download Manager prefs]

  • How to get resume event in app?

    How to get resume event in app?

    Hi,
    Have a look at this
    Windows Phone Application Lifecycle
    I think you are looking about Application_Activated which is explained in detail in the above article.
    Pradeep AJ

  • How do I retrieve lost calendar events after OS 5 synch?

    how do I retrieve lost calendar events after OS 5 synch?

    You can re-download them for free from:
    App Store>Purchased

  • Acrobat X Standard Bookmarks - How do I make the Zoom Level action default to "Fit Page" when combining to one pdf?

    Acrobat X Standard Bookmarks - How do I make the Zoom Level action default to "Fit Page"?
    When I combine multiple pdf files into a single binder, Acrobat creates a bookmark for each file.  In the properties for each bookmark, there is an action created to go to the page in the document and has the zoom level at "fit width".  Question is, how do I change this apparent default zoom level to "fit page" when Acrobat creates the bookmarks when combining the pdf files?

    Is there a way to do it in one step instead of individually on each bookmark?  This gets VERY cumbersome when I have upwards of a hundred bookmarks to change.

  • How do i get that little pop up menu with all the editing choices on it that i used to get?  Is there a way to get the editing box to pop up as I make a new event instead of editing an event after i just made it ??????

    How do i get that little pop up menu with all the editing choices on it that i used to get?  Is there a way to get the editing box to pop up as I make a new event instead of editing an event after i just made it ??????

    Michal,
    iCal Help is a good place to start. Here are a couple of examples:

  • How to resume movie download after iTunes freeze ?

    how to resume movie download after iTunes freeze ?

    Try the iTunes "Store" menu -> Check for available downloads.
    If it still won't download, go here and fill out the form explaining your problem. Include as much information as possible,

  • How to resume import of large file in iTunes after breakdown ?

    iTunes crashed, with a damaged library. I messed around with the previous libraries, import of xml etc, and ended up with my music folder splitted in two folders. One is about 192 GB, the other 165 GB.
    Songs from a same album are lister over the two folders. So moving the artist folder together, wouldn't work, as they would override eachother.
    I tried to set up a new iTunes library, and import everything to consolidate. The process was stopped often by error -50, but after hitting enter, continued. Until suddently the process stopped. I'm about the letter N of my collection.
    On top of all, the music doens't appear in iTunes. I have the .xml file, .itl-file but no library itself.
    Questions:
    How to best consolidate large files in iTunes, as the process seems to crash in between ?
    How to resume after crash ? If you point to the same folder, it will double the ones already imported, right ?
    How come the library file wasn't created ?

    Peter,
    > 1) Firstly, on loading the iView it gives me a portal
    > login screen that does not let me in.(Although I am
    > already autheticated as a super_admin) However, it
    > runs perfectly as long as I have not added the POST
    > command to the iView.
    Do I understand correctly that you logged on to the portal with your browser and then tried uploading your data by using curl? In this case, you are authenticated in your browser session - but not in curl's.
    > 2) Secondly, the portal denies my URL call from the
    > cURL application telling me that "iView is not
    > compatible with your browser". Figures, since that I
    > am not using a standard browser for calling the URL!
    Well, indeed SAP portal is not compatible with curl, it's not on the PAM (sorry, couldn't resist).
    Anyway: Have you tried using the portal GUI for batch uploading data (check import/export in role "user administration)?
    Alternatively you might consider filling the user store directly (instead of using the portal / UME)? Where is your user and group information physically stored?
    Regards,
    Dominik

  • Dictionary Search Help - how to trigger an event after F4 help

    Hi,
    I been searching the web lately to find a way to trigger an event after using the F4 input help.
    Here is an example of what I would like to do:
    - I have a WD form with a inputfield in it.
    - The input field is bound to datalement "LIFNR".
    - In my context I have specified the Input Help Mode to "Dictionary Search Help"
    - And the Dictionay Search Help is set to "KRED"
    A user will the click on F4 to start the Search help, then pick a LIFNR and the WD inputfield wil be filled.
    What I want is to trigger an event when this is happening.
    Does anyone have som tips or guides for me regarding this problem?
    Thanks in advance! =)

    Hi Mathias Hagen
    Actually there is no straight way of doing this , but still you can trigger a event in F4 search help ...  below is very informative blog to trigger the F4 search help by chris
    Firing a WDA event on using a Search Help - how to do it, without an NDA
    regards
    Chinnaiya P

  • How to change default action when a device is connected to Windows 8

    The first time I connected my Android phone to Windows 8, I selected an default action (view files in Windows Explorer.)
    Now I would like to change that default. Where/how do I do that?
    Thanks,
    Jim Kay
    Jim Kay

    From http://windows.microsoft.com/en-gb/windows-8/autoplay-faq search in the start screen for Autoplay, go into settings and then click Change default settings for media or devices.
    Look through the list and find your phone (should be down at the bottom of the list) and change the action.

Maybe you are looking for

  • Inernet connection is down, Photoshop won't run

    I have Photoshop installed from my Adobe Cloud account. When I try to run my Photoshop App, it keeps wanting to connect to the Cloud, but I don't need that. I just want to run the app. My MAC is not allowing me to connect to the CLoud right now, inte

  • Endnote X3 Problems

    My endnote x3 has been unusable since yesterday (well, hadn't used it for a few weeks but was working on Snow Leopard before). Every time I open a library or even try to create one, it crashes. Have tried all other forums (official endnote and all) t

  • Real Player/XP crashed, now Zen Sleek 20GB not recogni

    Okay, I had my Zen Sleek 20 GB connected one day, put the computer in standby mode, then disconnected the device. When I turned the computer back on, I got a blue screen (first time for this year-old Dell!) saying it had recovered from a major error.

  • MM process with tcodes pl

    Hello Guru's, Iam New to MM. will anyone help me, about the various steps involved in purchasing process cycle.  from purchase to invoice making with T- codes pl.

  • Get today's date minus 30 seconds

    How can I get the current date and time minus 30 seconds. The result shoulld be of date format. Thanks.