Need to detect when the cursor is outside of the stage

I need to detect when the cursor is outside of the stage. I
have tried hitTest() but this doesn't seem to work. Someone must
have a good solution to this one.

What about putting either a thin invisible border just inside
of the frame,
or it might take 4 separate lines around the border and
detect if they
rollover that. Or check if the mouse x is less than 0,
greater than the
width, or the same for the top and bottom?
I might have to code something like this myself in the next
few days which
is why it caught my attention.
Timm
"nudnic" <[email protected]> wrote in
message
news:f2g15n$j2$[email protected]..
> Yes, I want to detect when the cursor leaves the stage
area. Someone must
> have found a good solution to this it has too many
useful applications.

Similar Messages

  • I'm trying to download a FREE app on my iphone4s and the billing information thing keeps popping up. It wasn't doing that yesterday. What should I do? Idk why I need that info when the app is free

    I'm trying to download a FREE app and the billing info thing keeps popping up. It wasn't doing that yesterday. Now I can't even download anything. What should I do ? Idk why I need thus info when the app is free

    You must have a payment method in your iTunes account, even for free content. It is used to verify your identity. See: http://support.apple.com/kb/HT2534 for information on how to create a billing method if you don't have a credit card.

  • Detecting when the movieClip finished playing

    Hi...
    Does anyone know how to detect when the movieclip is finish playing?
    i want to play an animation that is converted into a movieclip and indicate success of that level and then after the movieclip is finished playing then i want to run a function which will bring user to the next level.
    any suggestion?
    THanksss

    stage.addChild(play_mc);
    play_mc.gotoAndPlay("startPlay");
    play_mc.addEventListener( Event.ENTER_FRAME, onfrm);
    function onfrm( evnt: Event ): void
                    if (play_mc.currenFrame == play_mc.totalFrames )
                        play_mc.removeEventListener( Event.ENTER_FRAME, onfrm);
                        alpCount++;
                        splitWord(alpCount);
                        underlines();

  • I need to detect if the client can run Javascript

    My faces application uses Javascript. Upon every request from the client, I need to detect if Javascript is enabled, and if not, redirect to a help page. What is the proper way of doing this? I would like to not have to put some code on each page if possible. I'm sure this is a common problem, no? What's the best solution? Thanks in advance.

    use <noscript>

  • Detecting when the user is inserting a USB token

    Dear Forum,
    From a Java GUI application I'm trying to detect when a USB token (CrypToken from Marx) is inserted.
    When I run the program below with the USB token inserted it works fine. If I start the program and then inserts the USB token I keep getting a ProviderException.
    Any help is greatly appreciated.
    Kind regards,
    Morten Bruun
    The exception I get:
    java.security.ProviderException: Initialization failed
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:186)
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:76)
         at tryout.TestInsertToken.getProvider(TestInsertToken.java:38)
         at tryout.TestInsertToken.actionPerformed(TestInsertToken.java:47)
         at javax.swing.Timer.fireActionPerformed(Unknown Source)
         at javax.swing.Timer$DoPostEvent.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.security.ProviderException: slotListIndex is 0 but token only has 0slots
         at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:171)
         ... 12 moreMy test program looks like this:
    package tryout;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.security.Provider;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.SwingUtilities;
    import javax.swing.Timer;
    public class TestInsertToken extends JFrame implements ActionListener {
         private Timer timer;
         private JLabel label;
         TestInsertToken() {
              this.setLayout(new FlowLayout());
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              label = new JLabel("Insert token");
              this.add(label);
              timer = new Timer(1000, this);
              timer.start();
              this.setSize(300, 200);
              this.setVisible(true);
         private Provider getProvider() {
              try {
                   return new sun.security.pkcs11.SunPKCS11("pkcs11.cfg");
              } catch (Exception e) {
                   System.out.println("Got exception: " + e.getMessage());
                   e.printStackTrace();
                   return null;
         public void actionPerformed(ActionEvent e) {
              Provider provider = getProvider();
              if(provider != null) {
                   this.label.setText("USB token detected: " + provider.getName());
                   this.timer.stop();
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        new TestInsertToken();
    }Edited by: Hr.Bruun on Nov 10, 2008 2:13 PM

    Thanks for replying, Andy!
    I know that if I point my gateway at 2013, I should be fine.  You mentioned that in this article: 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/f622ff81-0d97-44d3-9051-f22c381fe188/exchange-2010-and-um-on-exchange-2013?forum=exchangesvrunifiedmessaging
    "Once the SIP connection is pointed to 2013, it will handle both the 2013 and 2010 Mailboxes in the Dial Plan" which I found and which was helpful.
    But, in the TechNet walkthrough:
    http://technet.microsoft.com/en-us/library/dn169226(v=exchg.150).aspx 
    And the checklist too:
    http://technet.microsoft.com/en-us/library/dn169228(v=exchg.150).aspx
    It's having us move the UM enabled users before we repoint the IP gateway, which is one of the final steps. Since we're just in pilot mode right now, we'd prefer to not re-point that just yet.  Do you expect it shouldn't work?  Is TechNet wrong or
    am I misreading it or missing something else?

  • Batch processing and maplisteners -detecting when the maplisteners complete

    Hi
    I have a scenario.
    Get data from data source 1 and load to cache (say datasource cache) . on this cache I have set maplistener that does some transformation puts the data to another cache. I want to start another process when data transformation is complete.
    Since I have not implemented synchronous listener, I have no way to know when the transformation is complete (as we may not know when all threads for maplistener for the datasource cache completes.
    Is there is a way to find out all the tranasformation is complete. (Please note that N record/object in a datasource may form one transformed record, hence counting may not be good ide)
    It is possible to do an update a flag in each record in datasource cache and make another thread to check if all records are transformed start the process. But I would like hear from your experience if you have any other better solution, that I can leverage from coherence itself. (in otherways, If I sense some inactivity in tranformed cache, I can safely assume that the transformation process is over). Views welcome !!!!
    regards
    Ganesan

    Hi Ganesan,
    Why don't you fire off some events from the transformation threads when they finished?
    You should be able to know how many transformation operations were to be done. When you get that many events that they completed, you are done.
    Best regards,
    Robert

  • Detecting when the app is not visible (behind start screen, etc)

    What is a good mechanism to detect when an application is behind a start screen (or loaded, but not visible?)

    use:
    CoreWindow.GetForCurrentThread().Visible and
    CoreWindow.GetForCurrentThread().VisibilityChanged;
    event
    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

  • Detecting when the iOS native player is closed using StageWebView

    I'm currently building an app that's using StageWebView to launch a live stream. I'm wondering if there's a way to detect if the user clicks done so I can dispose of the WebView.
    I don't think it's too much of a big deal since it's currently 0,0 in Dim but resource wise I'm wondering if it's the best thing to have running awaiting a video link.

    So it doesn't look like this is really possible. Short term we found that the LocationChange event fires after the Done button hit so we'll be using that as a short term solution before we build out an ANE.
    For anyone else reading this and happens to run into the issue of the Video relaunching if you close the native player while loading. We found listening for LocationChange and calling .stop() helps prevent this from happening.

  • Notification when the stage is vissible on the screen

    Hi all,
    I'm creating a JavaFx application which is a client application that interacts with an server. I created a preloader like scene which shows the progress (with a progress bar) when the application receives a broadcast from the server with server location, application initialization and when started for the first time the user must give a client name. I do not use the preloader interface because it seems to be discarded on the raspberry pi (correct me if i'm wrong, but i'm using a log file and nothing is written to the file from the preloader i created before this attempt).
    This all works fine, user can do input, and when te client starts for the second time and later, the client automaticaly logs in. When i start this client on my development machine i see the preloader scene starting from the beginning. But when i start the same application on the raspberry pi (which offcourse is a LOT slower), the preloader scene is not earlier visible then when:
    - The client receives the broadcast from the server after 4/5 seconds, because the application is then in a "wait" state.
    - Or when the broadcast is recieved quite fast, when there is user input needed,
    - When the broadcast is recieved quite fast and there is no user input needed, i rarely see the preloader scene appearing.
    I've understand that there is a main FX thread for graphical actions and there are you're own threads etc... I have the following code to start the application initialization progress when the preloader scene comes visible in my application start method:
        public void start(Stage primaryStage) {
            redirectOutputToLog();
            rootStage = primaryStage;
            rootStage.setTitle("PiDome Client");
            rootStage.setFullScreen(true);
            rootStage.initStyle(StageStyle.UNDECORATED);
            rootStage.addEventHandler(WindowEvent.WINDOW_SHOWN, new EventHandler<WindowEvent>(){
                @Override
                public void handle(WindowEvent window){
                    if(preloaderShown==false){
                        mainStage = new MainScene();
                        mainStage.setRoot(rootStage);
            ready.addListener(new ChangeListener<Boolean>(){
                @Override
                public void changed(
                    ObservableValue<? extends Boolean> ov, Boolean t, Boolean t1) {
                        if (Boolean.TRUE.equals(t1)) {
                            rootStage.setScene(mainStage.scene());
                            ////rootStage.sizeToScene();
                            Networking.removeEventListener(me);
                            ClientData.removeClientDataConnectionListener(me);
                            ClientData.removeClientLoggedInConnectionListener(me);
                            Domotics.removeDomoticsListener(me);
            preloader = new PidomeClientPreloader(rootStage);
            rootStage.show();
            preloaderShown = true;
            initialize();
    The constructor of the PidomeClientPreloader is creating the preloader scene and puts all the items on the scene as needed. When the preloader is done initializing the rootStage is shown. But as mentioned on the raspberry pi, the event WINDOW_SHOWN seems to be fired before the scene is graphical visible. I'm not using Platform.Runlater in my preloader code (only in one update function to update the progress bar from background threads).
    Is there a way to have a absolute way of determining when a scene is really visible, or is this as far as i can get because the FX thread is always running behind?
    Thnx in advance,
    John.

    There are four general causes of this issue:
    1. The computer's PRAM no longer contains a valid startup disk setting when there aren't any problems with the disk itself. This can be checked for by pressing the Option key and seeing if the drive appears.
    2. The internal drive's directory structure has become damaged. This requires usage of an alternate bootable system to perform the repair.
    3. Critical system files have been deleted. This requires usage of an alternate bootable system to reinstall them.
    4. The internal drive has died or become unplugged. This is the most likely case if the computer took a sharp impact or there are unusual sounds coming from the hard drive's location.
    (66725)

  • How to add actions only when the stage playhead passes a label/certain time?

    I have an animation that is 2 seconds long. On the 1 sec mark there is sym.stop(); and a label called 'in'. At the 2 sec mark there is another sym.stop();
    So what I want to happen is for the animation to play up until 'in', then on mouseenter for the stage have sym.play();, and on mouseleave sym.playReverse();. This will make it so that only the second half of the animation will get played on mouseenter/leave.
    My problem is that the mouseenter/leave also gets applied to the first half of the animation, not allowing the second half to animate if the user mouses over during the first half. I know this requires an if statement but I don't know how to write it. So it would be something like this: if the playhead reaches 'in', apply mouseenter/leave actions.

    yes, I am. By the way I've found the solution. Someone might find this usefull.
    In design.xml having
    <component name="ExtendedTextInput" namespace="mynamespace" category="beta" displayName="ExtendedTextInput"/>
    use this
    <component name="ExtendedTextInput" namespace="mynamespace" category="beta" displayName="ExtendedTextInput">
            <defaultAttribute name="text" value="ExtendedTextInput"/>
        </component>
    so when adding this component to design view, it will have text setted to value ('ExtendedTextInput' in this case).

  • Webcam on Envy 14 Beats only detects when the display is at a certain angle

    HP Envy 14t-1100 CTO beats edition
    Windows 7 64
    "No webcam detected" using HP MediaSmart Webcam, webcam not showing under imaging devices in device manager 
    I've had my Envy 14 Beats for about 9 months, when I got it the webcam worked just fine.  A few months ago I started noticing that when I tilted the display forwad or backward I would hear the alert noise for when a usb device is unplugged, at the time I didn't think much of it.  
    Just recently I went to use my webcam with the MediaSmart app and got the error message "No WebCam detected, try plugging in your webcam...  yada yada."  So I went to the device manager to see if there was a driver issue, to my surprise there was no "Imaging device" category.  I scanned for new hardware, nothing turned up.  While re-adjusting my sitting position on the couch I tilted the display screen slightly forward, and to my surprise the device manager list refreshed and suddenly the "Imaging Device" category was there with the webcam listed.  I let go of the display (I was applying a small amount of pressure tilting it forward) and the usb disconnect noise beeped and the webcam disappeared from the device manager...    
    After a little more pushing and prodding I was able to reproduce the effect.  If I have the display at a slightly larger then 90 degree angle (100 degrees-ish) and then put a little pressure on the display tilting towards me (going from ~100 degrees to ~97) the webcam will show up in the device manager and works like there's nothing wrong.  If I let go of the display and let it sit open unassisted I get the disconnect system noise and the webcam and imaging device categor disappear from the device manager.  I'm guessing there's a loose connection in the wiring that connects the display screen to the main body of the laptop.
    My question, then, is what can I do about it?  Obviously me holding the display in order to use my webcam doesn't fly, but am I going to have to send in my laptop for repair?  I bought the laptop in early december of 2010 so it's still under warrenty.  If I do have to send it in, will they wipe my hdd?
    Any ideas or suggestions would be very appreciated, I know this is a wierd one, but that's just my luck I suppose.
    Thanks!
    -Jake

    I have the exact same problem. And I went through it twice. The first time I had this problem, I tried to work around by tilting the display to a certain angle, but eventually the webcam stopped getting recognized and after talking to the customer care and trying system restore and even factory reset, I had to send the laptop for warranty repair. This time I noticed the problem while using Skype or Google video chat. Whenever my video is on i.e. the webcam is working, my microphone picks up a loud noise which goes away when I switch off the video. I got the same effect in HP MediaSmart webcam program too. After a couple of month like this my webcam eventually has stopped getting recognized again.
    Calling customer care would only result in suggestions of system restore/ factory reset when I know that the problem is in hardware. I believe the webcam connection is very weak to handle the display tilting. I have searched the web and have fond many similar problem reported by users.
    I paid a premium for this laptop a year ago and I am surprised to find the same problem getting reported even now! Hope HP works on remedying this shoddy piece of design!

  • Need to detect when an item is clicked in a combo box in flex 3

    Hello
    I am having a check box and a combo box whenever any selection is made in combo box (current selection may be same as previous selection), I need to select the check box.
    By default the 1st item in combo box is selected and check box is unselected. Now I want that while 1st item is clicked in combo box (although it is selected) , the check box must be selected.
    I have currently used the change event of combo box to do my task. But it is not working if I click on same item as selected item in combo box.
    Also, I thought to use close event of combo box, but that event dispatches in 4 situations out of which I can distinguish only 1 situation from DropDownEvent(for close).
    Please help me regarding this.
    I am using flex sdk 3.5
    Thanks in advance.

    You can use the Close Event to distinguish it.
    To pull out which item has been selected in the combo box, you use the code (in as3)
    ComboBox(event.target).selectedItem.label
    and through the the use of an if statement
    if (ComboBox(event.target).selectedItem.label == "labelName")
    you can distinguish the single situation from the others.

  • Need to know when the Adobe LiveCycle Classes will be Available in the DC Area

    Hi All,
    Good morning. Please does anyone know when there will be an Adobe LiveCycle Training classes in the Washington, DC Metropolitan Area. I do have two of my colleagues that will want to attend the classes.
    Thanks
    v/r
    Lucpian

    Check out: http://www.ledet.com/locations/31-washington-dc-i-street

  • Is Adobe Air SDK needed GPU information, when the game want to load the ATF file ?

    Hi, Adobe members.
    this is jonghwan lee.
    Actually I found texture load issue on a game(names samkukjangtu on korean) which is using Adobe gaming sdk.
    the game uses the ATF file for the textures on the game(actually it's related in Air SDK, I think).
    Of course, it is not problem for others GPU. but the newly launched IMG GPU( PowerVR rgx version ) makes this problem.
    I guess the SDK is using GPU information for the control some configuration
    is that right? please let me know about this issue ASAP.
    thank you.

    Well. the issue is like texture loading problem as shown below.
    <- this image is made from ATF files.
    From checking original ATF file with ATF view program, the image was all right.
    But the image is polluted like this after loaded on Texture memory.
    So, I assume that Adobe Air SDK set some configurations for loading ATF files with GPU information.
    Becasue this problem is not reproduced on the smartphone which uses the existing GPU(It means already launched GPU), but it is reproduced for the newly developed GPU(actually i'm developing with Imagination rgx version which is not really launched).
    To sum up, Please confirm that Adobe Air SDK uses GPU information for loading texture from ATF file.

  • Detection of the control Key down when application start

    I need to detect if the control key is down when my program start. This program was created with CVI 5.0. Would you tell me how to do it under WIN 9x et NT/2000. Regards

    Normally, for any other key you could just set up a callback function for your panel and set up a case statement for the EVENT_KEYPRESS value for the event type. Or do the same on the initial control that has focus. However, this does not work for the control key, because it does not generate an EVENT_KEYPRESS. Therefore, giving you no option through the normal CVI user interface capabilities.
    Now, you might be able to detect the keypress through windows messaging if you use the function InstallWinMsgCallback found in the Programmer's Toolbox library (toolbox.fp in cvi\toolslib\toolbox) and set up a callback function to look for the message that the control key generates for a window. Other than that, you might have to use some Windows SDK functions, that wait for a keypr
    ess to happen.
    Jason Foster
    Applications Engineer
    National Instruments
    www.ni.com/ask

Maybe you are looking for