Simple scroll button to control high/low excesses

I have.

I m trying to do a simple scroll up/down button to control the overflow of a div with some text inside.

My code:

MouseDown:

sym.getComposition () .getStage ().$("section_article_nosContigo_container").animate ({scrollTop: ' += 40'});

MouseUp:

sym.getComposition () .getStage ().$("section_article_nosContigo_container").animate ({scrollTop: "+= 0"});

It's original code of Heathrowe - all credit to him - but I want the buttons to scroll one continuous until I Mouseup and not little by little ('+= ' 40).

How can I do?

Thanx.

This should help

See examples here - http://www.heathrowe.com/edge/scroll_continuous/scrollcontinuous.html

Code/Description below in detail: I have all the code in Stadium > compositionComplete

Just remap the elements (content, upwards, downwards) match yours.

//////////////////Code ////////////////////////////////////////////////

Function to animate the scrolling upward using jquery animate (properties [, length] [, acceleration] [, complete])
anime 20 pixels high increments, 300 hundreds of a second, linear relaxation, repeat complete function
http://API.jQuery.com/animate/
Change the value duration/relaxation for speed

function scrollContDn() {}
SYM. $("contenu") .stop () .animate ({scrollTop:'+= 20'}, 300, "linear", scrollContDn);
}

Function animate to scroll down using jquery animate (properties [, length] [, acceleration] [, complete])
anime 20 decremented by pixels high, 300 hundreds of a second, linear relaxation, repeat complete function

function scrollContUp() {}
SYM. $("contenu") .stop () .animate ({scrollTop:'-= 20 '}, 300, "linear", scrollContUp);
}

Function to stop the scrolling

function stopScroll() {}
SYM.$("content"). Stop();
}

Event for the button/item down

SYM.$("down"). MouseDown (Function (e) {/ / mousedown})
scrollContDn();                                         call the scrollContDn function
.MouseUp (function (e)}) {/ / sequential function mouseup the string}
stopScroll();                                             call the stopScroll function
});

Events of button/item

{sym.$("up"). MouseDown (Function (e)})
scrollContUp();
{.mouseup (function (e)})
stopScroll();
});

///////////////////////////////////////////////////////////////

Download the sample here.

Tags: Edge Animate

Similar Questions

  • Volume of the Satellite A300D going low-high-low-high

    Hello

    I have a Toshiba Satellite A300D and I was listening to music through the built-in speakers and the volume seemed to go low-high-low-high (as a pulse)

    It is not that noticeable, but now I know about it.
    I'm quite get irritated with it. (I'm playing music via iTunes)

    In addition, this also happens when I use headphones, and when I play through external speakers.

    Anyone have any ideas on how to solve this problem?

    In addition,

    The button of the Player multimedia music button on the laptop itself opens Windows Media Player.

    Does anyone know how to change it to iTunes?

    Thank you!

    > I get quite irritated with it. (I'm playing music via iTunes)

    Have you noticed what playing music with MS Media Player, Win Amp or other applications?
    Do you have this notice without installation of software 3rd party such as iTunes for example?

    To be honest I have never heard of this issue, and I think that this could be linked to the gift of pre-installed software 3rd party laptop.

    > The button of the Player multimedia music button on the laptop itself opens Windows Media Player.
    > Is anyone knows how to change it to iTunes?

    As far as I know that's not possible. I use my mind Winamp buttons because I could activate this software WinAmp but it s doesn't know only not for me, it would be iTunes software supports the extension of the networks too.

  • scroll button

    scroll button is very small and scrolls too fast

    Generally run the mouse applet in the control panel. MS - MVP - Elephant Boy computers - don't panic!

  • I would handle the scroll button in the Hbox container IE

    I would handle the scroll button in the Hbox container IE...

    a button '+' and '-', when I click on '+' the page to scroll upward in a container (IE Hbox) and when I click on '-' the amine of the page down

    How should I do?

    Thank you

    When you click on your buttons, change the verticalScrollPosition and horizontalScrollPosition properties.

    http://blog.flexexamples.com/2009/11/02/auto-scrolling-the-contents-of-a-vgroup-container-au-Flex-4 /.

    http://blog.flexexamples.com/2008/11/27/auto-scrolling-a-textarea-control-in-Flex/

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Training Flex and Support Services

  • Button to control the timeline

    I am trying to use a button to control a scenario.

    IE if you click once you gotoAndPlay frame 2, the next time that you click the same button you'll be gotoAndPlay frame 22 and gotoAndPlay etc 44.

    I spent the last days of trawling the forums and a variable seems to be the answer, but I don't know if this is correct.

    I am new to AS3 for any help would be highly appreciated.

    See you soon

    Muzz

    If you create a table golding different chassis numbers and a counter variable, you can have your button do use people to keep things moving toward the new images.

    var frameNums:Array = new Array (2,22,44);

    var i: int = 0;

    btnName.addEventListener (MouseEvent.CLICK, moveToFrame);

    function moveToFrame(evt:MouseEvent):void {}

    gotoAndPlay (frameNums [i]);

    I += 1;

    }

  • How to turn off the scroll button that appears in Firefox 25.0.1

    When I use the mouse scroll button to scroll through button appears which makes the scrollbar of the browser when the mouse is moved. I would like to disable this.

    This should only occur if you click down on the scroll wheel. To lock, turn off the automatic scrolling feature. Here's how:

    the button Firefox orange (or the Tools menu) > Options > advanced

    Mini general tab, uncheck the box for "Use autoscrolling" and OK.

    Now, by clicking the scroll wheel on an empty area should do nothing.

    Success?

  • change the push button for control or indicator at run time

    Hello

    I have a lamp that can turn into power according to the value of a Boolean variable.

    There are two ways in which I can control the lamp.

    (1) manual mode in which the button must be used as control to change the value of the Boolean variable.

    2 auto mode) in which the value of the variable is changed programmatically. Push button must return to an indicator to indicate the value of the Boolean variable.

    I should be able to swith bw manual and automatic mode for the duration and the push button should switch to control and indicator respectively.

    For those who might wonder why it's necessary: there is a sign which must be controlled in manual/auto mode. in manual mode, operator will manually use the buttons as controls for updating the control variables, in auto mode, my control algorithm updates the variables, and the Organizer must be able to see which button is pressed and when. If the button should be the control of update of variables in manual mode and must be the indicator of the evolution of the variables in auto mode.

    How is that possible?

    A basic VI with three objects are attached, and the Boolean control variable is global.

    Did.

  • Unable to scroll to a control in the view

    Hello

    I work with labWindows code that was written by someone else, a few years ago.

    I'm looking the uir file and you try to view the Timer controls.

    I've had trouble finding the Timer controls, so I made a find.

    When I do a find, I get the message "cannot scrolling for a control in the view.

    I worked on again/off again with LabWindows for some years.

    I've been away from him for probably 2 years, so I'm rusty in my thinking.

    I've never seen this error before.

    So, how would I go on moving the Timer controls so that they would not visible?

    Thank you for your help.

    After rejecting the «impossible...» "message (and dialogue following 'Find') just press SHIFT + F10, to allow you to directly edit the coordinates of the control. JR

  • Stream x 360: on stream 360 x scroll button

    I just got a HP x 360 stream, and I noticed he did not scroll down/scroll upwards the buttons, but the up/down keys have ' scroll to the top "/" scroll down "written in small print on them.  How to work as scroll buttons?

    Hello

    Please hold th button Fn or CTRL key and press up or down.

    Kind regards.

  • SideWinder X 8 right click the button and the scroll button no longer works

    the scroll button works more out of nowhere and shortly after also the button right of the mouse has stopped working, is in any way I could fix it? I tried to reinstall the software for this, after the scroll button does not, which did not help.

    Hello

    1. it works on another computer?

    I suggest you to follow the steps from the link below and check if it helps.

    Method 1:  Mouse, touchpad and keyboard under Windows problems: http://windows.microsoft.com/nl-BE/windows/help/mouse-touchpad-and-keyboard-problems-in-windows

    Method 2:  The problems with the mouse button or scroll the parameters

    http://support.Microsoft.com/kb/303091

    Hope this information is useful.

  • button volume control on my bar of tasks/toolbar

    How to get and keep a button volume control on my bar of tasks/toolbar

    Right-click on the taskbar
    Click on properties
    Under system icons, select the check box next to "Volume."
    Hit apply

  • color laserjet 2840 scrolling out of control control panel

    My HP color laserjet 2840 Control Panel scroll out of control.  The screen lights up and you can read "Hewlett-Packard", but nothing else.  Under the words "Hewlett-Packard" that seems to be something (probably the word "Ready") scrolling to the right on the left of a way very fast, unreadable.  I can't print with this problem.

    I recently installed a mod for additional memory, but preinted fine a few days before, so that's not the issue.

    If anyone has any idea how I can return to the "Ready" State, I would really appreciate it.  Thank you.

    Thank you for the reset option.

    Since my original post, I called HP support and they told me that they don't support any more of my printer.  I was even unable to discuss the issue, which has been quite disappointing.

    I ended up out the memory mod that I mentioned in my post and the screen of the printer stop scrolling.  I had the feeling that it was the question, because it was the only variable, but it was the good mod, so I wasn't sure.

    In the meantime, I was forced to buy a new printer because I needed one and now I have an extra.

  • I imported the images in my lightroom library catalog.  All the images are numbered 001, 002, 003, etc. and downloaded in order.  I want to make a collection of web.  I clicked on the tap WEB and then clicked on the button "Import" in the lower left.  All

    I imported the images in my lightroom library catalog.  All the images are numbered 001, 002, 003, etc. and downloaded in order.

    I want to make a collection of web.  I clicked on the WEB site tab and then click on the button "Import" in the lower left.  All the images changed position.  Anyone know what I did wrong?

    Hi Peter,.

    If some how changed the order sorted, you can go back sorting to 'Added A order' in the toolbar.

    or, choose all the photos and click the view menu and sort to choose the sort order.

    Also, here is the tutorial link to learn more about creating web gallery in Lightroom:

    https://helpx.Adobe.com/Lightroom/help/creating-web-galleries-basic-workflow.html

    Kind regards

    Claes

  • Master Volume Control / Mute button that controls the audio files on the entire Folio?

    Hi, is there is no way to create a Master Volume Control / Mute button that controls the audio files on the entire Folio?  We have individual pages with noise when the page loads and there is a mute option for these on each individual page to help

    There is no way to toggle all the sound elements through the application.

    Neil

  • 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

Maybe you are looking for