Auto Scrolling based on Mouse Movements.

I am currently working on a interactive map that I am building in flash. I need to figure out if there is a way to code something so that we can have our map zoomed in, so it is only showing a section of the map in the veiwport at a time, but when the mouse reaches the edge of the screen I want it to automatically scroll with it, up, down, over, etc. Is there any code already out there that could help?
-Spencer

You might find code if you search Google, but the basics of zooming into a section of soomething like a map involves having the map inside a container that is centered in the viewport and scaling the container instead of the map for the zooming.  That allows you to move the map around and zoom in while having the map in differrent sections.  The container stays celetered since that is where it needs to be to have the zoom stay in the center.
As far as moving the map via moving the mouse to the edges, that can be accomplsihed either by having unseen objects with mouseover lsiteners at the edges that you use to trigger movement of the map, or you establish numeric boundaries that you constantly monitor to detrmine which way to move the map if at all.  The mouseover approach is probably simpler to manage.

Similar Messages

  • Scrolling list with Mouse Move

    HI
    Can any one tell me how to scroll a list with the mouse position.
    and not the scroll bars.
    Thanks
    Jim

    I am using Flex4.
    Yes I would like to scroll a spark list.
    Thanks.

  • After web page finish, mouse movement and scroll up down very slow.

    After web page finish loading,both mouse movement and scrolling that page is very slow.
    I compare the same page on MS internet explorer and have no problem.
    p.s. I'm using intel core 2 dual on 4gb ddr3 windows vista 32bit.
    == URL of affected sites ==
    http://www.sanook.com

    Thanks for both of these answers. I am finding that I do not
    like the totally manual method all that much (but it does work).
    Using the PrintScreen-before-and-after-each-action method seems a
    little better for me. Either method requires way too much editing
    for a simple "let me show you" movie. I have moved on to version 3
    since it seems to behave a little better.
    I think it is odd how sometimes Captivate puts an action
    (like a mouse click) on a background from *two* slides previous.
    Why would it ever go backward - especially skipping over the
    previous slide to get an even older screen. If I have forced a
    screen capture, you would think it would stay with that.
    I realize that I am not using Captivate where its strengths
    seem to be (eLearning) but there must be a lot of people capturing
    demos of web-based material. Does everyone have this
    problem?

  • Rotate object based on the mouse movement

    Hi, how can I do to make the object rotate based on the direction and movement of the mouse?
    Similar to this: http://activeden.net/item/billboard-style-xml-photo-viewer/22111
    Thanks in advanced.

    Hi ,
    I created a simple sample for you. Hope that helps!
    Basically on the image elements' ($("image")) mouse move you could add this snippet -
    // insert code to be run when the mouse is moved over the object
    var img = sym.$('image');
    var offset = img.offset();
    var center_x = (offset.left) + (img.width()/2);
    var center_y = (offset.top) + (img.height()/2);
    var mouse_x = e.pageX;
    var mouse_y = e.pageY;
    var radians = Math.atan2(mouse_x - center_x, mouse_y - center_y);
    var degree = (radians * (180 / Math.PI) * -1) + 90;
    img.css('-moz-transform', 'rotate('+degree+'deg)');
    img.css('-webkit-transform', 'rotate('+degree+'deg)');
    img.css('-o-transform', 'rotate('+degree+'deg)');
    img.css('-ms-transform', 'rotate('+degree+'deg)');
    Thanks and Regards,
    Sudeshna Sarkar

  • Flash video performance poor in Firefox 3 and other newer Gecko-based browsers; fails to detect mouse movement in full-s

    Regardless of configuration, I have found Flash video
    performance on Firefox 3 to be severely sub-par. Numerous visual
    lags occur throughout a typical Youtube video as it cannot seem to
    manage to maintain a steady frame rate. When in full-screen, mouse
    movement is not detected, forcing me to click in a full-screen
    Vimeo video in order to display its controls when I should have
    only needed to move the mouse. I was informed that the technical
    explanation for this is that Flash isn't triggering MouseEvents
    other than MouseEVENT.CLICK.
    In my tests, this behavior also occurred in Flashplayers 9
    and 10 as well as with recent versions of other browsers that also
    use the Gecko rendering engine, namely Camino, Flock and Songbird,
    but not in Firefox 2. I was told by a Mozilla employee that this
    issue can only be solved by Adobe.
    This has forced me to use the Safari browser as my only
    available work-around. I implore that these issues get resolved as
    quickly as possible.

    guys, im exactly experience the same issue here.. any
    solution guys? tks in advantage..

  • Mouse Down and Mouse Move  and scroll ?

    Hi,
    Here is what I want to do:
    Whenever a user presses the mouse down and the moves the mouse, I want to synchronize the scrollbar thumb and the mouse. How is it possible?
    thanks.

    hi,
    there are 2 ways to do this depending on what you need from the mouse move
    1. To get the difference from when the mouse is pressed
    on the mousedown event your store the mouse coordinates -
    myX=   stageX   or LocalX    myY=  stageY  or LocalY 
    on the mousemove event you subtract the current co-ordinates from the saved cordinates
    myXDif = myX-currentX
    myYDif = myY-currentY
    the difference will be negative or positive you can use that figure to calculate the percentage of range and then set the scrollposition
    2. Just track the mouse
    on the mouse move calculate the percentage position of the mouse to set the scrollbars
    HorizontalScrollPostion= the Max horizontal value * (LocalX /Width)
    VerticalScrollPosition= the max vertical value * (LocalY/Height)
    David

  • Turn off vertical auto-scroll on timeline?

    When working zoomed in on some detail on the timeline, with tracks numerous enough (and large enough) to extend vertically off the top and bottom of the timeline window, FCP (5.1.4) sometimes starts trying to "help" by auto-scrolling vertically, just as I move the cursor near the top or bottom edges of the window.
    It's always unpredictable: it doesn't always happen, but when it does, it's always NOT what I want, frustrating my concentration, and requiring a manual scroll back to where I was working.
    Any way to turn that off?

    Hmm, thanks, Jerry: I feared as much.
    I am using a generic USB (HP actually) two-button mouse with a clickable scroll wheel - although of course, this auto-scrolling occurs with no buttons nor wheel clicked (nor wheel scrolled) - just when the cursor is moved towards the edges of the timeline window.

  • Text - Auto Scroll Function

    Does my iPad have an  Auto Scroll   for Safari?
    Is there a "hidden" feature that I can use for reading a text with Safari?
    An automatic scroll (activated by an command) would be a comfortable function.
    I don´t want to use an App.
    Thanks

    Tap and slide up to scroll. Tap and flick up to move faster.
    There is no way I know off to have the screen automatically scroll.
    The iPad has many security features to prevent malware attacks. One of these is called Sandboxing. This keeps each app in its place and prevents apps from altering the system resources or other apps. So no other app will provide the auto scroll functionality to Safari.
    You can make suggestions to Apple here:
    http://www.apple.com/feedback/

  • After sleep, retina MacBook Pro (Mid 2014) does not recognize usb connected mouse movement

    After sleep, retina MacBook Pro (Mid 2014, on 10.9.4) does not recognize usb connected mouse movement. I have tried a generic usb mouse and my Razer Deathadder usb mouse. Both mice work before sleep; but after sleep, the computer no longer recognizes mouse movement while still recognizing the mouse buttons when pressed. Any idea why this is occurring?

    Hello, chocotac0.  
    Thank you for visiting Apple Support Communities.
    Here are some troubleshooting steps that I would recommend when experiencing this issue.
    OS X Mavericks: Reset your computer’s PRAM
    http://support.apple.com/kb/ph14222
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    OS X Mavericks: If a USB device isn’t working
    http://support.apple.com/kb/PH13876
    Cheers,
    Jason H.

  • Auto-scrolling of list view in Finder windows sometimes doesn't work

    I've noticed a minor bug in 10.4 that doesn't seem to show up in 10.3.9, and I thought I'd comment on it here because it's mildly annoying, and I'm not sure that anyone at Apple is aware of the issue.
    My Pictures folder is pretty large -- I have over 6,000 items in it, some of which are themselves folders. I've got this folder set to list view. My typical usage pattern is to open a Finder window for my Pictures folder, start typing the first few characters of a file name, and then search from there. In 10.4.3 and later (up to and including 10.4.6 as of this writing), if the file in question is outside the viewport of the Finder window, the thumb on the scrollbar will jump to the correct location, but the actual viewport won't scroll to match; therefore, the file that gets highlighted isn't visible.
    The work-around is to manually scroll the contents of the window so that I'm "closer" to the file I'm looking for; alternately, I can type characters to get the ball rolling, and then hit the up or down arrow key a couple times (once won't do the trick) which will force the viewport to jump to the correct scroll location. Using this second method, I then have to move the selection back to the file, which is annoying since it's forcing me to use extra keystrokes.
    Interestingly enough, if I am careful and click on the scrollbar thumb without moving it too much (after typing the first few characters of the filename I'm looking for), the viewport will usually "snap to" the appropriate position. This suggests that the logic to auto-scroll the contents of a Finder window got subtly broken between Panther and Tiger. It just seems weird to me that the scrollbar thumb would jump without the viewport following suit automatically.
    This wasn't a problem in 10.3.9. I realize that we're being encouraged to use Spotlight and other search features, but since my pictures directory is already an alphabetic list view of files, why should I be forced to do a Spotlight search when I know what it is I'm after?
    Dual 2.0 GHz G5   Mac OS X (10.4.6)  

    I've been having the same problem (though I haven't looked at the console yet to verify the same exact error).
    There doesn't seem to be a situation that I can identify to cause the problem (i.e. waking from sleep mode), so it's difficult to reproduce consistently. The error seems to happen randomly. Last night I was getting the error every time I sent a single message. So I'd create and send a message, and then the next message I'd try to create or reply to, I couldn't. I'd have to quit Mail and start it again to gain functionality.
    When I do have the problem where the compose window isn't created when replying, I also can not start a new message, note, or forward a message. Basically, no new windows can pop up besides the windows that are already there in Mail. When I quit mail, every window I tried to create by replying, making a new message, or forwarding, appears in the draft folder, just before the program closes. Then, the next time I open Mail all the windows appear that I tried to create, with no text in them. Very strange. Looks like this poster has a similar problem.
    http://discussions.apple.com/thread.jspa?threadID=1197152&tstart=1020
    I'm curious if this is a bug, or something our machines just can't handle? I see that we all have very similarly spec'd PowerBooks.

  • How to auto scroll a table to last row when using Active Data Service?  11g

    Hi all,
    Has anyone got any experience with the ADF Active Data Service?
    I am using an af:table in combination with the ADF Active Data Service and I want the table to scroll to the latest row when new data arrives.
    It is basically a simple setup:
    The value attribute of my table points to a bean that extends CollectionModel and implements ActiveDataModel. This works perfectly. A soon as I receive new data in my bean, the table is automatically updated (e.g. a new row is inserted). I use JDev version: 11.1.1.3
    The problem is that I can not get the scroll bar to move down to the last row automatically when new data arrives. The auto scroll only works for the client that actually performs a submit. In other words the person that submits the new data, will see his scrollbar move down, this is because I added the following code:
    RowKeySet rowkeysset = chatTableBinding.getSelectedRowKeys();
    rowkeysset.clear();
    rowkeysset.add(getRowKey());
    AdfFacesContext.getCurrentInstance().addPartialTarget(this.chatTableBinding);
    This does not work for the clients that receive the new data via the Active data model. Apparently the active data service partially refreshes the table, but not in such a way that it sets the selected row to the last row?
    My table definition:
    <af:table value="#{pageFlowScope.chatBean.instantMessagingChatwindowBean}" var="row"
    id="t1" columnStretching="last" rows="10"
    styleClass="AFStretchWidth" autoHeightRows="10" contentDelivery="immediate"
    horizontalGridVisible="false"
    verticalGridVisible="false"
    disableColumnReordering="true" displayRow="last"
    rowSelection="single"
    binding="#{pageFlowScope.chatBean.instantMessagingChatwindowBean.chatTableBinding}"
    inlineStyle="height:80px;">
    p.s.
    The table is used to show incoming chat message.
    I am building a chat client (taskflow) in a Webcenter application. The concept is similar of that presented by Lucas Jellemain in his blogpost on building a Google Talk Client http://www.oracle.com/technetwork/articles/jellema-googletalk-094343.html

    Dan,
    This is a thanks for posting your findings. You saved me quite some time.
    <af:selectBooleanCheckbox id="showOnlyActiveSubscriptions" selected="true"
    label="Show only active services:"
    value="#{servicePortfolioBean.showOnlyActiveSubscriptions}"
    autoSubmit="true" />
    <af:table binding="#{servicePortfolioBean.serviceTable}" ...
    partialTriggers="showOnlyActiveSubscriptions">
    Of course, when I add a "ValueChangeListener" to the selectBooleanCheckbox, the PPR stops working. :( I wonder why?

  • How can I stop coalescing of mouse move/drag events in jdk1.6 ?

    Hello all,
    My application uses a [pen-based tablet|http://en.wikipedia.org/wiki/Graphics_tablet] to draw lines/curves. But the problem is: when I run my application, due to java’s default behavior of discarding the mouse events which occurs during the repaint call, the curves results in the set of joined straight lines.
    To overcome this problem, when searched over net, came across below link:
    [http://forums.sun.com/thread.jspa?messageID=10811388]
    I tried the option provided at the above URL i.e. overriding the below method of Component.java file:
    protected AWTEvent coalesceEvents(AWTEvent existingEvent,AWTEvent newEvent);
    But later found that, overriding this method worked fine for me for jdk1.5 but this solution did not work in case of jdk1.6. When reviewed the source of Component.java and EventQueue.java files in jdk1.6, found that this method is not having any implementation and simply returns “null” and the complete handling of coalescing of events occurs within EventQueue.java file’s local method which is mentioned below:
    private boolean coalesceEvent(AWTEvent e, int priority);
    As this method is part of EventQueue.java and also it is a private method, I am not finding any way to stop the coalescing of mouse move/drag events in jdk1.6.
    The main problem is that my application is purely based on jdk1.6 only.
    Can anybody help me out to solve this problem by providing any option of preventing the coalescing of mouse move/drag events in case of jdk1.6.
    Thank you.

    Look at the link I posted, you aren't double buffering correctly.
    I saw the other post you mistakenly made before you edited it. Not really a big deal, I was just wondering why you did that.

  • My auto-scroll 3rd button does not work in FireFox 3.6. It worked in previous FF versions.

    I have updated FireFox. My auto-scroll 3rd button now does not work in this version, 3.6 I have updated my mouse and checked the TOOLS "Use auto-scroll"... still it does not work.
    I need my equipment to work. PLEASE FIX

    I hate to sound like a broken record, DONE THAT ALREADY. _ _ _
    I've ALSO learned to reboot after an uninstall then manually delete any residue in said uninstalled program. I've also gone as far as REGISTER searching for program residue and deleting that WITH reboot of coarse to be sure nothing has gone wrong. _ _ _ NEXT suggestion? I suggest FireFox fix there software. _ _ _ BY-THE-WAY,... I have also gone through my mouses buttton choices for my #5 button. Everything works but the "Auto-Scroll". One tab down/up/right/left works, one page down/up/left/right works. _ _ _ I used recently tried and successfully used the Auto-Scroll in Netscape, Opera, My Browser, Ace Browser, Chrome, and 2 others that escape my memory. _ _ _ PLEASE READ and understand this. >>> It's FireFox's software that is stopping this, not my mouse or PC.

  • Use mouse movement to create parallax

    How would I create a little parallax between layers using the mouse movement rather than the scroll bar? Just trying to create the sense that there is some depth on the page,not massive movement. Sorry don't have an example to show what I mean.

    Yes, you can do that.
    After you have selected your rectangle tool, look in the options bar at the top of the window and click on the down pointing triangle next to the custom shape icon. In the  resulting dialog box click on fixed size and put in your values. Then click on your image and place your shape.
    Paulo

  • One finger scrolling option for mouse is GONE from preferences?

    The one finger scrolling option for mouse is apparently GONE from the mouse system preferences? Why do they move/hide this stuff every other system update? Grrrrr!
    I turned off the one finger scrolling option in mouse preferences a while back before my last system update to OSX 10.8.5 because it screwed me up in Photoshop/Illustrator. Recently using Chrome I found I couldn't scroll down windows now on some web pages because the scroll bar at the right doesn't show up very well. I usually use Safari and it works there so it's a Chrome problem. However, I want to turn the one-finger scrolling back on for some things from time to time. When I tried to check the box in mouse preferences, to my horror, that option appears to be gone. What?!? Help!
    *totally waiting for a simple answer that I overlooked. I hope.

    Did you look in the Zoom menu (press F10 to make the menu bar appear)?

Maybe you are looking for