How to make a video scroll with the mouse position

Hello again.  I asked a question on Parallax scrolling and I think it was the wrong question.  I'm looking to control a Web site with similar controls as this example:

http://www.sectionseven.com/index2.html

I want to use but also with the axes x and y.  Any ideas where to find a tutorial to find out where to do?  It should be pretty simple, but I have a problem.  Code or any help is greatly appreciated.  Thank you!

Use conditional statements to control how the object can move.  Only allow your code to movement to work if the object is not yet at its limit.  Basically something like...

function scrollmc1(event:Event):void

{

If (mc.x<>

MC.x += (mouseX - mc.x) * 0.04;

MC.y +=(mouseY-mc.y) * 0.04;

}

}

To the extent where only allowing movement occurs when the mouse is over the edge, a similar approach can be taken, something like...

function scrollmc1(event:Event):void

{

If (mc.x < upperlimit ="" &&="" (mousex=""> rightboundary: mouseY > bottomboundary) {}

MC.x += (mouseX - mc.x) * 0.04;

MC.y +=(mouseY-mc.y) * 0.04;

}

}

Tags: Adobe Animate

Similar Questions

  • Scrolling with the mouse on the pages to create black and white, lines

    When scrolling with the mouse, periodically the entire screen turns into black and white lines. Page sometimes together, sometimes just from ads pictures/side. If you continue to scroll disappear but you need to scroll to where the lines have begun, it's hard to explain, I took 1 picture of the problem but will have more photos that I can, I love how Firefox works on my computer, it has always been the best browser for my needs. I recently bought a new desktop computer, but he did so also, so I deleted and tried to launch the Explorer and Google and I don't like, so I hope that we can settle this problem.

    I don't know if it solved the problem, but he didn't precisely these days. Thank you

  • Scrolling with the mouse 5.1 BootCamp

    Scrolling with the mouse stopped working all of a sudden on BootCamp 5.1.

    Do you have any active Windows automatic updates?

  • I have a Logitech M315 keyboard and bought a new mouse Logitech M325 compatible. I cannot now typing on the keyboard, but I can scroll with the mouse.

    I have a Logitech M315 keyboard and bought a new mouse Logitech M325 compatible. I cannot now typing on the keyboard, but I can scroll with the mouse.

    Hello

    The M325 Nano-receiver allows you to connect up to 6 devices however you
    need a Logitech utility (free download) to achieve this. Check with Logitech
    Their online documentation, support and drivers, utilities and ask in their forums.

    I don't know if that keyboard and mouse are compatible.

    Software Logitech Unifying M325
    http://support.Logitech.com/product/wireless-mouse-M325#download

    Logitech
    http://www.Logitech.com/en-us/home

    Logitech - Support
    http://www.Logitech.com/en-us/support

    Logitech - Forums
    http://forums.Logitech.com/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Vertical scrolling with the mouse, Microsoft 6000

    Is that what someone has encountered a problem with the mouse to move the front/diagram of block vertically scrolling panel.  Scroll wheel on the mouse works fine for all other applications, but is very intermittent in LabVIEW 2009.  I'm on a windows 7 OS.

    I tried a series of 5000 ms and that works well.  Any ideas?

    Thank you

    Hi Marc, I reduced the problem by not including not not a software startup in msconfig setup.  Then I discovered the mouse to operate as usual, sort of method of disposal, I reduced to a pointer unwanted facility that I deselected and then ran as usual.  All is well now.

    Thank you

  • How to make a square patterned with the same race grounds match-up?

    I have a square that is filled with a pattern, he needs a stroke to so that it can be scalloped.  How to make the model of race and fill out the template match-up?pig.png

    You could have transformed one of the models. I try and first just apply a color background and outline of bost. Then apply the model again and not become one of them.

    Another option would be to expand the line and fill and combine the shapes, so that you don't have to deal with the construction of a complex.

  • How to make a background Center with the rest of the content?

    Hello world

    I was wondering if I could pick your brains! I am new to Dreamweaver, I was taking a course in this and I wanted to see how much I've learned by creating a fictitious Web site.

    I wanted to create a Web site with a background image in it and it brought. Now, I can get everything in the body toward the Center but not the image, so when I check in the browser, the background to the left image stays, while the rest of the site is moving with the browser window as it should. I tried many things to fix this problem and the fear that I have created a mess with the code! Please could someone point me in the right direction?

    I thought I'd post the code here, hope this is ok?

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    < title > Untitled Document < /title >

    < style type = "text/css" >

    {body

    background-image: url(assets/images/Business%20Men%20In%20Reception%20Col.2.jpg).

    background-repeat: no-repeat;

    background-color: #003;

    margin-left: auto;

    margin-right: auto;

    position: relative;

    width: 960px;

    }

    #header {}

    margin-left: auto;

    margin-right: auto;

    position: relative;

    width: 960px;

    }

    {#heading}

    are-family: Georgia, "Times New Roman", Times, serif;

    are-size: 36px;

    make-style: italic;

    are-variant: normal;

    margin-left: auto;

    margin-right: auto;

    }

    {#bodytext}

    are-family: Georgia, "Times New Roman", Times, serif;

    are-size: 18px;

    line-height: 25px;

    are-variant: normal;

    width: 300px;

    }

    #container {}

    width: 960px;

    position: relative;

    margin-left: auto;

    margin-right: auto;

    }

    {.rightimg}

    float: right;

    margin left: auto;

    padding-right: 40px;

    }

    #heading #navbar ul li {}

    padding: 30px;

    }

    < / style >

    < script type = "text/javascript" >

    function MM_swapImgRestore() //v3.0 {}

    var i, x = offline. MM_sr; for (i = 0; a & & I <.) Length & & (x = a [i]) & & x.oSrc; i ++) x.src = x.oSrc;

    }

    function MM_preloadImages() {//v3.0

    var d = document; If (d.images) {if(!d.MM_p) d.MM_p = new Array();

    var i, j is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)

    If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}

    }

    function MM_findObj (n, d) {//v4.01

    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}

    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}

    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];

    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);

    If (! x & & d.getElementById) x = d.getElementById (n); Return x;

    }

    function MM_swapImage() {//v3.0

    var i, j = 0, x, a = MM_swapImage.arguments; document. MM_sr = new Array; for (i = 0; i <(a.length-2); I += 3).

    If ((x = MM_findObj (a [i]))! = null) {document. MM_sr [j ++] = x; if(!x.oSrc) x.oSrc = x.src; x.SRC = a [i + 2] ;}

    }

    < /script >

    < / head >

    < body onload = "MM_preloadImages (' assets/images/home 2.jpg','assets/images/contact2.jpg','assets/images/Terms 2.jpg')" >

    < div id = "header" >

    < div id = "body" >

    "< p > < img src="assets/images/header-1.jpg "width ="920"height ="133"alt ="header"/ > < / p >

    "" "" "< p > < a href =" # "MM_swapImgRestore" onmouseover = "MM_swapImage (" self "", ' assets/images/home 2.jpg', 1) "> < img src="assets/images/home.jpg "alt ="Link to the homepage"name ="Home"width ="303"height ="32"border ="0"id ="Home"/ > < /a > < a href =" # "MM_swapImgRestore" onmouseover = "MM_swapImage (" contact us "," ' assets/images/contact2.jpg',1) "> < img src="assets/images/contact.jpg "alt ="Link to the contact page"name = width 'Contact us' = '299' height =" 32 " "" border = "0" id = "Contact us" / > < /a > < a href = "#" MM_swapImgRestore "onmouseover =" MM_swapImage ('Conditions', ", '2.jpg', 1 assets/images/words)" > < img src="assets/images/Terms.jpg" alt = "Link on the business terms" name = "Terms" width = "311" height = "32" border = "0" id = "Terms" / > < /a > < /p >

    < / div >

    < / div >

    < div id = "topic" >

    < p > welcome < img src = "assets/images/Man In suit crop.jpg" alt = "Man in a suit" width = "281" height = "220" class = "rightimg" / > < / p >

    < / div >

    < div id = "bodytext" >

    < p > here at Alexander Head & amp; Co Ltd that our goal is to provide business service levels, they used to enjoy before the time of consolidator. With the insurance market changes so quickly and more provincial brokers being supported by large organizations, levels of service personnel are disappear. We offer you this service and always offer him < br / >

    competitive premiums that you deserve. Read about < /p >

    < / div >

    < p > < img src = "Images/assets/young businessmen crop.jpg" alt = "young business people" width = "282" height = "216" class = "rightimg" / > < / p >

    < / body >

    < / html >

    Kind regards
    Dave

    Add to your body rule

    background-position: center;

    Gary

  • How can I solve very slow scrolling with the mouse when you press the command key? (MacBook Pro, Lion, no problem when using trackpad, no problem with other web browsers, other mice have the same problem)

    Scrolling speed is fine, but when you press the command key and then it becomes very slow.

    He does it with a mouse, but not with the trackpad.
    It does when the modules are disabled.
    No problem on Safari or Chrome.
    No problem on PC.

    I think it all started when I went form a MacBook with Snow Leopard on a MacBook Pro with Lion.

    Any help would be much appreciated.

    Thanks in advance!

    You use the mouse wheel to scroll?

    There are some prefs mousewheel, which control the behavior when you press the modifier keys.

    You can set the key to the action of each to 0 for normal scroll.

    See http://kb.mozillazine.org/About:config_entries #Mousewheel.

  • I cannot scroll with the mouse or keyboard

    I could not spend the last few weeks. When I scroll to the top it jumps automatically to the bottom and vice versa and willl not stay where I want it. I bought a new mouse and checked the settings I can think. and did two restorations go back before the problem started.  I have Vista Home Premium but I see people with Windows 7 have the same problem too.

    After you have everything unplugged and then plugged one at a time that I found is the keyboard, the origin of the problem of scrolling. I do not see how, but I'll take a new keyboard and we hope for the best.

  • Fuzzy sites when scrolling with the mouse

    I recently did an update of Firefox, and now when I scroll up and down with my mouse pad, the text will blur until I have stop scrolling.

    Thanks, that fixed it!

  • Drag and scroll with the mouse at the edge of adobe

    I have a big scene 2500 x 2500 and I want to use the mouse to drag and scroll left and right up and down.

    want to use the click and drag and scroll

    I can do with adobe edge

    Thank you

    Dropbox - movable

    Note: If you want the movement to be more fluid (add inertia or speed to drag) as in the example you gave. You can add thowProps of Greensock code, but you must have a subscription to access.

    GreenSock | ThrowPropsPlugin

  • Scroll with the mouse scroll button?

    When I consult my folio on the desktop with the Adobe Content Viewer, I wonder if I can use on my mouse scroll button to scroll the content when it is finished content drop-down, instead of clicking, holding and then dragging to display the scrollable content.

    If you are on Windows 8.1 and use the content viewer Adobe from the Windows Store, Yes. Not otherwise.

    Neil

  • How can I stop auto scroll when the mouse pointer is placed on the scroll bar

    When the mouse pointer is placed on the scroll bar, it goes into an auto mode, scroll upward or down very fast scrolling. Happens on file selection windowswith any application, it must be Windows.

    Too bad. It was a matter of Firefox.

  • How to get rid of the zoom line when scrolling with the mouse wheel

    In windows 7, I tried the about.about.config and the set zoom.max %; 100.Zoom.minPercent; 100
    also... set view_source.wrap_long_lines; true. This does not prevent the problem of zoom .This is - that I can do to fix, its driving me crazy

    HI MaryMyers,
    Thank you for your question, I understand you want to get rid of the zoom when you scroll.

    You can set the pref mousewheel.withcontrol.action (Mac mousewheel.with_meta.action) 1 on the topic: page config to avoid zoom if you press the Ctrl/command key.

  • How to make a straight line with the Quick Selection tool?

    Hi, I'm experimenting with Photoshop CS6 and wanted to autofocus on poles and the alley only, everything is blurry (the sky, cars, trees and higher levels). The image shows a better idea of what I mean. I am currently using the Selection tool quick to fill between the poles, then using fuzzy area, but is at - it a faster and more efficient way to do this? In addition, the quick selection tool is not perfect and shows jagged - like of the spots along the edges of the poles. I thought maybe it's posible to right field line as a box between poles and blurred in this way?WP_20130806_12_45_41_Pro[1].jpg

    You would like to use the Polygonal Lasso tool to create your form of selection. Once you use blur filters, this will create a cutting edge on the mask. Select the mask in the layers panel and then apply a Gaussian blur to the mask to smooth the edge. (or use refine edge)

Maybe you are looking for

  • M2070 Samsung scanner now doesn't work with El Capitan 10.11.5

    I have a Samsung M2070 printer laser/scanner and now, the scanner does not work with El Capitan 10.11.5, the scanner Wizard just guard closing during the scan, I uninstalled the drivers and reinstalled but makes no difference. Any ideas?

  • Satellite L505-it is repeatedly freez or collapsed suddenly

    I have problem with my machine "Several times my machine to the work stoppage or freez and don ' t make any order as ctrl + alt + delete then I shutt down my machineand then open... Please, I want to know what this problem is? fast please

  • Slatebook x 2... .connect on PC?

    So, how do you? It is 1st Android I had supplied with cables to connect to the PC. So if you know any... NUMBER OF REFERENCE... or how to BUY IT or GET IT... Thank you

  • Use the function without FN keys?

    I want to use the volume controls and mute without the use of the FN key. I went into the BIOS and there is no option to activate the action keys.I know that there is another way because I have them activated by mistake. I used F1 like mute without t

  • HR:0 x 80070641

    When I try to install anything, everything is going well until at some point, I get an error message indicating that installation of Microsoft (most of the time) Service or the Microsoft Installer (once or twice) engine is not found (most of the time