Scrub the timeline with slider - how to smooth?

I created a simple slider to scrub through a few images on an MC named States.  Each picture has the same MC (States) comes in a different color.

I have install the cursor help

slider.setSize (200.1);
Slider.maximum = States .totalFrames;
slider.liveDragging = true;
slider.addEventListener (Event.CHANGE, updatemc);
function updatemc(e:Event) {}
states.gotoAndStop (slider.value);
}


I would like that the trainsition from one image to another to be smooth so that there is no abrupt change when managers change.  I can easily add a shapetween between executives who creates a smooth transition that I'm looking for, but I want only the cursor to stop on the 5 key executives.  Can anyone suggest how I would achieve this either through a code mod. or something on the timeline?

Thanks in advance,

Josh

I mean acceleration. Here's what I did.

I didn't have my content in a movieclip States, it was in the main timeline, but you should be able to get the idea.

Images 1, 15, 30, 45 and 60, I put my different charts. I created interpolations between 2-14, 16-29, etc.

Then I put my scrubber and copy the following code:

Stop();
var host: MovieClip = this;
var interval: Number = 15;
relaxation of the var: number = 1.5
Slider.minimum = 0;
Slider.maximum=math.round(home.totalFrames/interval);
slider.liveDragging = true;

home.addEventListener (Event.ENTER_FRAME, handleFrame)

function handleFrame(e:Event) {}
var target: Number = slider.value * interval
var frame:Number=Math.round(target+(home.currentFrame-target)/easing)
If (Math.ABS (Frame-target)<>
Frame = target
}
home.gotoAndStop (frame)
}

Try different values for appeasement. Superior numbers and you will see fewer interpolations of. More than lower numbers.

Tags: Adobe Animate

Similar Questions

  • Controlling the timeline with Touch and ScrollTop: the combination of the two?

    Hello!

    We try to combine the two scrolling on the edge features:

    (1) scrub the timeline with scrolling (to create Parallax), and

    (2) scroll to the bottom of the page with buttons, using scrollTop

    For cleaning of the timeline, we used excellent control calendar of Tim Jaramillo with key code (found here: http://forums.adobe.com/message/5058756#5058756)

    To scroll to the bottom of the page with buttons, we found excellent Heathrowe scrollTop code (here: http://forums.adobe.com/message/4733382#4733382).

    We do not seem to combine these two methods in a way that works. In my example below, the control, the Timeline with Touch code works fine, but the scrollTop button code does not work.

    Does anyone know how to make a scrub of the timeline, combined with navigation buttons?

    Example: http://www.bartmclaughlin.com/scrollTop/stage-scroll_with_scrollTop_v1.html

    Edge project: https://www.yousendit.com/download/elNLcXl0NEhJMHVFTmNUQw

    Any help much appreciated!

    Bart mclaughlin

    I think in the btn1 and btn2 click Manager you have to scroll the scene rather than the HTML and body

    as

    SYM. $('Stage') .animate ({scrollTop: element.offset () .top}, '800'); in btn1

    and

    SYM. $('Stage') .animate ({scrollTop: element.offset () .top}, '800'); in btn2

    Hope this is useful

  • Controlling the timeline with Touch

    Hello! I use edge animated in adobe dps. I tried to control the timeline with the key (or scrolling) in the forum. Even some alternatives were considered, I have not found the perfect one. It can open so many possibilities as slideshows, Parallax, diagonal textscroll etc.

    I would like to build an extensive animation and control the scenario of scrub/shot with my finger.

    I found something that works, but it seems that directions works in adobe edge host plus. Anyone know how to fix this? Demofiles would be great.

    Here is the solution I found, which does not work on the last leg.

    http://codehandyman.blogspot.de/2011/12/Adobe-edge-animation-controlled-by.html

    And here is the result. Work on ipads in indesign dps:

    http://www.northeastmagic.com/adobeEdge/scrollbar_scrubber/test7.html

    Thank you

    Klaus

    Hey Klaus.

    Oddly, the example of codehandyman you posted don't use no events button at all, but rather slyly relies on the scroll event to control the timeline.

    I've referenced the link codehandyman, and the only change I had to do was to replace each occurrence of "this.element" with "e.currentTarget", in the Stage.scroll event. Thus, on Stage.scroll, this is the code I have (I tweaked a bit to make it more readable):

    var MonCalc = e.currentTarget.scrollLeft/(e.currentTarget.scrollWidth-e.currentTarget.clientWidth);

    var pos = Math.round (calc * sym.getDuration ());

    SYM. Stop (POS);

    The above code essentially the numbers on the scroll position, then figures this ratio depending on the length of the root timeline. This tells us when to jump to the timeline.

    You are referencing your blog link - to stop the scrolling, I had to open "xxx_edge.js" and delete this line:

    ['style', 'overflow', 'auto']

    and replace it with this:

    ['style', 'overflow-y', 'hidden'],

    ['style', 'overflow-x', 'auto']

    Example:

    www.timjaramillo.com/code/Edge/scroll_timeline

    Source:

    www.timjaramillo.com/code/Edge/_source/scroll_timeline.zip

  • controlling the timeline with the scrolling of the mouse

    Hi all

    I need control the animation of the timeline with the mouse wheel.

    How is it possible

    I tried this code but I couldn't just make it work with moving the mouse, unfortunately scrolling does not work-

    composition of ready:

    this.onMove = function (posX, posY) {}

    timelinecontrol = number (posX) * 30;

    Console.log (timelinecontrol);

    SYM. Stop (timelinecontrol);

    }

    mousemove:

    this.onMove (e.pageX, e.pageY);

    I also tried this one - http://forums.adobe.com/thread/1149792

    but did not work either

    TNX a lot!

    found the answer to this topic-

    http://forums.Adobe.com/message/5628190#5628190

    It's the DS posted by Vinay-

    Here's an example - http://www.dealsdrizzle.com/research/scroll/scroll2.html

    Source - http://www.dealsdrizzle.com/research/scroll/scroll2.zip

  • Problems of displacement of clips on the timeline with the last update

    I have problems of movement of clips on the timeline with the last update

    and the selection of the clips on the original tab

    MacBook pro 15 "retina

    work

    I use a secondary monitor

    If I chronology in the second book of doesn´t monitor, but in the first monitro works very well.

    Maybe a bug

  • Replacing the clip in the timeline with exact in and out with same clip player but different

    I have 2 external hard drives. F and H. They have the exact same files and backups of the other.  With the wire of time, by chance, on a project, I mixed some mpeg files in the timeline H: and F:. I want to make all the F:.

    Is there a way to link the clip H: to the version of F: drive instead? When I right click on the clip in the sandbox "link media" file is gray.

    I need a quick way to do this so that the point and point clips I would like to import to F: would be exactly the same in the timeline with the current H: clips in / outs.

    Untie it first; then re - link to the new version.

    But; your media running on external drives; Be careful.  Which can be abottle neck if it is not connected to high speed.  (usb for example would be bad)

  • How can I browse the timeline with my mouse wheel?

    I usually have 4 tracks in my calendar so I don't have to vertical scrolling. How can I adjust my mouse wheel to scroll horizontally through my calendar?

    In preferences/general, there is an option for scrolling the timeline.

    If you hold down the CTRL key while scrolling to happen from vertical to horizontal or v.v

  • How to reconnect the footage on the timeline with deleated track: audio or Visual?

    If I delete an audio track, then open the source I have a hard time finding a way to link the audio in sequences with reset them the points of entry and in the source bin file, I have several cuts camera roll and when to open the source file - can't seem to use the points for selected editing the thing out I'll try to get back with audio and with to set the points again and again the mounting (long sentence right?)? tried searching for an answer, landed here... J

    I'm not sure what you mean, but for re - insert either video or audio clip in the timeline panel is easy.

    1. Park the playhead on the clip in the timeline panel

    2. make sure that the track selector box is highlighted.

    3. press on 'X' to select the item.

    4. press on 'F' for match frame.

    At this point your video should appear in the monitor source with in and out already defined.

  • How can I move (drag) an item in the timeline (with training)

    I can't find a way to move (slide is perhaps a better term) a clip and everything to the ripple on the right have an equal amount.

    Example: I want to drag a clip audio 2 seconds on the right and I want the rest of the audio clips right move 2 seconds longer.  Kind of like an edition of waving, but actually spend the full clip.

    The closest method I can find is the method of clamp insert (by pressing control while dragging), but everything moves to the right by the length of the element moved not by the quantity of the item has been moved (it behaves as if you were inserting the clip in the timeline for the first time). For example, if I move a second 5 2 second clip, clips to the right spend 5 seconds to the right of not not 2 seconds desired.

    Is there a technique I'm missing?

    Or use the track Selection tool.

    -Jeff

  • First CC Audio won't slide down to the timeline with the video from the source.

    When dragging an avi video file on the timeline linked audio will not go in the audio track.

    If I try to drag just the audio in the audio track it behaves as the track is locked, even if it is not.

    Setting DV PAL sequence

    MXF files work well.
    AVI containing just audio work ok too.

    I checked 'Assign Source A1' and it now works ok.

    Do not need to do this in CS6

  • Using PowerPoint in the timeline with the animations?

    I'm doing a 8 minute video presentation. I have the audio changed and in the timeline.

    I hired someone to make me a PowerPoint presentation of 16 x 9 on the subject a month ago.

    She did a great job and I want to use some of the slides that she made.

    What she did that I knew not so far... was to make animations on slides

    with additional images.

    It looks good and I wondered (shooting high) if there is a way to bring the slide with animations in

    Premiere Pro?

    If not... I think there is a way to disassemble the PP and simply add annimation on different video tracks.

    Another way would be to use Camtasia to record animations on each slide, and then import and cut

    to the top of the video and put it on the timeline

    BUT if I can make it easier... I'd prefer that it :-)

    Thank you!

    I do not use powerpoint, but I do not have a recorded discussion link

    PowerPoint 2010 for WMV http://forums.adobe.com/message/2669100

  • Cursor of the Timeline with an arrow of left/right with a red diagonal line

    I am trying to edit a timeline in first, but the cursor turns into an arrow left/right with a red line through it.  I've never seen this before slider in CS4 and it prevents me from moving clips in the timeline panel.

    I tried to take a screenshot to show you all, but the cursor is still hidden in the final clip.

    I resorted to drawing the curson in MS Paint.

    I feel like such a *.

    I've searched high and low on Google.

    Help, please

    [IMG] http://imgur.com/Nj9ig.PNG [line]

    Try pressing the 'V' key in the timeline.

    You may have selected the time stretch cursor.  « X »

  • Navigate the timeline with buttons nested in video clips

    Usually, I use this code to navigate through the timeline of buttons:

    function onProdAClick(evt:MouseEvent):void {}
    gotoAndPlay ("prod1");
    }
    prodA_btn.addEventListener (MouseEvent.CLICK, onProdAClick);

    How d code navigation if the button is nested within two MC?  I have been using the code below.  It works very well for a button, but once I try to encode the second button (which is on the same frame and in the same MC) it gives me this error:


    1151: there is a conflict with _root definition in the internal namespace.

    WARNING: 3596: duplicate variable definition.

    var _root:MovieClip = MovieClip (root);

    function onPort1Click(event:MouseEvent):void {}
    MovieClip (root) .gotoAndPlay ("port1");    }

    port1_btn.addEventListener (MouseEvent.CLICK, onPort1Click);

    delete this line:

    var _root:MovieClip = MovieClip (root);

  • Captivate9 images only play correctly in the timeline with a simple click of the 'play' button. Images not working don't not in publication or in part mode.

    Design of a project in Captivate 9 and I have slides which have up to four images appear as audio talk about them on specific slides. My problem I have is when I single click on the play button on the timeline, images, and audio all play properly and in sync. When I select to get a glimpse of a slide or publish the file. Captivate times only the first picture on the slide, none fade in or disappearance of the first image and 2nd image doesn't appear at all. Or my other images will appear. Any suggestions or recommendations for my number is greatly appreciated.

    Tami

    When you use play Slide you do not have a real overview.

    As I suspected; you have added 3 buttons, which are a break from the slide to 1.5secs. This means that only objects that have their chronology from before these points of suspension will not be visible until you click on these buttons. You have another click box, I do not know for what reason, which suspends the slide at its end.

    Either move you the point of suspension to a location after the entry of the last image button, shortly after 40 seconds and you can get rid of that click on the box or going out the break FRO the buttons and keep the click box. Use the timing Panel to get rid of the break for the buttons if it is your choice.

  • Delete the layer and fill the empty place in the timeline with layers above

    Hello

    When I delete a layer of AE CS5.5, is there a way I can get all the other layers above him to retreat and to fill in the empty space in the timeline, without physcially having to pass them all?

    Not automatically.  But you can do this:

    Place the cursor in the timeline to the place where you first layer to begin once that everything is moved.

    Click on the layer immediately above the layer you want to delete.

    Shift-click on the upper - layer you have selected now all layers above the one to delete.

    Maj-do drag the selected layers.  They will align with the point where the cursor of the timeline.

    Once you have verified that all is well, delete this undesirable layer.

Maybe you are looking for

  • 3G data plans

    Hi, I have just been in PC World today and had my first hands with a xoom! It's much smaller than I imagined it would be! So I tried to buy it there, but resisted because I want the 3G version. Does anyone know if you will be able to have a payment p

  • Cannot access snapchat on dell using kkkkk

    I use kkkkk to access Snapchat on my dell PC, but the camera/webcam does not work. Any help would be great!

  • Slider Windows Mail

    Recent updates have caused my cursor behave strangely - a form of large ring around it that shrinks and then in the location of the cursor. then the reforms concerning every 5 sec (narrowing bullseye).  This happens whenever Windows Mail is open, any

  • 100 M175nw MFP Color LaserJet: Try to install the HP software, msg stuck like "Check 'HP LaserJet SW OSX Mavericks'..." »

    I am trying to install the complete package HP for my page printer (http://support.hp.com/us-en/drivers/selfservice/hp-laserjet-pro-100-color-mfp-m175/4208157/model/420...).  Successfully, I downloaded the software and double-clicked.  The installati

  • Access denied to the DVD player

    I put in a new DVD player, on the one hand it was not recognized, but I deleted the upper and lower filters in the registry and that worked. He seemed to be ok but had a read of a disc error and then it was not yet known - now he's here but access is