Make a Tween always play in reverse?

I'm using the native Tween class and have a several tweens which make a button, when clicked, fly up into the corner of the screen. Then some time later yoyo() that tween to bring the button back to where it started.
The problem is that we have a replay button that replays from certain points on the timeline.
I want that if on the "screen" (not flash screens just our term for the range of frames that correspond to the timeline between those certain replay points) the user clicks replay that the button will always play the tween backward, i.e., flyout from the upper corner back to the "start" point.
Since there is no reverse() method or playInReverse() the only choice seems to be yoyo(). And one would think that fforward() followed by a yoyo() would make it always play backward. But I can't make it seem to work.
So my question is, "Is there a way to ensure that a tween, regardless of how it last player or is still playing, can be made to go to the end and then play backwards?"
Thanks.

I think you're right, Rothrock. What bothers me the most about using yoyo(); is that if you call it before the tween has ended, the new beginning position is the current position. That is the tween has effectively truncated off the ending bit, which it had not yet reached. And also, because it is just switching the beginning and end positions, the easing used is also backwards. If it originally eased in, then in reverse, it should be an ease out, but this is not the case.
If you are using a frame-based tween instead of by seconds, you might be able to make use of the prevFrame() method:
myTween.stop();
onEnterFrame = function(){
     myTween.prevFrame();
     if(myTween.position == 0){
          trace("Reverse complete!");
          delete onEnterFrame;
Of course you could also use a setInterval if you don't want to involve using a MovieClip's onEnterFrame event handler. But anyway, I think this method is nice because you are essentially scrubbing the Tween like a timeline, preserving all of its properties, including the easing.

Similar Messages

  • Make a clip play in reverse?

    I can't find it on the website...I have this SUPER funny fall of this person...why we all laugh at that?....WELL I want to have the person fall, and then all of a sudden he is played in reverse, and then fall again, etc, back and forth....
    I know how to pause it, and slow motion it, mirror it, etc, but I want that reverse and back down again....I'm sure it is possible and easy???
    Any insight would be GREATLY appreciated...and will post the youtube link as soon as I finish it!
    Thanks,
    Dan

    when you have the clip selected in the sequence, take the razor blade tool and cut the clip at where you want the reverse to begin. then, delete the rest of the clip after it, and insert a copy of the clip that you want reversed. select the copy, then click Modify>Speed. when the window comes up, just check the "reverse" box, and click ok.
    Hoped that helped.

  • How to make a link to play only part of a video

    Is there a way to make a link to play only a part of an embedded video (from timecode - to timecode)?

    Hello,
    You can achieve this by using the rectagle tool. You can create a rectangle and place it in the background and change the fill color of the rectangle to "None".
    It will make the rectangle transparent and you can also add a hyperlink to it.
    If you want to have different hyperlinks to different pages (like you mentioned you want to be linked to next page) then you should not use Master pages as you need to add these rectangles to the pages and not master pages.
    If you add the rectangles on Master Page then you can only add one link to it and that will not solve the purpose. And if you use Master page and add rectangle to page then the Rectangle will always be above the Master page content (Master page content is by default in the background and cannot be brought up).
    Another option is to add rectangle to master page background and duplicate your master page to create multiple copies of it. After that you can add required links to the rectangles in the master page and associate the pages to the corresponding Master pages.
    Hope this helps.
    Regards,
    Sachin

  • Making movie clips play in reverse in AS 3.0

    Hey all. I'm changing all my files to AS 3.0 because of some
    new elements I'd like to use in flash CS4.
    Here:
    http://www.iaw-atlanta.com/IvyLeague1-13-09.html
    I have the menu navigation at the bottom with 4 buttons. When the
    buttons are moused over they ascend and when they are moused out
    the movie plays in reverse so that they descend. Basically in the
    movie clip, I have it stopped as well as gotoAndPlay the next frame
    when the button is moused over and then have a script telling it to
    reverse when moused out. I know how to do this in AS 2.0 but how
    can I translate the script to 3.0?

    DjPhantasy5,
    > Ok thanks, I'll see what he also has to say as well.
    Actually, NedWebs pretty much nailed it. :) The approach
    you've taken
    is an interesting one, because it scales all the way back to
    Flash Player 5,
    which didn't yet support the MovieClip.onEnterFrame event.
    Without that
    event, you need something like your "controller" symbol -- a
    separate
    looping timeline -- to perform code that depends on frame
    loops.
    Available as of Flash Player 6, that event would allow you
    to
    consolidate your code a bit by putting it all in a single
    frame and avoiding
    the extra movie clip symbol. That doesn't mean your approach
    is wrong, by
    any stretch. In fact, it's good to know your options, because
    if you ever
    need to publish to Flash Player 5, you'll probably do best to
    use the setup
    you've taken.
    I'll demonstrate onEnterFrame in just a bit, in case you
    want to take a
    look at that.
    >> there's no _root reference in AS3, but you can use a
    >> MovieClip(this.parent) (which replaces what _parent
    >> used to do) to locate something outside of the
    immediate
    >> movieclip.
    The term "parent," in this context, is technically a
    property of the
    MovieClip class, which means all movie clips in AS3 have
    access to the
    "parent" feature, which points to the timeline that contains
    the movie clip
    in question. Buttons also feature a "parent" property. In
    AS2, this
    property acted exactly the same, only it was preceeded by an
    underscore.
    In fact, NedWebs' suggested code works the same in your
    existin file.
    Instead of this:
    // Your existing code ...
    if (_root.animation._currentframe>1) {
    _root.animation.prevFrame();
    this.gotoAndPlay(2)
    if (_root.animation._currentframe<=1) {
    this.gotoAndStop(1);
    ... you could be using this:
    // Alternative code ...
    if (_parent.animation._currentframe>1) {
    _parent.animation.prevFrame();
    gotoAndPlay(2)
    if (_parent.animation._currentframe<=1) {
    gotoAndStop(1);
    ... because from this scope -- that is, from this point of
    view -- the
    MovieClip._parent property points to the same timeline that
    _root does.
    That changes, of course, based on how deeply nested the
    current scope is.
    The term "this" in the above code is optional, because Flash
    understands
    what scope you're in. From the point of view of this code,
    _parent is
    understood to refer to the current scope's parent timeline,
    just like
    gotoAndPlay() is understood to refer to the current scope's
    own timeline.
    You could precede either of those by "this" or not.
    Many people will argue that _root is probably best avoided,
    only because
    it's a slippery slope. It doesn't always refer to the main
    timeline you
    think it does, depending on whether or not your SWF is loaded
    into another
    SWF at runtime. Meanwhile, _parent *always* refers to the
    immediately
    parent timeline.
    So when you look at it that way, this perfectly valid AS2:
    if (_parent.animation._currentframe>1) {
    ... isn't much different at all from its AS3 counterpart:
    if (MovieClip(parent).animation.currentFrame>1) {
    It would be nicer if you didn't need to cast the parent
    reference as a
    movie clip here, but if you don't, AS3 doesn't realize that
    the scope in
    question is a movie clip.
    >> You can string them along as...
    >> MovieClip(this.parent.parent)
    Exactly.
    >> Your _currentframe in the the controller becomes
    >> currentFrame. That's about it. The rest of what I
    >> saw will fly as is.
    Not quite. AS3 doesn't support the on() or onClipEvent()
    functions, so
    you won't be able to attach your code direction to the
    button. Instead,
    you'll have to put it in a keyframe -- which you can also do
    with AS2. It's
    a good idea, in any case, because it allows you to put all
    your code in one
    place, making it easier to find.
    Here's a quick note on direct attachment:
    http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent
    To convert your existing FLA structure to AS3, you might,
    for example,
    do this:
    animation.buttonMode = true;
    animation.addEventListener(MouseEvent.ROLL_OUT, outHandler);
    animation.addEventListener(MouseEvent.ROLL_OVER,
    overHandler);
    function outHandler(evt:MouseEvent):void {
    controller.gotoAndPlay(2);
    function overHandler(evt:MouseEvent):void {
    controller.gotoAndPlay(4);
    That takes care of the on(rollout) and on(rollover) code in
    your current
    version. The first line (buttonMode) is only necessary
    because I got rid of
    the button symbol and, instead, associated the event handlers
    directly with
    your animation clip. (Movie clips handle button-style events,
    too, so you
    don't need the button.) In AS3, event handling is very
    straightforward:
    you reference the object (here, animation), invoke its
    inherited
    addEventListener() method, then pass in two parameters: a)
    the event to
    listen for, and b) the function to perform when that event
    occurs.
    You can see that spelled out above. In AS2, there are quite
    a few ways
    to handle events, including on()/onClipEvent(), so it's
    harder to know when
    to use what approach. For buttons and movie clips, the
    princple works the
    same as I just showed, but the syntax is different.
    Let's take a quick look at reducing all this code by using
    the
    onEnterFrame event. First, check out this AS2 version:
    animation.onRollOut = outHandler;
    animation.onRollOver = overHandler;
    function outHandler():Void {
    this.onEnterFrame = reversePlay;
    function overHandler():Void {
    this.onEnterFrame = null;
    this.play();
    function reversePlay():Void {
    this.prevFrame();
    All of that code would appear in frame 1. You don't need the
    controller
    movie clip. The animation clip no longer contains an orb
    button, because
    we're using animation itself as the "button". (You can always
    see what
    functionality any object has by looking up its class. If
    you're dealing
    with a movie clip, look up the MovieClip class. See the
    Properties heading
    to find out what characteristics the object has, see Methods
    to find out
    what the object can do, and see Events to find out what the
    object can react
    to.)
    In the above code, it's all laid out pretty easily. This is
    AS2,
    remember. We have two events we're listening for:
    MovieClip.onRollOut and
    MovieClip.onRollOver. Those events are established for the
    animation movie
    clip by way of its instance name, and associated with
    corresponding custom
    functions. The outHandler() function associates yet another
    function to the
    MovieClip.onEnterFrame event of the animation clip. Very
    simply, it
    instructs animation to perform the custom reversePlay()
    function every time
    it encounters an onEnterFrame event. The overHandler()
    function kills that
    association by nulling it out, and telling animation to play,
    via the
    MovieClip.play() method. Finally, the reversePlay() function
    simply invokes
    MovieClip.prevFrame() on the animation clip.
    Here's the AS3 version:
    animation.buttonMode = true;
    animation.addEventListener(MouseEvent.ROLL_OUT, outHandler);
    animation.addEventListener(MouseEvent.ROLL_OVER,
    overHandler);
    function outHandler(evt:MouseEvent):void {
    animation.addEventListener(Event.ENTER_FRAME, reversePlay);
    function overHandler(evt:MouseEvent):void {
    animation.removeEventListener(Event.ENTER_FRAME,
    reversePlay);
    animation.play();
    function reversePlay(evt:Event):void {
    evt.target.prevFrame();
    It looks wordier, but if you look carefully, you'll see that
    it's
    essentially the same thing. The main difference is the way
    scope works in
    AS3. In AS2, there are numerous references to "this", because
    the event
    handler functions operate in the same scope as the object to
    which the
    association is made. In AS3, the references aren't to "this",
    but rather to
    the same animation clip by its *intance name*, because in
    AS3, the scope
    operates in the same timeline in which the code appears
    (namely, in this
    case, the main timeline).
    In the reversePlay() function, in order to emulate a "this"
    sort of
    setup, I'm referring to the parameter that gets passed to all
    event handler
    functions in AS3. I happened to name it "evt" (for event),
    but you can call
    it what you like. In the case of reversePlay(), the evt
    parameter refers to
    an instance of the Event class, which has a target property.
    The target
    property refers to the object that dispatched the event --
    happens to be
    animation, in this case. So evt.target, in this context,
    refers to
    animation, which is what I invoke the MovieClip.prevFrame()
    method on.
    I've uploaded a handful of FLA files to my server. I won't
    keep them
    there forever ... maybe a couple weeks, as of this post:
    http://www.quip.net/RewindTestAS3.fla
    http://www.quip.net/RewindTestAS3_new.fla
    http://www.quip.net/RewindTestAS2_new.fla
    David Stiller
    Co-author, ActionScript 3.0 Quick Reference Guide
    http://tinyurl.com/2s28a5
    "Luck is the residue of good design."

  • Making the main stage timeline play in reverse.

    Hey all thanks for looking. I figured out how to do this with movie clips but I can't seem to get it right with the main stage. Can anyone tell me a simple methood of telling the stage to continue playing in reverse, after a button is clicked, until it reaches a keyframe that will tell it to stop? I'm trying to make it so buttons will tell the stage to play a transition from beginning to end and then have it play in reverse when the "back" button is pressed. I'm currently searching online to find an answer but I haven't had any luck yet. Thanks for the help!

    KgIad -- tried to use this code but I am getting
    TypeError: Error #2007: Parameter listener must be non-null.
    Which appears to be caused by the changeTimelineF not being recognized. If I create it as
    private function changeTimelineF(e:Event) {
    if(startFrame<endFrame){
                e.currentTarget.mc.nextFrame();
            } else {
                e.currentTarget.mc.prevFrame();
            if(e.currentTarget.mc.currentFrame==e.currentTarget.endFrame){
                e.currentTarget.removeEventListener(Event.ENTER_FRAME,changeTimelineF);
    Then it is recognized--but the variables (e.g. startFrame and endFrame) are no longer valid.
    What am I missing?
    Thanks
    Mike

  • How to make the notification sounds play through EarPods

    The notification sounds/ringer on my iPod touch keeps playing through the external speakers even though I have EarPods plugged in. If I turn on a video of game tho, it will play through the earpods. Is it possible to make the notification sounds play through the EarPods as well?

    Hi Everyone,
    Just in case anyone else runs into this problem here is the solution that i've managed to piece together,
    I have a movie clip twice the size of the stage, the movie clip is called bg_mc, here is my actionscript...
    bg_mc.addEventListener(Event.ENTER_FRAME, mouseMoveHandler);
    function mouseMoveHandler(event):void
    var cursorX = stage.stageWidth - mouseX;
    bg_mc.x -= dx / 5;
    this action script tells the movieclip to move left and right depending on where the users mouse pointer moves. (it also adds a slight delay to make it look like tweening)
    I then published this in Flash using the publish settings shown in the reply above.
    Then i went into dreamweaver and removed the margins in the html file
    Now the flash file will resize to any screen resolution and will allow the user to move the MC left / right across the screen depending on where the mouse pointer is,
    I hope this is helpful,
    Ben

  • Play in Reverse

    PLEASE LOOK AT MY NEWEST POST!!
    Hello, I was wondering if someone could guide me a little
    with playing a movie clip in reverse. The major problem I'm having,
    though, is that I have a frame-by frame animation withing a movie
    clip called 'card' of a card flipping over. Now 'card' itself is
    also tweened to move to the left and change in size as it flips
    over, and also has an independent drop shadow for effect. So I need
    to have everything go in reverse; the frame-by frame within 'card',
    as well as the right to left tween and drop shadow on the main
    timeline.
    My ultimate goal is to have the user click on the card, it
    will flip over in one direction, click on it again, and it will
    reverse and flip back to it's original position.
    Thanks in advance for any help on this.
    P

    Well, I've decided to take a completely new approach.
    I have reversed the frames in my movie clips, and I am far
    closer to what I want to achieve. However, I still need to find a
    way to remember if the card has flipped already, and when to flip
    from frame 1.
    Here are my files, please do have a look:
    Fla
    swf
    I would still prefer to play in reverse, but I cannot figure
    this out...
    Cheers for any insight!
    P

  • How do i have clips play in reverse

    I need help! How do u make the clips in your movie play in reverse and the music play forward HELP!!!!!!!!!!!!!!!!!!!!!

    'Search' is your friend..
    read reply on same topic here..
    http://discussions.apple.com/click.jspa?searchID=10830738&messageID=7320531
    .. and please avoid double posts.. http://discussions.apple.com/thread.jspa?threadID=1550375&tstart=0

  • HELP!  I subscribed to imatch on my mac so that I could access the songs anywhere with my iphone.  However since I live in a rural community I would like to make playlists that always stay on my phone in case I don't have service.  Not sure how.

    HELP!  I subscribed to imatch on my mac so that I could access the songs anywhere with my iphone.  However since I live in a rural community I would like to make playlists that always stay on my phone in case I don't have service.  Not sure how.

    I have the same issue.  While I am sure your solution would work, my playlist has over 6,000 songs and hiting every song to download it is not very practical.  Is there another way?
    I am looking to have a subset of my music physically on my phone so that I can play it without internet access, but have access to the entire library when I do have internet access. 

  • Shuffle always plays first song

    Whenever I turn on the Shuffle, it plays the first song in the playlist and does resume from the last song played. Is it supposed to work that way?

    It seems that if you do two things you can avoid the "always plays first song" problem: (1) In the iPod settings, deselect "Open iTunes when this iPod is attached" and (2) don't open iTunes while the iPod is connected. It is the syncing with iTunes that makes it go to the first song, not the connection to the computer. The only thing is that in this state, the orange "do not disconnect" blinks, but I assume it is still charging. When done, you have have to be sure to eject the iPod first and not just take it off the charger. I've tried all of this and it seems to work, assuming it is still charging when the orange light is blinking.
    As far as the iPod going back to the first song without it having been connected to a computer, that would seem to be a true malfunction of the device.

  • Movie playing in reverse

    Hi All
    I decided to make a Star Wars srolling title for my cousins birthday. Unfortunatley, it's playing in reverse. Any suggestions on how to flip it and how to add audio?
    Thanks in advance
    Dean

    With the video in keynote:
    Rewind movie (by frame if paused) J (hold down)
    Pause or play movie K
    Fast-forward movie (by frame if paused) L (hold down)
    Jump to beginning of movie I
    Jump to end of movie O
    Look under the help menu/keyboard shortcuts in keynote for more shortcuts...
    Also in keynote if you hold the cursor over the video...the video controls will appear (set this in keynote's preferences).

  • Is there a way to have iTunes always play 2 songs together?

    Let's say the album you've imported has a few songs that are indeed separate tracks but they blend seamlessly when played consecutively and are kind of meant to be heard together.
    In other words, can I make it so "We Are the Champions" always plays directly after "We Will Rock You" even in shuffle?

    Here's free program that will help you do what you want: http://dougscripts.com/itunes/itinfo/jointogether.php

  • How do i make it so iTunes plays the music files from where i have chosen to store them?

    how do i make it so iTunes plays the music files from where i have chosen to store them as opposed to it scattering copies of my files into a myriad different folders based on the albums they came from when i'm not even interested in keeping whole albums?
    I recently converted myself to mac after having been a windows formatted person since the beginning of time. I use last.fm and the client scrobbler only supports iTunes on the mac (scobbling since Nov 06 and i'm now heavily dependant upon it as a means of discovering new music) - if you don't know what that means then take it for granted i have no option other than to use iTunes as my media player whn using the mac. And almost immediately upon using iTunes i was filled with horror.
    My tale of woe as follows: I copy all my mp3 files to folder X on my new mac. I copy my simple playlist in to that same folder X. The simple playlist simply lists all the files in folder X in the order i want to hear them in... simple right? And what happens the moment i start playing my simple list? Well you probably all ready know; itunes throws copies of all those files in to the air, scatters them to the four winds so each of them fall into a little folder of their own representing the album they might once have come from. I don't keep whole albums. For me the 'album experience' is a ruse to trick one into listening to weaker material. I only keep the concentrated goodness. I only put up with albums in a previous lifetime because in the days of vinyl i had no other choice apart from spending hours compiling mix tapes. Now i am liberated from these restrictions and have been for the 15 or so years i've been using a computer to listen to music. Until along comes iTunes forcing me backwards in time, frog marching me back into the past.
    That simple list i mentioned is my one and only playlist. This single playlist has been evolving for 15 years as tracks are added and removed and their position in the list changes because that song sounds amazing when heard after that other song whereas hearing this song after that song would be like pouring custard over your sausages (for me shuffling is an abomination). And so here is how i've managed this list and managed synchronization of said list and listed files with my mp3 player (currently a Zen).
    Adding a new file: After deciding that song is a keeper i will copy it into that simple folder that holds all my music and drop it in to a position on the list i deem most suited for it. Incidentally over this entire 15 year (i'm pretty sure it's been around that long) my media player has been winamp but for the reason previously mentioned i am unable to use winamp in mac world.
    Removing a file: fortunately winamp has an option to simultaneously remove a file from the list and the hard drive. And naturally so because after all if i no longer like a song then i want it expunged completely from life or at least from my hard drive and playlist. In the brave new world of iTunes i have to remove from the list there then delete the file from where iTunes copied it from and then the place iTunes copied it to.
    Editing the list: drag an item in the list to it's preferred location and select to save it as i would for any other file using any other application... well desktop type application as opposed to one that uses a database as its primary means of storage.
    Syncing with the mp3 player: copy drag drop playlist file from the simple folder on the hard drive to the simple folder on the mp3 player as i would for any other file. And then also copy drag drop the most recently created files from simple folder on hard drive to simple folder on player after having ordered them by creation date so as to make it easier to select the most recently created. After a while the mp3 player will fill up with the files no longer on the list so i will delete all files from player then re-copy all flies from simple folder on hard drive to simple folder on mp3 player.
    I do not make changes to the list on the mp3 player so synchronization needs only to go one way: from laptop to player.
    So all very simple. Apart from editing the positions of files in the list everything is managed by copy drag dropping and deleting files using windows explorer.
    But i'm in a mac and circumstances have forced me in to the corner of using iTunes. And this whole iTunes situation is terrifying for me as over the years i've heard horror stories about it deleting all of someone's music files. Perhaps this may have been by using the software incorrectly but even so, the very fact that it appears possible for this to happen simply by using the software incorrectly and the fact that it happens with some degree of frequency given the number of reports of this happening that i have heard of over the years on music discussion forums fills me with dread that i have to now use this software. And given the software's blatant disregard for the user's choice as to where to store his/her files it's no surprise that this happens. The software is pointlessly doing dangerous things with my data. Please make it stop.
    Please can i just at the very least make iTunes play the music from the folder i have chosen to put my files in and not copy those files here there and everywhere without my say so? Thankyou.

    option discovered in preferences. Really this and any feature that moves deletes or edits a users data should as far as possible be OFF BY DEFAULT. It shouldn't by default and without the users specific say do this dangerous and unnecessary thing without even letting the user know what it's doing!!! And then cause me a few hours (as i'm new to mac) searching for the option so as to switch it off. If i hadn't noticed the status cage declaring that it was copying files then i might never have twigged that this insane thing was occurring. And if i hadn't of noticed i would have been left maintaining the contents of the folder i copied the files to, the folder which as far as i was informed and so believed was also the location of the music files i was playing. How does Apple justify this 'genius' piece of software non-design? Surely it will hurt no one if this was off by default for new users - overall at least i dare say it would cause a lot less distress in the future for the unsuspecting public at large. Thanks for the support.

  • I need to play a song on a Keynote presentation, how do I do this ? I use to drag and drop the mp3 in Keynote but it stops playing when the slide move to the other one... how can I make the song keep playing through the whole presentation ? Thanks.

    I need to play a song in a row in a Keynote presentation, how do I do this ? I use to drag and drop the mp3 in Keynote but it stops playing when the slide move to the other one... how can I make the song keep playing through out the presentation ?
    Thanks.

    Drag the file into the audio window in the Document inspector...

  • How to make the exe always visible in the illust application.

    Hi,
    I created an interface for "illustrator CS" using Visual Basic and copied that exe in Scripts folder. I want to know how to make the exe always visible in the application(Not in Taskbar), once it was clicked. Could you please kindly help me to solve this.
    Regards,
    Prabudass

    Hi,
    I guess....though i am not pretty sure....but the Preview tab has been discontinued in the newer versions....
    Only the Gods can give a perfect solution though...!!
    <i>Do reward each useful answer..!</i>
    Thanks,
    Tatvagna.

Maybe you are looking for

  • One USB Port not Working Properly on MacBook Pro 3,1

    I have an older macbook 3,1 running Mavericks OS and recently one of my left USB ports has not been: 1) able to eject external hard drives plugged into it (I have to force eject)-instead it gives me a message that one or more programs may be using it

  • I have updated adobe reader many times on my mac but still can't seem to use it when on the internet

    help!

  • Fi-mm procurement

    SAP guru's:- in fi-mm procurement flow in the one step is the PRODUCTION receipt: stock finished goods a/c...... Dr To stock increasing/decreasing finished goods a/c |-->if the Production order,. GBB ZAF, And if the not production order GBB ZOF , is

  • Compass missing

    Hello I'm using Nokia Lumia 720 recently I have reset my phone to factory settings and the cog wheels didn't go for almost 3days I approached Nokia care they fixed the problem and updated it to amber...after the update or reset my camera button is no

  • BAPI for KB61

    Hi experts, Is there a way of doing mass reposting of CO line items using KB61? LSMW by recording or BAPI? Could not find a BAPI. Was trying recording method, but then the number of line items per document is not the same. Regards, Sangeeta