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

Similar Messages

  • Hello this is the first time I have ever had a problem. I am trying to down load a movie and it keeps giving me error -50. I have signed out and back in and deleated the download and tryed again and still will not download.

    Hello this is the first time I have ever had a problem. I am trying to down load a movie and it keeps giving me error -50. I have signed out and back in and deleated the download and tryed again and still will not download.

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • What is the best set up (hardware and/or software) to store and access movies and music purchased through apple tv without using the computers storage space

    I have run out of space on my imac desktop, which only has 500GB of storage, due to the movies, music, etc. that have been purchased through iTunes and Apple TV.  I do not want to delete the purchases but need to free up space on my computer.  I am looking for the best scenario for moving the media to another source and still have access the media from Apple TV and possibly from ipads, macbooks, ps3, etc. within my house.  I have been looking at upgrading the Time Capsule to a larger capicity one and/or having a backup hard drive to the time capsule.  I would like to know what other people are doing to have these features without filling up their computer's hard drive.  Please advise.  If a media server other than the computer is needed please explain.  Thanks for your help.

    Can the time capsule be set up to back up both the computer and the external hard drive, therefore creating a second copy of both? 
    Can the external hard drive be set up to store all the media which can then be accessed by apple tv and other devises as if the media was on the computer OR will the media have to moved back to the computer's hard drive in order to be viewed on other devises?  Another way to look at this is can you set up iTunes to find the media stored on the external hard drive and access it without moving the media back to the computer?
    I realize this must be a problem for many people utilizing iTunes and Apple TV to purchase and view movies and listen to music but the solution does not appear to be easily determined.  I'm sure the first solution would be to just buy a computer with a larger hard drive but that is not the most economical.

  • Can I hook my iPhone 3 up to my tv and watch movies and videos? If so what cables do I need?

    Can I hook my iPhone 3 up to my tv and watch movies and videos? If so what cables do I need?

    I've done this before. First, I had the current acct owner call in and say it's okay for me to assume liability on the line. Next, I called in and explained that the owner already called and gave permission for me to assume the line. Notes were on the account. I was transferred to the assumption of liability dept, I accepted the terms and conditions and we were good to go. The old owner will get a final bill up until the point of transfer and you will get a new bill starting at the point of transfer.

  • My iPod touch is only holding about 20 apps and 16 songs and 3 movies and it says that it's space is full.  I thought I had at least 6gb of memory.  Is there something wrong with my iPod?

    Just curious if anyone could help.  I bought my daughter an iPod for Christmas and it's only holding about 20 apps, 16 songs and 3 movies.  I deleted all of my pictures, so no pictures.  And it continues to say that I need to delete some items, b/c there basically isn't enough free space.  I thought the iPod touch, held alot more than that and that is the reason why I bought it.  Could anyone explain if this is normal or if this has happened to them.  Any help/advice would be greatly appreciated.  Thank you in advance.
    Barbara

    You are not giving us enough information.  A singe move can easiy take more than one GB.  Ehne you click on the iPod under Devices in iTunes on the computer a colored bargraph will show the discribution of storage used on the iPod.  What does that show?  If the "other" category is greater than about 1 GB you can restore yu iPod, sometimes to factory defaults/new iPod is required, to get it to its normal of about 1/2 GB.

  • Could I connect the lap top to TV and watch movies and control the lap top from a distance?

    could I connect the Apple lap top to my TV to watch movies and control the lap top from a distance just like the Window lap top???

    Check out Apple TV.  It is a wireless interface to your TV.  It may be the best $99 investment you can make for entertainment on your TV.  It simply requires a standard $10 HDMI cable, not supplied with the Apple TV unit.  Through Apple TV, with Mavericks, you can use the TV as a standard OS X monitor or for entertainment.  Also check out the Beamer software to stream videos to it from your Mac.
    Apple TV requires a Mid 2011 or newer MacBook Air with OS X Lion v10.7.5 or later.
    If your MBA is not new enough you can use the AirParrot application but the video quality is not as high as with a newer MBA.  It also streams from iOS devices.
    http://www.apple.com/appletv/
    http://www.apple.com/appletv/airplay/
    http://store.apple.com/us/ipod/ipod-accessories/apple-tv
    http://www.apple.com/osx/whats-new/features.html#displays
    http://www.amazon.com/AmazonBasics-High-Speed-HDMI-Cable-Meters/dp/B003L1ZYYM/re f=sr_1_1?ie=UTF8&qid=1385514116&sr=8-1&keywords=hdmi+cable
    AirPlay is available on all devices running iOS 4.3 or later. Some features require the latest software. Second-generation Apple TV or later required.
    AirPlay Mirroring is available with iPhone 4s or later; iPad 2 or later; iPad mini; iPod touch (5th generation); and iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), MacBook Pro (Early 2011 or newer), and Mac Pro (Late 2013) with OS X Mountain Lion or later.

  • HT203167 How can I find my already bought and downloaded movies and audio book?

    How can I find my lready bought and downloaded moies,music and audio books?

    open itunes program, go to movies section in itunes store after logging in, on the right side there is an option for PURCHASED with a "new" in blue. select that and if they were downloaded with your apple ID, they will be there to redownload.

  • Have downloaded movies in the past and no problems. Now I have bought concerts and rent movies and after 45 minutes I lose sound and have updated quicktimeplayer and itunes is updated as per answer when reported to apple. Help.

    First time I have used this system but as per sentences above I cannot watch a rented movie or live concert that I have bought without restarting my pc?
    Before I never had this problem and starting to get frustrated with Itunes but no problems with music.
    Ron

    First time I have used this system but as per sentences above I cannot watch a rented movie or live concert that I have bought without restarting my pc?
    Before I never had this problem and starting to get frustrated with Itunes but no problems with music.
    Ron

  • Help my ipod says it has zero available space. Its a 32gb and it says its 29gb and shows zero megBytes available. Idk whats happening but my ipod is eating itself! I went from 90 photos and 30 movies and 10 apps to 19 photos 5 movies and 6 apps. ***

    This all started when i went on vacation and used the wifi the resort offered for free. After 2 days i noticed my device kept saying low memory so i kept deletig some pics and videos but nothing crazy because i knew the videos i were deleting were medium sized videos that should free up plenty space. I cant even open my apps they just close right up as soon as i press them. Im concered because my made a project on an app called splice using videos and music thru my camera roll. I dont want to lose the project. Please i need your help guys.  Email is [email protected]

    Also guys when i connect my ipod to my itunes it shows all the vids and photos i used to have plus apps. Says i have 15gb free ! Where the **** is that space? Trust me i have bRe bokes on my ipod. Nothing! Why cant i get to the bottom of this.

  • How do you move just your movies and tv shows to an external hard drive and have iTunes recognize that that is where that media is (keeping music on the internal hard drive itself and putting only movies and tv shows on an external hard drive)?

    I'm not sure about how to get iTunes to recognize that my music is in one location (on my MacBook's internal hard drive) and my movies and tv shows are in another (on an external hard drive I purchased).  I know how to make iTunes recognize that all of my iTunes files are on an external hard drive, but not only some of them.  Please help me out.  Thanks.

    While you can do that, it is not a feature of iTunes.  Put your movies on the external drive, then add them to iTunes by dragging the files to iTunes while holding the option (alt) key down so it leaves the files where they are located.  There are other ways to move them if they are already added but they can be more involved and tricky.  If it's just one or two try:  http://dougscripts.com/itunes/scripts/ss.php?sp=relocateselected

  • HT203176 magic mouse cursor will not move

    Magic Mouse cursor will not move.  Scroll works. right click works replaced batteries

    I'm so sorry but I overlooked your response in the previous post.
    I think you there are two options to try.     One;
    Reset the SMC (Systems management control)      https://support.apple.com/en-gb/HT201295 ....
    Two: You may have a problem with interference which could be from a TV set, particularly one of the new smart TVs, anything electronic you've either moved into the room or changed its position.   That could include another mouse or trackpad.
    Again, sorry.

  • I can't drag and drop movies from my hard drive onto my iPad.

    I just recently upgraded from an iPad to an iPad 2. I still have the old iPad. I have no problem dragging and dropping movies and TV shows from my external hard drive onto my old iPad, but I can't seem to do it with the iPad 2. It syncs movies and TV shows from iTunes, but I don't want to have to load everything into iTunes just to get it onto my iPad. Again, no problems doing it with the old iPad. Any suggestions? Thanks in advance.

    No I didn't - checked it, and now it works! I guess I forgot about setting that feature up when I got my first iPad. Thanks Allan!

  • HT204370 How do I authorize my computer (Dell Inspiron) to play and download movies?

    How do I authorize my Dell Inspiron to play and download movies and songs?

    Press the Alt and S keys and choose Authorize Computer.
    (75832)

  • HT1725 I rented an iTunes movie Prometheus on Sunday over AppleTV and it kep sottping after a minute or so and spinning trying to buffer.   I tried everything same thing 5 times and then I gave up 5 minutes into the movie.  My Apple TV and Netflix Movies

    What am I doing wrong?   I have hi-speed cable internet and N wireless WiFi.
    AppleTV and Netflix movies and TV work great - not buffering at all???

    There's an issue currently that a lot of us are experiencing in that we all get the error message "iTunes is currently unavailable; please try later"
    It's an issue with Apple and we're awaiting an update re this
    I've posted a topic in regards to this after having a long conversation with Apple support this morning and will be receiving a call from their tech team tomorrow to run through it further
    As it stands iTunes cannot be accessed via ATV's and nor can it be streamed via AirPlay from iTunes to the ATV
    However I can access all films/iCloud content via my Mac Mini with no issues!

  • What does err= -50 mean?  It is occurring while downloading TV episodes and renting movies in iTunes.

    I am receiving "err= -50" in iTunes while trying to download TV episodes and movie rentals from iTunes.  The downloads stop and will not resume.  Any advice?

    Unfortunately it isn't a very meaningful error in terms of diagnosing the issue.
    http://forums.macosxhints.com/archive/index.php/t-31161.html
    Error code -50 is a generic code meaning there's some sort of communication difficulty.
    There's many computers and connections between you and those movies, and between your network box and where they are on your computer.
    You could try a few general things such as rebooting the computer, or trying the download later.   Are these going to an external drive?

  • K1 - Google Android Market Missing Tabs for Movies and Music

    Am I missing something or does the Android Market on the K1 not offer Movies and Music? I have tabs for Apps and Books, but there is no way to rent movies nor buy songs through the market. As a work-around, I can go to market.android.com and rent movies and buy music, but for some reason it's not available within the Market App. Is anyone else experiencing the same thing?
    Just so you know, I have a new K1, I've run all the system updates, and I'm not rooted.
    Thanks in advance.

    That explains the versioning of the Android Market app on K1. I thought it was odd that it was 1.0.28... whereas Google support always refer to version to Android Market version 3.3+.
    I've been looking for the latest Market to get the PIN/parental controls. On a side-note/rant -- With the existing Android Market, my younger one has already made some in-app purchase charges playing with a game from GAMEVIL (BTW for K1 owners DO NOT DOWNLOAD GAMEVIL games ie AirPenguin if you have young ones. Their games make it easy to purchase items and they were not refunding it.  Apparently I'm not alone if you look at the 1 start reviews. I've already lost $$$ which I'm trying to get back... In the meantime I advise anyone with Google Wallet accounts to remove their Credit Card)
    Lenovo, please put an updated version of Android Market in your next update!!
    Builds:
    01/18/2012 - K1_A301_14_14_120109_US
    01//2012 - K1_A301_13_13_111209_US
    12/2011 - K1_A301_12_12_111109_US

Maybe you are looking for