Mouse cursor dissapears in The Pan|Zoom component

When using the Pan|Zoom component found at http://www.adobe.com/devnet/flex/samples/fig_panzoom/ inside a mx:Window in my AIR application, the custom mouse cursors (draghandOpen, draghandClosed) are not shown. The mouse cursor just dissapears when rolling over the ImageViewer.
From the Pan|Zoom code:
                case "mouseOver":
                    // cursors
                    if (_client.viewRect.containsRect(_reciever))
                        CursorManager.removeAllCursors(); 
                    } else
                        CursorManager.removeAllCursors(); 
                        cursorID = CursorManager.setCursor(_iconHandOpen);                       
This works fine when running the source at http://www.adobe.com/devnet/flex/samples/fig_panzoom/ as an AIR application. Why won't it work in a mx:window?

I found the solution here: http://butterfliesandbugs.wordpress.com/2008/09/04/how-to-get-a-custom-cursor-in-an-air-wi ndow/
The problem was fixed by changing CursorManager.setBusyCursor() to myAIRWindow.cursorManager.setBusyCursor();

Similar Messages

  • The Pan|Zoom component on a website?

    Stumbled across the Pan|Zoom and want to use it on my website, have a large scale image to place in a small area, much to what the webpage I came across does: http://www.adobe.com/devnet/flex/samples/fig_panzoom/
    Have managed produce it with my image in a SWF and Air file, although I am used to putting the swf into a html page, but then launch the page, the image doesn't show and the application does not work, as it needs the other files/code to run it.
    Am I totally off track, as I want it just in one self containing swf... I am very much a newbie to flex/flash builder 4.
    Any help would be greatful, haven't altered any of the orginal code just the image within it.
    Thanks,
    Matt

    Hi,
    I found a technique to pan/zoom somewhere on the 'net, can't remember where, but I adapted it to pan/zoom an image.
    (Flex 3)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="100%" height="100%"
        verticalScrollPolicy="off" horizontalScrollPolicy="off"
        creationComplete="initApp()" >
    <mx:Script>
        <![CDATA[
            private var draggedObject:DisplayObject;
            private var imageMatrix:Matrix;
            private function initApp():void{
                imageMatrix = img1.transform.matrix;
           private function startDragging(event:MouseEvent):void{
                draggedObject = DisplayObject(event.currentTarget);
                this.addChild(draggedObject);
                event.currentTarget.startDrag();
            private function stopDragging(event:MouseEvent):void{
                event.currentTarget.stopDrag();
            private function onMouseWheel(event:MouseEvent) : void{
                // set the origin of the transformation
                // to the current position of the mouse           
                var originX:Number = stage.mouseX;
                var originY:Number = stage.mouseY;           
                // zoom
                imageMatrix = img1.transform.matrix;
                if( event.delta > 0 ){                   
                    //limit zoom:
                    if (imageMatrix.a > 3){
                        return;
                    // zoom in
                    scaleAt( 6/5, originX, originY );
                }else{
                    //limit zoom:
                    if (imageMatrix.a < .26){
                        return;
                    // zoom out                   
                    scaleAt( 5/6, originX, originY );
            public function scaleAt(scale:Number, originX:Number, originY:Number) : void{
                // get the transformation matrix of this object
                imageMatrix = img1.transform.matrix;
                // move the object to (0/0) relative to the origin
                imageMatrix.translate( -originX, -originY );           
                // scale
                imageMatrix.scale( scale, scale );           
                // move the object back to its original position
                imageMatrix.translate( originX, originY );           
                // apply the new transformation to the object
                img1.transform.matrix = imageMatrix;
                //set the label's text:
                txtZoomLevel.text = 'Zoom Level: ' + imageMatrix.a.toPrecision(2).toString();           
        ]]>
    </mx:Script>
        <mx:Image id="img1"
            mouseDown="startDragging(event)"
            mouseUp="stopDragging(event)"
            mouseWheel="onMouseWheel(event)"
            source="assets/images/test/DSC01916.JPG"
            x="50" y="50"
            >       
            <mx:filters>
                <mx:DropShadowFilter/>
            </mx:filters>
        </mx:Image>
        <mx:Text x="15" id="txtZoomLevel" width="137"
            color="#ffffff" text="Zoom Level:" bottom="20"/>
    </mx:Application>

  • Adobe's Pan|Zoom component not fitting the content area

    I'm calling centerView method on handleLoadComplete event (ImageViewer.as) so the image will be adjusted to fit the content area when load is complete, but I'm having problems when testing this on Internet Explorer. Using Firefox it works fine, but on IE it only works after pressing Ctrl + F5.
    Do you know how can I fix this?

    Hi.
    Making it zoom and pan was a bit tricky, but I had it done
    two months ago (in july). The integration of the pan zoom with
    callout ("kind of spots on the map", the other published FIG
    componet) repositioning was bit tricky.
    I solved it with pointTransformations, but it was too
    expansive, in terms of memory. In my first trial, theyre positions
    were recalcuted as you pan and zoom.
    Now, in the version I published here
    http://www.gabriela.trindade.nom.br/?p=61
    you dont hav smooth zooming, and the callouts only are
    repositioned after your drop the map.
    I am working now on it. Im probably going to make then blurry
    or transparent while panning, but as I got this message from the
    foruns and I had promissed another guy who contacted me a (working)
    version, I decided to publish it on my blog.
    Hope it will be usefull.
    Please, be aware that not really a small application: it has
    lots of classes. Please read it all before contacting me with any
    doubts.
    Best luck :0)

  • Pan Zoom Component

    Hi,
    I wanted to know the license requirement for Pan Zoom component available in Flex store as a sample application. Is it fine to use the code in commercial applications?
    http://www.adobe.com/devnet/flex/samples/fig_panzoom.html
    Regards,
    Sarika.

    Normally, the sample code used in Adobe articles is free reign to use in commercial applications.  I have no ide if Adobe ha a formal documented license, though.

  • I have cross dissolve transitions set between images and videos, and I have the pan/zoom hold setting at "0." Despite the "0" setting, my images are static until the cross dissol

    I have cross dissolve transitions set between images and videos, and I have the pan/zoom hold setting at "0." Despite the "0" setting, my images are static until the cross dissolve is complete. I want the pan/zoom feature to start the moment the subsequent image becomes visible. Is there a solution?

    tonyproam
    I am not sure if I am zeroing in on what you seek so please clarify...on
    I want the pan/zoom feature to start the moment the subsequent image becomes visible.
    Do you mean fading in visible versus or completely visible at the end of the transition? Whatever the case, I have not
    found a scenario to fit what you are describing.
    However, here are my suggestions for you to consider...
    1. What is the alignment of the Cross Dissolve transition - Left Clip, Between Clips, or Right Clip. If Between Clips, please try Left Clip alignment.
    2. What is the duration of the Cross Dissolve transition - you could try varying the transition duration. If less than 1 second, then please read the
    details for minimum transition duration in the following
    http://atr935.blogspot.com/2014/03/pe-minimum-duration-for-transition.html
    Please let me know if any of the above worked for you in what you were seeking regarding pan and zoom effect and video transitions.
    Thank you.
    ATR

  • Why can't the Pan & Zoom Tool start with the whole frame using photos

    I've used the pan and zoom animation in Microsoft Movie Maker - and want that same ease of use in any other program (I find it doesn't do a great job of soundtrack and text/image placement) see menu options below....   I Purchased Premiere Elements after watching a short video of the pan & zoom tool - however now that I am trying to use it it falls way short.
    Is there a way to allow me to select the whole photo as the starting frame -- in the screenshot below the frame 1 will not extend to the whole photo so I start off with a cropped image.  I want the full Frame of the photo and then be able to zoom and pan in toward faces - while I can still do this with the cropped frame I loose a good deal of my photo and the context it provides.
    The Microsoft Movie Maker options - very easy                        |              Limitation of Premiere Elements 13 to start with the full photo frame

    Hi,
    You might like to ask that question in the Premiere Elements forum
    Premiere Elements
    It looks to me as though the aspect ration of the photo and the video frame are different and therefore something has to be cropped off.
    But I could be wrong
    Brian

  • How do I restore default functionality to the Pan & Zoom tool?

    When I select the Pan & Zoom tool, the image on the left is what I get - the green bars that used to appear are gone: http://imageshack.com/a/img540/240/b6b715.jpg
    What step by step procedure do I need to follow to get those green bars to appear like they used to? The green bars disappear ONLY when I place a video in the timeline.  If I place a still photo in the timeline the green bars are there like they should be.

    ReaderTorture
    From your previous threads, it would appear that you are using Premiere Elements 12 Mac. Is that correct?
    Is this a "it worked before but not now" or "it never worked before" type of issue?
    I am strictly an Elements Windows user, and, when I select Tools Menu/Pan And Zoom, the project gets taken into the Pan and Zoom workspace that looks like
    Is this what you are used to seeing when you used Tools Menu/Pan and Zoom Tool? I think that I lost you when
    you wrote
    If I place a still photo in the timeline the green bars are there like they should be.
    After I click Done to the Pan and Zoom workspace, the project goes back to the Expert workspace and the panned and zoomed photo has no green marking(s) on it. The panned and zoomed photo that goes back to the Expert workspace does have an increased duration compared to the original Timeline photo.
    Could you point out what the green bars are that you are referring to?
    I have never seen a Premiere Elements 11 or 12 Pan and Zoom workspace that looked like your screenshot.
    What were you doing in the program when this problem occurred?
    I would suggest that you make sure that
    1. You have updated the program from 12 to 12.1.
    2. You have deleted the Adobe Premiere Elements Prefs file (Users/user name/Libraries/Application Support/Adobe/Premiere Elements/12.0)
    3. If that does not work, then I would suggest a complete uninstall/reinstall of the program.
    Is the Pan and Zoom Tool the only feature that is not working and/or displaying correctly?
    We will be watching for your follow up.
    Thank you.
    ATR

  • Mouse Cursor Changing and Layered Panes

    In our program when you click on some buttons it should change the mouse cursor to a different thing depending on what button was pushed (zoom in, zoom out, etc...) However, in certain applications in our program when we are utilizing layered panes, the mouse cursor fails to change. Is there any particular reason for this? Thanks

    Here's some of the code that changes the mouse cursor:
    currentAction = e.getActionCommand();
                    Toolkit tk = Toolkit.getDefaultToolkit();
                    ImageIcon icon = (ImageIcon)datatable.get(currentAction);
                    if (icon != null)
                        setCursor( tk.createCustomCursor( icon.getImage(), new Point(0,0), currentAction)); Here's the code that sets up the layered pane:
      public void buildFramePanel(JInternalFrame owner, JComponent bg, JComponent fg){
        if (bg != null && fg != null){
          if(bg==fg){
            frame.setContentPane(bg); //lo layer
          } else{
            frame.setContentPane(bg); //lo layer
            fg.setBounds(0, 0, fg.getWidth(), fg.getHeight());
            fg.setOpaque(false);
            fg.setVisible(true);
            fg.repaint();
            frame.getLayeredPane().add(fg, JLayeredPane.PALETTE_LAYER);//hi layer
      }Is there anything going on here that would make these uncompatible? I can't really post any more code than that cause our prog is ridiculously huge.

  • Extreme mouse cursor lag when using Accessibility Zoom (Fullscreen) in Yosemite

    I have a Retina MacBook Pro running OS X Yosemite (10.10), clean installed, connected to an external Thunderbolt Display. When I zoom in using Accessibility, I experience a very prominent lag, moving my mouse cursor (either with my Magic Mouse or Magic Trackpad or the built-in Trackpad) around or when zooming out. It is especially visible when zoomed in on applications like Calendar and Mail. This never happened in Mavericks. My settings are as follows.
    I've tried creating a new user account on my Mac and the problem still persists, which leads me to believe it's a bug with Yosemite.
    Anyone else have the same problem?

    I also have the same exact problem. I have a i5 iMac Mid 2011 with an upgrade to 10.10 Yosemite connected to an external display. I like you never had this issue with Mavericks. Zoom is so painfully slow now that I had to disable it. My iMac has 12 GB of RAM and even with no apps opened, zoom is killer slow.. makes me want to punch a wall-kinda slow.
    I think it's clear to say that something is up with 10.10.. some bug.
    Apple please fix us zoomers

  • I can't change the pan / zoom duration in Premiere Elements 13

    Ok I'm getting really frustrated especially after I just watched a video tutorial which clearly shows how to do this in Premiere Elements 10 and I have JUST purchased version 13!
    What I'm not able to adjust is the speed or duration between focus frames in a pan / zoom; after it's set up.
    You are supposed to be able to go into the PAN TOOL, and either click on the pan duration, or in the In the Pan Time dialog, scrub the time duration to the desired value, or enter a value in the dialog box, OR simply adjust / drag the focus frame markers in the timeline (like in the video tutorial I watched...) to change the pan duration.  In my software at least NONE of these work.  (All these from:  Adobe Premiere Elements Help | Pan and zoom to create video-like effect)
    I can't click on the pan duration, well if I do nothing happens, I can't even get a Pan Time Dialog box; so I can't do it that way; and lastly I can't click and adjust the focus frame markers in the timeline....none of it works and I can hardly believe that this is correct...the only way that I can adjust the pan time, is to delete the effect completely and start it over...this can't be correct can it??
    Any help would be appreciated!!!

    Ok yep you are great, so I'm sorry I'm attempting to do it on video clips, not stills. 
    I was aware that the last versions of PE had similar Pan and Zoom workspaces, that's why I knew or thought I knew that my situation could be solved.
    The first link that you recommend is exactly where I got the third paragraph of my question, so I had already reviewed that and to me when you read the directive it still makes it sound like you can adjust the focus frame markers....?  (very confusing)
    The second link you sent might have helped me realize that the tool doesn't work the same way for Stills and it does for Video clips; (I really think like on the Adobe web site this difference should be markedly more clear to help with confusion; but in their defense maybe it's me being slow to understand)
    I was able to figure out some of the difference through perseverance last night, and did figure out (like your last link explains) that you can move the CTI and then add a new focus frame...BUT I still have my original question...how can you adjust the pan duration on a video clip after it's been made and you have left the pan and zoom tool like if you want to edit that timing... I think the answer is that you can't lol, I think it has to be deleted or a new focus frame added and the other deleted to adjust the timing...am I correct?
    This quote is taken from the Adobe web site one of the links you shared 
    You can work with focus frames in videos the same way that you work with focus frames for images. However, only those options that are relevant to movie clips appear in the pan and zoom tool.
    I think maybe the last sentence is attempting to explain that but it's just so ambiguous...
    Just trying to figure it out!  I do appreciate your help! 

  • My mouse cursor disappears behind the picture I'm working with!

    While I was working on a picture in Photoshop, my mouse cursor disappeared. No crosshairs (I've already tried turning the caps lock on and off). It was just gone. I moved my mouse around and it appears whenever I choose a new tool or when I'm working with the layers or when I use something from the drop down bar, the mouse is there when I don't have anything open in Photoshop--just when I have the program open--but whenever I start working on a picture or a blank canvas it disappears, like it's going underneath the canvas (I found I can still draw and erase on the canvas, I just can't tell where since the cursor is gone). This is frustrating because I use Photoshop to create my digital artwork and my drawing pad is small, so I need to know where my cursor is in order to draw accurately.
    Things I've done to resolve the problem thus far: I've downloaded the current Adobe update, I've tried adjusting my advanced properties settings on my computer, I've tried readjusting my cursor settings in my preferences, I've tried resetting my presets--thinking I might have miss clicked a combination of keys to make it happen--I've also tried closing out and going back into Photoshop, even turned my computer off, let it sit, and then turned it back on. But my mouse cursor continues to disappear underneath the canvas.
    I plan on uninstalling and then reinstalling my Photoshop software--I hope that works. Otherwise, if that doesn't, does anyone know how to fix this issue?

    Okay, so I figured this out how to resolve this issue a few days after posting my question. If you have the Nezumi Pro plugin for your Photoshop there is an option in the Nezumi settings to hide your cursor which can be easily activated by simply miss clicking F6. Once I figured this out and changed my cursor settings back to normal, my mouse reappeared.

  • Magic mouse cursor lags all the time, how can I fix this?

    I've updated to 10.10.3 and this is still happening, please fix this bug.
    Thanks

    UPDATE and additional info: This problem is still occurring.
    Apply have been completely unhelpful so far, after a second phone call, I was just told (again) to restart my MBP, unpair and repair my mouse, and insert fresh batteries. I've also done the SMC and PRAM resets several times.
    I'm using my MBP in clamshell mode connected to a BenQ GL2460 monitor. Running my MBP slightly ajar seems to temporarily help with he mouse lagginess but the problem soon reoccurs.
    I've tested my mouse on a friends earlier model non updated MBP and the mouse works fine.
    I went out a bought a Microsoft USB mouse and the same lagginess happens with it, albeit a lot worse.
    I'm currently running both mice connected via bluetooth, which actually seems to be minimising the magic mouse lagginess, but the Microsoft mouse is still very laggy. So I wonder what having two mice connected simultaneously is doing?

  • How can I get the mouse cursor to display the Link Cursor on a text field?

    I set the following properties in my code: useHandCursor =
    true yet the cursor changes to an I beam cursor when I hover over
    the text
    <mx:Text text="{_projectDetail.delegatedLead}"
    useHandCursor="true"
    click="showEmpProfile( _projectDetail.SFPDelegatedLeadEdit
    )"/>
    I also tried using buttonMode = true stil no hand cursor.
    Any ideas?

    I think you would want the "selectable" property set to
    false. That prevents the pointer from changing to an I-beam.
    However you still need to have the pointer change to a link
    pointer. Search online, "flex change cursor pointer" or something
    like that. I hope that helps.

  • Pan zoom tile

    I ran across this interesting flex application but the
    problem is it loads this huge image and you can pan and zoom on the
    huge map image. But what if you wanted to load a whole bunch of
    images when you pan left right up or down and it will load the
    corresponding image for that zoom scale you are in. Is there any
    tutorials how to accomplish this i am turning my head on this
    because this mapping pan zoom tile is a very interesting topic to
    have a tutorial on.
    Here is the link
    Pan
    zoom flex example

    I have such a beasty.
    I have been looking a the pan zoom component for some ideas.
    If you are still interested I would be interested in
    collaboration.

  • How to change the mouse cursor icon type when mouse moves out of client area ( propertysheet) WTL?

    I got stuck with an issue in property sheet .I want to load different cursor when the mouse position is within the client area and load another when moves out of the client area.
    In the porpetysheet I added four page. In the first page when I click next I am loading cursor of IDC_WAIT type and loading IDC_ARROW when the mouse moves out of the client area.
    In the page class I triggered the event for WM_MOUSEMOVE as follow:
        MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseMove)
    LRESULT OnMouseMove(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    if(TRUE == m_bIsNextBtnClicked)
    ::SetCursor(LoadCursor(NULL, IDC_WAIT));
    else
    ::SetCursor(LoadCursor(NULL, IDC_ARROW));
    return TRUE;
    This event is getting triggered and absolutely had no issue with this. Similarly I tried adding `MESSAGE_HANDLER(WM_MOUSELEAVE, OnMouseLeave)` this event making an assumption that this will get triggered if the mouse moves out of the client area,  but
    this event did not get triggered at all.If this is not the mouse event to be triggered for mouseleave which event should I trigger?
    LRESULT OnMouseLeave(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    ::SetCursor(LoadCursor(NULL, IDC_ARROW));
    return TRUE;
    Now when I click Next button , **I was actually calling a function which is taking sometime to return** . Before to this function I am loading IDC_WAIT cursor i.e., 
     `::SetCursor(LoadCursor(NULL, IDC_WAIT));` . 
    Now when move the mouse cursor on to the non-client area I want to load IDC_ARROW cursor i.e., 
        ::SetCursor(LoadCursor(NULL, IDC_ARROW)); 
    When the moves on to the non-client area I am handling the mouse event in sheet derived class as follows,
    MESSAGE_HANDLER(WM_NCMOUSEMOVE, OnNCMouseMove)
    LRESULT OnNCMouseMove(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
    ::SetCursor(LoadCursor(NULL, IDC_ARROW));
    return 0;
    This event is not getting triggered until unless the function in the Next button event is executed.
    I want both of them to be done in parallel i.e, click Next button now hover mouse on the client area, Busy icon should come and when mouse moves out of the client area then IDC_ARROW icon should come.
    LRESULT OnWizardNext()
    ::SetCursor(LoadCursor(NULL, IDC_WAIT));
    m_bIsNextBtnIsClicked = TRUE;
    BOOL bRet = MyFun();
    m_bIsNextBtnIsClicked = FALSE;
    //Until this function(MyFun()) is executed **WM_NCMOUSEMOVE**
    //event is not getting triggered.But this event should get triggered and I
    //should be able to see the change of cursor within and out of client area.
    Can anyone kindly help me to solve this issue.
    SivaV

    Hello
    sivavuyyuru,
    For this issue, I am trying to involve someone to help look into, it might take some time and as soon as we get any result, we will tell you.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for