Prevent ESC key from closing movie

Hi!
Can anyone please advise me how to stop a movie closing when the ESC key is pressed.
I have a dialog function that opens another movie to confirm quit.
I would prefer it to minimize instead of simply closing with no warning.
Many Thanks
Sarah

You set 'the exitLock' to TRUE - check the docs for more details. Also, once the exitLock is true, you can implement an 'on closeRequest' handler to detect your using pressing the ESC key, or clicking the close box on the titlebar.

Similar Messages

  • Prevent Enter key from proceeding movie

    I am using this code to get the user to enter the answer 16
    in an input text field. It works but if the user hits the enterkey
    after they've gotten the question right, the playhead starts and
    moves to incorrect. This is not happening only in the testing
    environment, the published file continues when Enter is pressed.
    Can anyone help?
    keyListener = new Object();
    keyListener.onKeyUp = function() {
    if (input_txt2.text == "16" and Key.getCode() == 13) {
    //13 is key code for 'Enter'//
    gotoAndPlay("1_3_13a");
    _root.answer1 = "Correct!";
    } else if (input_txt2.text != "16" and Key.getCode() == 13)
    //13 is key code for 'Enter'//
    _root.answer1 = "Incorrect.";
    gotoAndPlay("1_3_13b");
    Key.addListener(keyListener);

    I'm not following what "…activated when the enter key
    is pressed even after the event has occurred." means. You mean that
    even after this first entry you press enter and the value of
    input_txt2.text != "16" so it is jumping to 1_3_13B?
    I think I know what you mean, maybe. Notice how you are
    setting up a listener? Well it keeps listening, it isn't a one time
    deal. It listens for a keyUp until you tell it to stop. So just
    because it works once why would you expect it to stop working? :)
    What you need to do is either inside your conditionals or
    perhaps just inside the onKeyUp function put a
    Key.removeListener(keyListener); to tell it to stop listening. If
    you are doing some kind of remediation at 1_3_13b and then want
    them to have another try, perhaps you will want to leave the
    listener or you might want to remove it and then add it back. I
    don't know the exact structure of what you are doing, but I hope
    this points you in the correct direction.

  • How to prevent Enter key from closing form?

    I have a page with a single text entry field on it. When I press enter the page closes, not saving the data (it is as if I clicked cancel). How can I change this behavior?

    Hi Daveio,
    Can you please let me know whether the Text Field that you have created is of type:
    Text Field (always submit page when entered pressed)?
    Secondly, does your page have any branches associated with it?
    Tony.

  • Prevent Ctrl-W from closing Full Acrobat Search window

    When I do a Full Acorbat Search on a folder tree, it can take quite some time for all the hits to be found, and quite some time to work through the hits.  Usually, multiple PDF files are opened as I work through the hits.  As I close the PDFs with ctrl-W, it is very easy to accidentally close the Full Acrobat Search window, which means waiting forever to re-do the search and find my way to my current spot in the list of hits.  I find it highly inappropriate for ctrl-W to close the Full Acrobat Search window in the same way that it closes PDF files.  It is especially risky in Windows 7, where the window frames are translucent and the window with the focus is highlighted in a way that makes it very difficult to distinguish from the windows without the focus.
    Is there a way to prevent ctrl-W from closing the Full Acrobat Search window?  I am using Acrobat Professional 8.

    Thanks, Dave.
    I'm finding other inconsistent behaviour that is exacerbating the problem. If I close the last PDF file with ctrl-W, the search window stays open.  If I close the last PDF file from the task bar, boom, the search window gets clobbered too, which entails another lengthy re-search.

  • How to prevent popup dialog from closing when commandbutton clicked

    Hi,
    I have a af:commandButton inside a popup dialog and the button action calls a method in backing bean. When this button is clicked I would like to run the method in backing bean and return control to the popup window. The method seem to run fine but the popup dialog closes automatically. Is there a way to prevent popup dialog from closing for this action?
    Thank you
    Kevin

    Hi Frank,
    Thanks for the link. I am not sure how to use this in my case. Following is part of what I am trying
    <af:popup ...>
    <af:dialog>
    <af:form usesUpload="true">
    <af:inputFile ..../>
    <af:commandButton text="upload" action="#{backingbean.uploadAction}"/>
    <af:outputText value="#{backingbean.filename} was successfully uploaded"/>
    </af:form>
    </af:dialog>
    </af:popup>
    When user clicks upload button I want to display a message that the file was successfully uploaded and keep the popup window open. But what happens now is once the file upload completes, the popup window closes automatically. This file upload part is not a must, user could skip doing the upload and instead input some text in a text area below (not shown in the code above). User could also just click cancel and exit the popup any time, so there is no mandatory field that I could check before closing the popup. Is there something I could do for this?
    thanks
    Edited by: user10720929 on Dec 23, 2008 10:36 PM

  • Prevent pencil tool from closing paths in illustrator cc

    How do I prevent for the pencil tool from closing my path when I'm drawing. It used to be that you hold the option key to make it close a path. But now it closes the path automatically and it's very annoying because I don't want all the paths to close. For example, if you are drawing a small semi circle, the tool as soon as it feels it's close to the beginning  point it will close it automatically. I'm trying to find and option or a button to press to prevent it from doing this.

    Hey Kris thanks for your reply, but the semi circle example was just to illustrate the problem.  I use the pencil to sketch a lot, so it's not necessarily semi circles but any object, doodle or whatever you are drawing. As soon as you get close to your starting point, illustrator feels the need to close that path. Wether I want to close it or not. I think you just pointed out the big issue here. Now, since it's decided to close a path, I have to add extra steps to get what I want. And if you are drawing many, many similar objects, it becomes impossible to use.
    Ascotto: That is also my point. The Pencil preference panel didn't change much from the previous versions except for the "Option toggles to Smooth Tool", which, by the way, thank you Adobe, for including that. Because as much as I like the new strait line feature, I also like to smooth and edit my selected paths with the option key a lot. So why didn't they include a turn OFF Close Paths option?

  • Ole web browser, prevent F8 key from firing

    Hi all,
    I have added an OLE Web Browser control to a window in PB11.2 and load a PDF document.  This works fine.
    But I want to prevent the user from pressing F8/right-clicking within the ole.  Because doing so allows the user to see the adobe reader toolbar (F8) / context-menu (right-click) which allows him to other stuff (save/print) which we dont want the user to do.
    I have been able to prevent the user from right-clicking inside the ole control via the following code (in "other" event):
    IF wparam = 516 THEN
        //disable right-click
        ole_control.POST SetFocus( )
    END IF
    However, am unable to prevent key event from being fired inside the ole control.  Does any one have any ideas/suggestions?
    Thanking you in advance.
    Cheers,

    Hi Roland,
    Thanks for your reply.
    I have decided to stop trying these work arounds (disable right-click, F8, etc)...
    instead, I now generate the pdf (as read-only) by encrypting it thus automatically disabling the save/print/etc functionality from the adobe reader.
    unfortunately, the mail button cannot be disabled (no idea how? why?).  So, I leave it here...
    Best,
    -a

  • Preventing enter key from submission-- javaScript

    Hi,
    I am using the following code for preventing enter button from submission
    It is not working for other explorer's like AOL,FIREFOX,NETSCAPE
    onkeydown="if ((event.which && event.which == 13) ||
    (event.keyCode && event.keyCode == 13))
    {document.FormName.ButtonName.click();return false;}
    else return true;"
    Can any one help me better solution than this...
    Thanks in advance...

    Double-posted:
    http://forum.java.sun.com/thread.jspa?threadID=5131933
    (And this is still a java and not javascript forum)

  • Shapeshifter themes may prevent DVD Player from playing movie DVDs

    A user on Apple Discussions reported that every time they played commercial DVDs they got an
    "Error: `nilP`"
    When trying to play DVDs on their DVD Player software. Turned out the problem was a certain theme they had installed to use with http://www.unsanity.com/ 's Shapeshifter product. At the point of the writing of this FAQ, it is unknown which themes cause this issue. However, if you get this issue, please report the problem to the theme author and Unsanity so that the problem may be fixed. Always be sure that when you install system modification utilities like these that they are up to date for the operating system you are about to update to before updating to that operating system, and checking how to uninstall them if necessary before updating the operating system.

    Reset the NVRAM/PRAM and Reset the SMC, then try again.

  • Prevent customer from closing from

    Hi all,
    I have to prevent the customer from closing a form depending on a value i want to check.
    It is not only closing the distinct form but also he may not be allowed to close forms runtime.
    How can I do this?
    Forms 6i, Oracle 9i
    Thanks,
    Silke

    Silke,
    try a key-exit trigger on the Forms level. Use exit_form in this trigger to leave a form, don't do antyhing - or raise an alert - if the user shouldn't leave the form.
    However, once this application should be moved to the Web there will be an issue that you cannot handle gracefully.
    It's when the user closes the Browser Window to close Forms (this is similar to killing the runtime engine process in client/server). In this case all uncommited changes get lost.
    Frank

  • Problem in preventing Joptionpane from closing??

    Hi all,
    I am using Joptionpane in which i am having 3 optional buttons
    clicking on one of these buttons, i should pop up another dialog with optionpane being alive(i.e. not closed). Here the problem is that as soon as i click on one of the buttons in the option pane, it is automatically gets closed.How can i prevent it from closing.It should be closed only after the popped up Dialog is closed..(like modal property)
    How can i do this..
    help me pls..

    Im not exactly a swing expert, and i dont know if thers a way to prevent a JOptionPane from closing, but you could just use a JFrame to display your dialogue.

  • Mx.core.Window - prevent user from closing the window?

    Hi,
    mx.core.Window has properties 'maximizable' &
    'minimizable', but there doesn't seem to be any 'closable'
    property. In my application I'm creating another window (apart from
    the main application window) that needs to be open the whole time
    the application is running. If I can't prevent the user from
    closing the window, then I'll have to rig up some code to
    automatically re-open it if the user closes it. I'm hoping there's
    a way to prevent the user from closing the window in the first
    place though.
    I'll much appreciate any ideas - thanks :)

    Listen for the window's closing event and call
    preventDefault().

  • Prevent Find and Replace from closing after clicking "Replace All"

    With the latest release of Dreamweaver CC (2014.1.1), there's been a minor change to the way Find and Replace works. I use Find and Replace a lot to clean up and delete code, so I might do many searches in a row to get things tidy. With the new version however, the Find and Replace window always closes after clicking "Replace All", which is very cumbersome. I need to open it up again, and it doesn't remember the text I entered to use as a replacement.
    Does anyone know if there's a way to prevent this window from closing after doing a Replace All? The previous version of Dreamweaver would keep it open and remember the text either until I changed it or I closed Find and Replace myself.
    Any pointers that would get me a little closer to the previous version's functionality would be appreciated!

    You need to do a find/change for each code individually, but it should be scriptable to take the .csv file and use it to load the find and change values. I'd try asking this over in the scripting forum: InDesign Scripting

  • How to stop frame from closing in windowClosing event ?

    I have an application which will download some files from the web.
    If the user attempts to close the applicaiton and if some files donwload action is in progress then i need to warn the user and prevent the window from closing. This is what i have done. But what happens is message box is displayed and my window is getting closed. How to get rid of this ? need your help...
    frame.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent we) {
                        if(DownloaderGUI.tableModel.isSomeThingDownloading()) {
                             JOptionPane.showMessageDialog(null,"cannot close when something is downloading");
                             return;
                        System.out.print("closing..");
                        backEndThread.setCanQuit(true);
                        cleanUp();
                        System.exit(0);
              });

    I have also done a similar things but still window is getting closed.
    public void actionPerformed(...)
    if(!canquit) {
          return;
    } else {
          System.exit(0);
    }Message was edited by:
    chaos_begins_here

  • How do i prevent the user from entering a RETURN/ENTER key into their username?

    Hello,
    i am currently trying to make a login system where the
    username will obviously enter their username.
    I have made my user input box editable and set up variables
    to accept the user input and store them into variables, along with
    error prevention for blank fields.
    However i cannot prevent the user from hitting the
    "enter"/"return" key. When i hit "enter" the user input box box
    gets larger as the type curser moves onto the next line and when
    the username is stored in a variable it is stored as "theuser
    RETURN" so when variable is passed to the next frame and is
    recalled by another text box to display the username, the user name
    has a carriage return.
    I want to prevent this, anyone got any suggestions? or know
    of any websites i can visit which will explain this to me nicely??
    Thank you

    suggestion:
    don't make the edit field editable right from the start.
    rather attach a behaviour to the field/text-sprite like:
    property mySprite, myMember
    on beginsprite me
    Sprite = me.spritenum
    -- this is the channel-number of the editbox
    myMember = mySprite.member.number
    -- this is the field/text-member
    member(myMember).editable = FALSE
    end beginsprite
    on mouseup me
    -- when i get clicked for editing, then set me editable
    member(mymember).editable = TRUE
    the keydownscript = "MyKeyhandler"
    -- this sets the keyhandler to YOUR keyhandler, see below
    end mouseup
    You would then need to have YOUR keyhandler in any mociesript
    and there you
    would block any unwished key, while editing
    on MyKeyhandler
    case the key of
    RETURN:
    stopevent;
    otherwise
    pass;
    end case
    end MyKeyhandler
    in the end you would attach a behaviour to any
    "Submit"-button (this is the
    one that "gets" the userinput" and performs further action
    according to your
    wishes and decisions)
    on mouseup
    the keydownscript = EMPTY
    -- this resets to normal
    user-ID = member("Whatever the number or name of your
    editfield
    is").text
    member("Whatever the number or name of your editfield
    is").editable
    = FALSE
    -- any further actions to make in your project
    -- to get along with the entered User-ID
    end mouseup
    something like this, I guess
    Peter

Maybe you are looking for

  • HT201263 how can i restart an iphone 5 without previous owner apple id?

    so i bought an iphone 5 from a person i dont know and have no contact with at all or getting a hold of. when i got it the iphone screen just said disabled iphone connect to itunes so i did that and now it should me until i put in my apple id but sinc

  • Error regarding File content conversion

    Hello all, I am getting the below mentioned error, com.sap.aii.af.ra.ms.api.MessagingException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fie

  • My macbook pro always runs 30°c cooler immediately after a system update

    For the two days following any system update my macbook runs about 30°c cooler than normal  (45-50°c), then after a couple of days it returns to its usual  operating temperature of 75-80°c. This has happened probably since leopard and happens exactly

  • Intel & NetBoot won't play well together

    I've got an assortment of Intel iMacs, MacBooks, & MacBook Pros. I created an image of one of the iMacs with NetRestore 3.3.4 and threw it on the server (Xserve G5, 2.0, X.3.9). Thing is: None of the Intel Macs see it, but every PPC box I've tried se

  • Syncing Everything with Chrome ? How to ?

    I just recently bought 2 smart phones for my son and I.  The HTC Sense version 5.5 on the Android version 4.3.  I want to 'sync' everything to the Chrome browser but I am having trouble with the Apple applications.  I also have Audiobooks which was p